Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001518/0.001518, allocations: 114.8 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001986/0.001986, allocations: 198 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 55.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2209/0.2221, allocations: 50.55 MB / 408.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002847/0.225, allocations: 1.702 MB / 410.5 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009789/0.226, allocations: 0.5416 MB / 411 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.449e-05/0.2261, allocations: 4 kB / 411 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001049/0.2262, allocations: 11.81 kB / 411 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001882/0.2265, allocations: 23.8 kB / 411 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002176/0.2267, allocations: 59.86 kB / 411.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001678/0.2269, allocations: 103.6 kB / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001197/0.227, allocations: 41.08 kB / 411.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001411/0.2271, allocations: 39.86 kB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.539e-05/0.2273, allocations: 47.75 kB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.01e-05/0.2273, allocations: 11.94 kB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.448e-05/0.2273, allocations: 8 kB / 411.3 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.397e-05/0.2274, allocations: 19.92 kB / 411.4 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.433e-05/0.2275, allocations: 43.73 kB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001958/0.2277, allocations: 86.67 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2277, allocations: 0 / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2277, allocations: 4 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.2277, allocations: 4 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005725/0.2283, allocations: 414.9 kB / 411.9 MB, free: 14.33 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.2283, allocations: 8.031 kB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.742e-05/0.2284, allocations: 38.75 kB / 411.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001433/0.2285, allocations: 24.83 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002603/0.2288, allocations: 212.1 kB / 412.2 MB, free: 14.01 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.081e-05/0.2288, allocations: 8.375 kB / 412.2 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.088e-05/0.2288, allocations: 7.938 kB / 412.2 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001786/0.229, allocations: 89.48 kB / 412.3 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.229, allocations: 3.984 kB / 412.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.026e-05/0.2291, allocations: 0 / 412.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.2291, allocations: 0 / 412.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001205/0.2292, allocations: 39.98 kB / 412.3 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005217/0.2297, allocations: 411.9 kB / 412.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001596/0.2299, allocations: 58.59 kB / 412.8 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.403e-05/0.23, allocations: 32.89 kB / 412.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.581e-05/0.23, allocations: 0 / 412.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.481e-05/0.23, allocations: 34.56 kB / 412.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.102e-06/0.23, allocations: 0 / 412.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003001/0.2303, allocations: 105.5 kB / 412.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.123e-05/0.2304, allocations: 59.33 kB / 413 MB, free: 13.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001226/0.2305, allocations: 142.4 kB / 413.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.303e-05/0.2305, allocations: 25.7 kB / 413.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.719e-05/0.2306, allocations: 104.1 kB / 413.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.936e-05/0.2306, allocations: 27.92 kB / 413.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.837e-05/0.2307, allocations: 21.72 kB / 413.3 MB, free: 12.72 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.2308, allocations: 322.8 kB / 413.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.379e-05/0.2309, allocations: 19.97 kB / 413.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.069e-05/0.2309, allocations: 20 kB / 413.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001207/0.2311, allocations: 52.78 kB / 413.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2311, allocations: 0 / 413.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001819/0.2312, allocations: 101.7 kB / 413.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.2313, allocations: 4 kB / 413.8 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.2313, allocations: 0 / 413.8 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.2313, allocations: 0 / 413.8 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002281/0.2315, allocations: 35.97 kB / 413.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.2315, allocations: 4 kB / 413.9 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.03e-05/0.2316, allocations: 7.953 kB / 413.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.243e-05/0.2316, allocations: 7.984 kB / 413.9 MB, free: 12.14 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.172e-05/0.2317, allocations: 125.7 kB / 414 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.575e-05/0.2318, allocations: 11.89 kB / 414 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.804e-05/0.2318, allocations: 8.312 kB / 414 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.2318, allocations: 4 kB / 414 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.2318, allocations: 0 / 414 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.2318, allocations: 0 / 414 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002057/0.232, allocations: 193.6 kB / 414.2 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.2321, allocations: 7.922 kB / 414.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001621/0.2322, allocations: 19.98 kB / 414.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.2322, allocations: 0 / 414.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.2323, allocations: 4 kB / 414.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.2323, allocations: 11.94 kB / 414.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2323, allocations: 0 / 414.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002972/0.2326, allocations: 195.5 kB / 414.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.748e-05/0.2326, allocations: 96.83 kB / 414.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.294e-05/0.2327, allocations: 4.312 kB / 414.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.449e-05/0.2328, allocations: 11.98 kB / 414.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.953e-05/0.2328, allocations: 8 kB / 414.6 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.965e-06/0.2328, allocations: 4 kB / 414.6 MB, free: 11.35 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.789e-05/0.2329, allocations: 110.8 kB / 414.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2329, allocations: 0 / 414.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000242/0.2332, allocations: 16 kB / 414.7 MB, free: 11.23 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (firstOrder1.y,firstOrder2.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004948/0.2337, allocations: 0.7319 MB / 415.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001642/0.2338, allocations: 55.89 kB / 415.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2338, allocations: 0 / 415.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.373e-05/0.2339, allocations: 19.98 kB / 415.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003251/0.2342, allocations: 26.17 kB / 415.5 MB, free: 10.37 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001682/0.2359, allocations: 1.574 MB / 417.1 MB, free: 8.719 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002783/0.2362, allocations: 0.7041 MB / 417.8 MB, free: 7.988 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.521e-05/0.2363, allocations: 4 kB / 417.8 MB, free: 7.984 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.717e-05/0.2364, allocations: 31.42 kB / 417.8 MB, free: 7.953 MB / 334.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2364, allocations: 0 / 417.8 MB, free: 7.953 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01953/0.2559, allocations: 2.313 MB / 420.2 MB, free: 5.695 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.433/7.689, allocations: 15.42 kB / 420.2 MB, free: 5.684 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.InverseModel.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.InverseModel_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_trunk_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.InverseModel_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches