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.001919/0.001919, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001969/0.001969, allocations: 214.3 kB / 23.73 MB, free: 4.16 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.443/1.443, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.001742/0.001742, allocations: 47.94 kB / 377.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.2641, allocations: 53.37 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.003141/0.2672, allocations: 1.673 MB / 432.7 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001062/0.2683, allocations: 0.5182 MB / 433.3 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.344e-05/0.2684, allocations: 7.938 kB / 433.3 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001001/0.2685, allocations: 11.86 kB / 433.3 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000191/0.2686, allocations: 23.8 kB / 433.3 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002367/0.2689, allocations: 59.86 kB / 433.4 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001864/0.2691, allocations: 103.7 kB / 433.5 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001145/0.2692, allocations: 29.09 kB / 433.5 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001314/0.2693, allocations: 47.8 kB / 433.5 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.748e-05/0.2694, allocations: 39.77 kB / 433.6 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.593e-05/0.2694, allocations: 4 kB / 433.6 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.933e-05/0.2695, allocations: 23.92 kB / 433.6 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.442e-05/0.2695, allocations: 19.92 kB / 433.6 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.282e-05/0.2696, allocations: 27.81 kB / 433.7 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000163/0.2697, allocations: 85.47 kB / 433.7 MB, free: 3.969 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2697, allocations: 0 / 433.7 MB, free: 3.969 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2697, allocations: 0 / 433.7 MB, free: 3.969 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.349e-05/0.2698, allocations: 4 kB / 433.7 MB, free: 3.965 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.0005841/0.2704, allocations: 345.7 kB / 434.1 MB, free: 3.598 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.2704, allocations: 12.02 kB / 434.1 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.337e-05/0.2704, allocations: 38.75 kB / 434.1 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001299/0.2706, allocations: 20.83 kB / 434.1 MB, free: 3.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002687/0.2708, allocations: 146.9 kB / 434.3 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.399e-05/0.2709, allocations: 8.312 kB / 434.3 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.281e-05/0.2709, allocations: 15.94 kB / 434.3 MB, free: 3.328 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001765/0.2711, allocations: 81.59 kB / 434.4 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.2711, allocations: 0 / 434.4 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.2711, allocations: 4 kB / 434.4 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.2711, allocations: 0 / 434.4 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001112/0.2712, allocations: 39.98 kB / 434.4 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005345/0.2717, allocations: 311.6 kB / 434.7 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001552/0.2719, allocations: 62.59 kB / 434.8 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.917e-05/0.272, allocations: 32.89 kB / 434.8 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.774e-05/0.272, allocations: 3.938 kB / 434.8 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.079e-05/0.272, allocations: 30.56 kB / 434.9 MB, free: 2.703 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.042e-06/0.272, allocations: 4 kB / 434.9 MB, free: 2.699 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002795/0.2723, allocations: 97.56 kB / 435 MB, free: 2.598 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.15e-05/0.2723, allocations: 55.39 kB / 435 MB, free: 2.531 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001374/0.2725, allocations: 144.3 kB / 435.2 MB, free: 2.375 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/0.2725, allocations: 33.64 kB / 435.2 MB, free: 2.336 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.06e-05/0.2726, allocations: 104.1 kB / 435.3 MB, free: 2.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.228e-05/0.2726, allocations: 31.92 kB / 435.3 MB, free: 2.199 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.093e-05/0.2726, allocations: 17.72 kB / 435.3 MB, free: 2.176 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.2728, allocations: 322.8 kB / 435.7 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.888e-05/0.2728, allocations: 19.98 kB / 435.7 MB, free: 1.832 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.773e-05/0.2729, allocations: 23.94 kB / 435.7 MB, free: 1.809 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001158/0.273, allocations: 48.84 kB / 435.8 MB, free: 1.758 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.273, allocations: 0 / 435.8 MB, free: 1.758 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001674/0.2732, allocations: 85.56 kB / 435.8 MB, free: 1.668 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.2732, allocations: 12 kB / 435.8 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.2732, allocations: 0 / 435.8 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.2732, allocations: 0 / 435.8 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002117/0.2734, allocations: 43.89 kB / 435.9 MB, free: 1.613 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.2734, allocations: 3.938 kB / 435.9 MB, free: 1.609 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.516e-05/0.2735, allocations: 11.95 kB / 435.9 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.276e-05/0.2735, allocations: 3.984 kB / 435.9 MB, free: 1.594 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.992e-05/0.2736, allocations: 117.8 kB / 436 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.146e-05/0.2736, allocations: 11.89 kB / 436 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.8e-05/0.2737, allocations: 12.41 kB / 436 MB, free: 1.445 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.2737, allocations: 4 kB / 436.1 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.2737, allocations: 0 / 436.1 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.2737, allocations: 0 / 436.1 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002073/0.2739, allocations: 164.7 kB / 436.2 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.2739, allocations: 3.938 kB / 436.2 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001381/0.274, allocations: 19.98 kB / 436.2 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.274, allocations: 0 / 436.2 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.274, allocations: 3.984 kB / 436.2 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.274, allocations: 4 kB / 436.2 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.274, allocations: 0 / 436.2 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002963/0.2743, allocations: 207.4 kB / 436.4 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.68e-05/0.2744, allocations: 19.81 kB / 436.5 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.2744, allocations: 320 / 436.5 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.751e-05/0.2745, allocations: 0 / 436.5 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.826e-05/0.2745, allocations: 15.98 kB / 436.5 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-06/0.2745, allocations: 0 / 436.5 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.676e-05/0.2746, allocations: 113.3 kB / 436.6 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2746, allocations: 0 / 436.6 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002294/0.2748, allocations: 16 kB / 436.6 MB, free: 0.8281 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.0005711/0.2754, allocations: 0.7319 MB / 437.3 MB, free: 72 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000158/0.2756, allocations: 43.92 kB / 437.4 MB, free: 28 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2756, allocations: 0 / 437.4 MB, free: 28 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.122e-05/0.2756, allocations: 23.98 kB / 437.4 MB, free: 4 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000321/0.2759, allocations: 22.05 kB / 437.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001907/0.2778, allocations: 1.597 MB / 439 MB, free: 14.31 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.756e-05/0.2779, allocations: 89.05 kB / 439.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.554e-05/0.278, allocations: 7.984 kB / 439.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.304e-05/0.278, allocations: 23.44 kB / 439.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.278, allocations: 4 kB / 439.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03123/0.3093, allocations: 2.92 MB / 442.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.6/10.91, allocations: 11.98 kB / 442.1 MB, free: 11.37 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.328684905078262]