Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001371/0.001371, allocations: 115.8 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001555/0.001555, allocations: 213.9 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.495/1.495, allocations: 230.6 MB / 257.5 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002109/0.002109, allocations: 55.89 kB / 377.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2615, allocations: 53.36 MB / 431.1 MB, free: 6.824 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.003007/0.2645, allocations: 1.712 MB / 432.8 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00104/0.2656, allocations: 0.5648 MB / 433.4 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.842e-05/0.2656, allocations: 4 kB / 433.4 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.92e-05/0.2657, allocations: 11.81 kB / 433.4 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001756/0.2659, allocations: 23.8 kB / 433.4 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002186/0.2661, allocations: 59.91 kB / 433.5 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002166/0.2664, allocations: 107.6 kB / 433.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000135/0.2665, allocations: 25.3 kB / 433.6 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000146/0.2666, allocations: 51.77 kB / 433.7 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.786e-05/0.2667, allocations: 47.72 kB / 433.7 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.719e-05/0.2667, allocations: 4 kB / 433.7 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.64e-05/0.2668, allocations: 12 kB / 433.7 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.244e-05/0.2668, allocations: 19.92 kB / 433.8 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.666e-05/0.2669, allocations: 43.72 kB / 433.8 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001704/0.2671, allocations: 91.94 kB / 433.9 MB, free: 4.051 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2671, allocations: 0 / 433.9 MB, free: 4.051 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2671, allocations: 4 kB / 433.9 MB, free: 4.047 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.2671, allocations: 0 / 433.9 MB, free: 4.047 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.0005896/0.2677, allocations: 337.8 kB / 434.2 MB, free: 3.688 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.2677, allocations: 12.03 kB / 434.2 MB, free: 3.676 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.554e-05/0.2678, allocations: 34.75 kB / 434.3 MB, free: 3.633 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001485/0.2679, allocations: 24.83 kB / 434.3 MB, free: 3.609 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002595/0.2682, allocations: 146.9 kB / 434.4 MB, free: 3.441 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.121e-05/0.2682, allocations: 8.375 kB / 434.4 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.638e-05/0.2682, allocations: 7.938 kB / 434.5 MB, free: 3.426 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000189/0.2684, allocations: 85.53 kB / 434.5 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.2684, allocations: 0 / 434.5 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.2684, allocations: 4 kB / 434.5 MB, free: 3.332 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.2684, allocations: 4 kB / 434.5 MB, free: 3.328 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001147/0.2686, allocations: 35.97 kB / 434.6 MB, free: 3.293 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005848/0.2691, allocations: 387 kB / 435 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001482/0.2693, allocations: 62.52 kB / 435 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.176e-05/0.2694, allocations: 28.89 kB / 435.1 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.207e-05/0.2694, allocations: 4 kB / 435.1 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.114e-05/0.2694, allocations: 38.5 kB / 435.1 MB, free: 2.707 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.002e-06/0.2694, allocations: 0 / 435.1 MB, free: 2.707 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002876/0.2697, allocations: 97.55 kB / 435.2 MB, free: 2.605 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.623e-05/0.2697, allocations: 55.41 kB / 435.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001446/0.2699, allocations: 144.1 kB / 435.4 MB, free: 2.383 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.741e-05/0.2699, allocations: 25.7 kB / 435.4 MB, free: 2.352 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.649e-05/0.27, allocations: 108.1 kB / 435.5 MB, free: 2.242 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.21e-05/0.27, allocations: 27.92 kB / 435.5 MB, free: 2.215 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.93e-05/0.27, allocations: 17.72 kB / 435.6 MB, free: 2.191 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.2702, allocations: 322.8 kB / 435.9 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.568e-05/0.2703, allocations: 23.98 kB / 435.9 MB, free: 1.844 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.084e-05/0.2703, allocations: 16.25 kB / 435.9 MB, free: 1.828 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000127/0.2704, allocations: 56.92 kB / 436 MB, free: 1.77 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.2704, allocations: 4 kB / 436 MB, free: 1.766 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001774/0.2706, allocations: 101.5 kB / 436.1 MB, free: 1.66 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.2706, allocations: 4 kB / 436.1 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-06/0.2706, allocations: 3.938 kB / 436.1 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.2707, allocations: 0 / 436.1 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002197/0.2709, allocations: 35.97 kB / 436.1 MB, free: 1.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.2709, allocations: 4 kB / 436.1 MB, free: 1.613 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.93e-05/0.271, allocations: 7.938 kB / 436.1 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.858e-06/0.271, allocations: 4 kB / 436.1 MB, free: 1.602 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.708e-05/0.2711, allocations: 121.8 kB / 436.2 MB, free: 1.473 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.465e-05/0.2711, allocations: 11.89 kB / 436.3 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.96e-05/0.2711, allocations: 12.41 kB / 436.3 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.2711, allocations: 4 kB / 436.3 MB, free: 1.445 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.2711, allocations: 0 / 436.3 MB, free: 1.445 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.2711, allocations: 3.984 kB / 436.3 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002077/0.2713, allocations: 164.7 kB / 436.4 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.2713, allocations: 3.938 kB / 436.4 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001449/0.2715, allocations: 19.98 kB / 436.5 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.2715, allocations: 0 / 436.5 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.2715, allocations: 4 kB / 436.5 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.2715, allocations: 7.938 kB / 436.5 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.2715, allocations: 0 / 436.5 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002967/0.2718, allocations: 203.4 kB / 436.7 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.291e-05/0.2718, allocations: 11.83 kB / 436.7 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.063e-05/0.2719, allocations: 4 kB / 436.7 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.672e-05/0.2719, allocations: 3.984 kB / 436.7 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.02e-05/0.272, allocations: 8.062 kB / 436.7 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.803e-06/0.272, allocations: 4 kB / 436.7 MB, free: 0.957 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.86e-05/0.2721, allocations: 108.9 kB / 436.8 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2721, allocations: 0 / 436.8 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002329/0.2723, allocations: 15.95 kB / 436.8 MB, free: 0.8359 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.0005637/0.2729, allocations: 0.7359 MB / 437.6 MB, free: 76 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001561/0.273, allocations: 47.91 kB / 437.6 MB, free: 28 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.273, allocations: 0 / 437.6 MB, free: 28 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.003e-05/0.2731, allocations: 27.98 kB / 437.6 MB, free: 0 / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003938/0.2735, allocations: 21.03 kB / 437.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00196/0.2754, allocations: 1.586 MB / 439.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004097/0.2759, allocations: 0.7041 MB / 439.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.604e-05/0.2759, allocations: 4 kB / 440 MB, free: 13.58 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.7e-05/0.276, allocations: 31.42 kB / 440 MB, free: 13.55 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.276, allocations: 0 / 440 MB, free: 13.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0322/0.3082, allocations: 2.492 MB / 442.5 MB, free: 11.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.55, allocations: 9.125 kB / 442.5 MB, free: 11.18 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.088608196005225]