Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.IdealGasH2O.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.0008785/0.0008785, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.00419/0.00419, allocations: 166 kB / 24.7 MB, free: 8.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.7875/0.7875, allocations: 158.6 MB / 186.5 MB, free: 3.043 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_IdealGasH2O",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_IdealGasH2O",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 298.4 MB, free: 3.551 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.626e-05/1.79e-05, allocations: 2.281 kB / 298.4 MB, free: 3.547 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.2463/0.2463, allocations: 129.4 MB / 427.8 MB, free: 13.03 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001026/0.2474, allocations: 1.371 MB / 429.2 MB, free: 11.66 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.74e-05/0.2474, allocations: 0 / 429.2 MB, free: 11.66 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001403/0.2475, allocations: 19.89 kB / 429.2 MB, free: 11.64 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005616/0.2481, allocations: 338 kB / 429.5 MB, free: 11.3 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001166/0.2482, allocations: 63.67 kB / 429.6 MB, free: 11.24 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 7.775e-05/0.2483, allocations: 75.55 kB / 429.7 MB, free: 11.17 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.018e-05/0.2483, allocations: 4 kB / 429.7 MB, free: 11.16 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.693e-05/0.2484, allocations: 55.75 kB / 429.7 MB, free: 11.11 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.814e-05/0.2485, allocations: 15.98 kB / 429.7 MB, free: 11.09 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 9.628e-06/0.2485, allocations: 0 / 429.7 MB, free: 11.09 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003887/0.2489, allocations: 343.3 kB / 430.1 MB, free: 10.76 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 1.143e-05/0.2489, allocations: 8 kB / 430.1 MB, free: 10.75 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 2.578e-05/0.2489, allocations: 19.92 kB / 430.1 MB, free: 10.73 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000328/0.2492, allocations: 343.1 kB / 430.4 MB, free: 10.39 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2492, allocations: 0 / 430.4 MB, free: 10.39 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2492, allocations: 0 / 430.4 MB, free: 10.39 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.618e-06/0.2493, allocations: 0 / 430.4 MB, free: 10.39 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0005636/0.2498, allocations: 357.8 kB / 430.8 MB, free: 10.02 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.2499, allocations: 13.95 kB / 430.8 MB, free: 10 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.262e-05/0.2499, allocations: 46.73 kB / 430.9 MB, free: 9.949 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002755/0.2526, allocations: 484.2 kB / 431.3 MB, free: 9.477 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.158e-05/0.2527, allocations: 113.7 kB / 431.4 MB, free: 9.34 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.2527, allocations: 4.375 kB / 431.4 MB, free: 9.336 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.519e-05/0.2528, allocations: 16.36 kB / 431.5 MB, free: 9.32 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004417/0.2532, allocations: 297.2 kB / 431.8 MB, free: 9.023 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.2532, allocations: 0 / 431.8 MB, free: 9.023 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.883e-05/0.2532, allocations: 8 kB / 431.8 MB, free: 9.016 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.2533, allocations: 4 kB / 431.8 MB, free: 9.012 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004459/0.2537, allocations: 271.7 kB / 432 MB, free: 8.746 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005703/0.2543, allocations: 385.3 kB / 432.4 MB, free: 8.328 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005167/0.2548, allocations: 194.3 kB / 432.6 MB, free: 8.129 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.2549, allocations: 64.83 kB / 432.7 MB, free: 8.062 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.729e-05/0.2549, allocations: 7.984 kB / 432.7 MB, free: 8.055 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.687e-05/0.2549, allocations: 34.56 kB / 432.7 MB, free: 8.012 MB / 394.7 MB Notification: Performance of pre-optimization done (n=13): time 1.142e-06/0.2549, allocations: 0 / 432.7 MB, free: 8.012 MB / 394.7 MB Notification: Performance of matching and sorting (n=17): time 0.0009646/0.2559, allocations: 417.2 kB / 433.1 MB, free: 7.598 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.362e-05/0.2559, allocations: 59.5 kB / 433.2 MB, free: 7.527 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.178e-05/0.256, allocations: 105.8 kB / 433.3 MB, free: 7.414 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.9e-05/0.256, allocations: 25.7 kB / 433.3 MB, free: 7.383 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.583e-05/0.2561, allocations: 101.3 kB / 433.4 MB, free: 7.281 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.369e-05/0.2561, allocations: 55.48 kB / 433.4 MB, free: 7.227 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.142e-05/0.2561, allocations: 41.69 kB / 433.5 MB, free: 7.18 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002891/0.2564, allocations: 322.8 kB / 433.8 MB, free: 6.855 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001476/0.2566, allocations: 75.94 kB / 433.9 MB, free: 6.781 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001639/0.2567, allocations: 124.1 kB / 434 MB, free: 6.645 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003042/0.2571, allocations: 203.4 kB / 434.2 MB, free: 6.434 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.2571, allocations: 0 / 434.2 MB, free: 6.434 MB / 394.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003698/0.2574, allocations: 245.3 kB / 434.4 MB, free: 6.188 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.2574, allocations: 4 kB / 434.4 MB, free: 6.184 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.2574, allocations: 4 kB / 434.4 MB, free: 6.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.2575, allocations: 0 / 434.4 MB, free: 6.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001709/0.2576, allocations: 56.02 kB / 434.5 MB, free: 6.125 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.2576, allocations: 11.88 kB / 434.5 MB, free: 6.113 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.2577, allocations: 19.97 kB / 434.5 MB, free: 6.094 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.362e-05/0.2578, allocations: 8 kB / 434.5 MB, free: 6.086 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (21): * Single equations (assignments): 21 * 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 7.462e-05/0.2578, allocations: 121.8 kB / 434.7 MB, free: 5.957 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.683e-05/0.2579, allocations: 11.89 kB / 434.7 MB, free: 5.945 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004655/0.2583, allocations: 277.9 kB / 434.9 MB, free: 5.672 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.2583, allocations: 0 / 434.9 MB, free: 5.672 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.2583, allocations: 4 kB / 434.9 MB, free: 5.668 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.2583, allocations: 6.812 kB / 434.9 MB, free: 5.664 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006991/0.259, allocations: 0.5361 MB / 435.5 MB, free: 5.074 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.259, allocations: 8.062 kB / 435.5 MB, free: 5.066 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001439/0.2592, allocations: 43.95 kB / 435.5 MB, free: 5.023 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.083e-06/0.2592, allocations: 0 / 435.5 MB, free: 5.023 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.618e-05/0.2592, allocations: 8 kB / 435.5 MB, free: 5.016 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.2592, allocations: 7.922 kB / 435.6 MB, free: 5.008 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.2592, allocations: 0 / 435.6 MB, free: 5.008 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003552/0.2596, allocations: 325.5 kB / 435.9 MB, free: 4.668 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.335e-06/0.2596, allocations: 7.953 kB / 435.9 MB, free: 4.66 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.135e-05/0.2596, allocations: 8 kB / 435.9 MB, free: 4.652 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001166/0.2597, allocations: 11.98 kB / 435.9 MB, free: 4.641 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.549e-05/0.2597, allocations: 15.97 kB / 435.9 MB, free: 4.625 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.604e-05/0.2598, allocations: 8 kB / 435.9 MB, free: 4.617 MB / 394.7 MB Notification: Performance of sorting global known variables: time 2.861e-05/0.2598, allocations: 91.2 kB / 436 MB, free: 4.527 MB / 394.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2598, allocations: 3.938 kB / 436 MB, free: 4.523 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002281/0.26, allocations: 47.94 kB / 436.1 MB, free: 4.477 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (18): * Single equations (assignments): 18 * 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.0007378/0.2607, allocations: 0.8779 MB / 436.9 MB, free: 3.562 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003878/0.2611, allocations: 187.7 kB / 437.1 MB, free: 3.379 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.2611, allocations: 4 kB / 437.1 MB, free: 3.375 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001503/0.2613, allocations: 104 kB / 437.2 MB, free: 3.273 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003909/0.2617, allocations: 42.38 kB / 437.3 MB, free: 3.238 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007101/0.2624, allocations: 304.4 kB / 437.6 MB, free: 2.895 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.717e-05/0.2625, allocations: 83.83 kB / 437.6 MB, free: 2.793 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001692/0.2626, allocations: 49.62 kB / 437.7 MB, free: 2.746 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.2627, allocations: 44.47 kB / 437.7 MB, free: 2.703 MB / 394.7 MB Notification: Performance of SimCode: time 6.01e-07/0.2627, allocations: 0 / 437.7 MB, free: 2.703 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02129/0.284, allocations: 5.232 MB / 443 MB, free: 13.44 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.687/6.971, allocations: 8.016 kB / 443 MB, free: 13.43 MB / 410.7 MB " [Timeout remaining time 653] (rm -f Modelica_3.2.3_Modelica.Media.Examples.IdealGasH2O.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.IdealGasH2O.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.IdealGasH2O.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.IdealGasH2O.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.IdealGasH2O_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_IdealGasH2O_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_IdealGasH2O.fmu > Modelica_3.2.3_Modelica.Media.Examples.IdealGasH2O.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.IdealGasH2O_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/IdealGasH2O/IdealGasH2O.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.IdealGasH2O.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: 8.449327433481812]