Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001265/0.001265, allocations: 101.5 kB / 21.21 MB, free: 0.5078 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 191.6 kB / 24.49 MB, free: 3.711 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 43.92 kB / 371.2 MB, free: 9.715 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2444, allocations: 52.18 MB / 423.3 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.00288/0.2473, allocations: 1.668 MB / 425 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008493/0.2481, allocations: 454.9 kB / 425.5 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.035e-05/0.2482, allocations: 4 kB / 425.5 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.366e-05/0.2483, allocations: 11.86 kB / 425.5 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002016/0.2485, allocations: 27.8 kB / 425.5 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001731/0.2487, allocations: 51.88 kB / 425.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001755/0.2488, allocations: 99.69 kB / 425.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.249, allocations: 25.28 kB / 425.7 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.644e-05/0.249, allocations: 43.8 kB / 425.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.598e-05/0.2491, allocations: 43.77 kB / 425.8 MB, free: 12 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.142e-05/0.2491, allocations: 8 kB / 425.8 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.606e-05/0.2492, allocations: 4 kB / 425.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.185e-05/0.2492, allocations: 19.92 kB / 425.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.55e-05/0.2493, allocations: 35.8 kB / 425.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001448/0.2494, allocations: 89.83 kB / 425.9 MB, free: 11.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.2494, allocations: 0 / 425.9 MB, free: 11.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2494, allocations: 0 / 425.9 MB, free: 11.84 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.2494, allocations: 4 kB / 425.9 MB, free: 11.84 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.0005665/0.25, allocations: 341.8 kB / 426.2 MB, free: 11.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.25, allocations: 8.031 kB / 426.3 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.3e-05/0.25, allocations: 4.188 kB / 426.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.521e-05/0.2501, allocations: 34.75 kB / 426.3 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.308e-05/0.2501, allocations: 20.81 kB / 426.3 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002403/0.2503, allocations: 146.2 kB / 426.5 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.2504, allocations: 8 kB / 426.5 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.484e-05/0.2504, allocations: 4 kB / 426.5 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001821/0.2506, allocations: 81.03 kB / 426.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.2506, allocations: 4 kB / 426.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.207e-06/0.2506, allocations: 0 / 426.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.2506, allocations: 0 / 426.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001207/0.2507, allocations: 47.91 kB / 426.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005116/0.2512, allocations: 311.7 kB / 426.9 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001467/0.2514, allocations: 62.62 kB / 427 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.34e-05/0.2514, allocations: 36.72 kB / 427 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.487e-05/0.2515, allocations: 0 / 427 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.796e-05/0.2515, allocations: 34.56 kB / 427 MB, free: 10.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 8.82e-07/0.2515, allocations: 0 / 427 MB, free: 10.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002947/0.2518, allocations: 97.75 kB / 427.1 MB, free: 10.49 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.987e-05/0.2518, allocations: 51.41 kB / 427.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001359/0.252, allocations: 154.5 kB / 427.3 MB, free: 10.27 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/0.252, allocations: 25.7 kB / 427.4 MB, free: 10.23 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.242e-05/0.252, allocations: 116.1 kB / 427.5 MB, free: 10.12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.341e-05/0.2521, allocations: 15.84 kB / 427.5 MB, free: 10.1 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.028e-05/0.2521, allocations: 21.72 kB / 427.5 MB, free: 10.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.2523, allocations: 322.8 kB / 427.8 MB, free: 9.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.088e-05/0.2523, allocations: 23.92 kB / 427.8 MB, free: 9.727 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.217e-05/0.2524, allocations: 23.98 kB / 427.9 MB, free: 9.703 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001109/0.2525, allocations: 44.84 kB / 427.9 MB, free: 9.656 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.2525, allocations: 4 kB / 427.9 MB, free: 9.652 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001731/0.2527, allocations: 85.62 kB / 428 MB, free: 9.562 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.2527, allocations: 10.48 kB / 428 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.2527, allocations: 4 kB / 428 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.2527, allocations: 0 / 428 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002187/0.2529, allocations: 39.91 kB / 428 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.2529, allocations: 0 / 428 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.853e-05/0.253, allocations: 11.95 kB / 428.1 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.805e-06/0.253, allocations: 0 / 428.1 MB, free: 9.5 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 8.846e-05/0.2531, allocations: 121.8 kB / 428.2 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.907e-05/0.2531, allocations: 7.953 kB / 428.2 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.112e-05/0.2531, allocations: 16.39 kB / 428.2 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.2531, allocations: 0 / 428.2 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.289e-06/0.2532, allocations: 0 / 428.2 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.2532, allocations: 3.984 kB / 428.2 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001949/0.2534, allocations: 160.7 kB / 428.4 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.2534, allocations: 7.922 kB / 428.4 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000152/0.2535, allocations: 23.98 kB / 428.4 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.2535, allocations: 0 / 428.4 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.2535, allocations: 4 kB / 428.4 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.2535, allocations: 0 / 428.4 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.2535, allocations: 0 / 428.4 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002978/0.2538, allocations: 207.3 kB / 428.6 MB, free: 8.891 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.103e-05/0.2538, allocations: 11.94 kB / 428.6 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.003e-05/0.2539, allocations: 0 / 428.6 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.773e-05/0.2539, allocations: 11.92 kB / 428.6 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.416e-05/0.254, allocations: 128 / 428.6 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/0.254, allocations: 12 kB / 428.6 MB, free: 8.855 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.719e-05/0.2541, allocations: 109.4 kB / 428.7 MB, free: 8.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2541, allocations: 4 kB / 428.7 MB, free: 8.746 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002244/0.2543, allocations: 19.88 kB / 428.8 MB, free: 8.727 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.0005827/0.2549, allocations: 0.7244 MB / 429.5 MB, free: 7.977 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001756/0.2551, allocations: 51.95 kB / 429.5 MB, free: 7.926 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2551, allocations: 0 / 429.5 MB, free: 7.926 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.019e-05/0.2551, allocations: 31.92 kB / 429.6 MB, free: 7.895 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003399/0.2555, allocations: 16.05 kB / 429.6 MB, free: 7.879 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001798/0.2573, allocations: 1.574 MB / 431.2 MB, free: 6.227 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.467e-05/0.2574, allocations: 84.19 kB / 431.2 MB, free: 6.121 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.993e-05/0.2574, allocations: 11.98 kB / 431.3 MB, free: 6.109 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.352e-05/0.2575, allocations: 31.42 kB / 431.3 MB, free: 6.078 MB / 334.1 MB Notification: Performance of SimCode: time 3.6e-07/0.2575, allocations: 0 / 431.3 MB, free: 6.078 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0243/0.2818, allocations: 2.56 MB / 433.8 MB, free: 3.668 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.69/10.98, allocations: 7.297 kB / 433.9 MB, free: 3.664 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.mat","/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_4.0.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.312178713968024]