Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.IdealGasH2O.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001259/0.001259, allocations: 117 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001315/0.001315, allocations: 216.7 kB / 21.46 MB, free: 1.613 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 230.4 MB / 254.7 MB, free: 15.04 MB / 206.1 MB " [Timeout remaining time 178] 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.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_IdealGasH2O",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_IdealGasH2O",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 59.91 kB / 373.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09789/0.09981, allocations: 53.38 MB / 427 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.3524/0.4522, allocations: 152.6 MB / 0.5661 GB, free: 7.531 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002767/0.455, allocations: 2.554 MB / 0.5686 GB, free: 4.973 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.705e-05/0.455, allocations: 0 / 0.5686 GB, free: 4.973 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001449/0.4552, allocations: 27.83 kB / 0.5686 GB, free: 4.945 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008165/0.456, allocations: 337 kB / 0.5689 GB, free: 4.617 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001732/0.4561, allocations: 63.69 kB / 0.569 GB, free: 4.555 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001322/0.4563, allocations: 107.3 kB / 0.5691 GB, free: 4.449 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.148e-05/0.4563, allocations: 5.5 kB / 0.5691 GB, free: 4.445 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001028/0.4564, allocations: 43.8 kB / 0.5692 GB, free: 4.402 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.416e-05/0.4565, allocations: 39.83 kB / 0.5692 GB, free: 4.363 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.162e-05/0.4565, allocations: 4 kB / 0.5692 GB, free: 4.359 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006669/0.4572, allocations: 367.5 kB / 0.5695 GB, free: 4 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 1.608e-05/0.4572, allocations: 11.98 kB / 0.5696 GB, free: 3.988 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 5.043e-05/0.4572, allocations: 35.8 kB / 0.5696 GB, free: 3.953 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004872/0.4577, allocations: 319.5 kB / 0.5699 GB, free: 3.645 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.4577, allocations: 4 kB / 0.5699 GB, free: 3.641 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.4577, allocations: 0 / 0.5699 GB, free: 3.641 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.4577, allocations: 0 / 0.5699 GB, free: 3.641 MB / 478.1 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.000915/0.4587, allocations: 458.7 kB / 0.5703 GB, free: 3.145 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.4587, allocations: 12.03 kB / 0.5704 GB, free: 3.133 MB / 478.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.752e-05/0.4587, allocations: 4.188 kB / 0.5704 GB, free: 3.129 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.944e-05/0.4588, allocations: 46.73 kB / 0.5704 GB, free: 3.074 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006466/0.4652, allocations: 460.6 kB / 0.5708 GB, free: 2.625 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001479/0.4654, allocations: 175.9 kB / 0.571 GB, free: 2.414 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.771e-05/0.4654, allocations: 8 kB / 0.571 GB, free: 2.406 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.761e-05/0.4655, allocations: 7.938 kB / 0.571 GB, free: 2.398 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007846/0.4662, allocations: 297.3 kB / 0.5713 GB, free: 2.102 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.4662, allocations: 3.938 kB / 0.5713 GB, free: 2.098 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.831e-05/0.4663, allocations: 8 kB / 0.5713 GB, free: 2.09 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.4663, allocations: 0 / 0.5713 GB, free: 2.09 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008338/0.4671, allocations: 273 kB / 0.5716 GB, free: 1.824 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003034/0.4674, allocations: 257.5 kB / 0.5718 GB, free: 1.523 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004195/0.4679, allocations: 150.7 kB / 0.572 GB, free: 1.367 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002224/0.4681, allocations: 76.81 kB / 0.572 GB, free: 1.289 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.496e-05/0.4681, allocations: 10.72 kB / 0.5721 GB, free: 1.281 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.4681, allocations: 34.56 kB / 0.5721 GB, free: 1.238 MB / 478.1 MB Notification: Performance of pre-optimization done (n=17): time 1.293e-06/0.4681, allocations: 0 / 0.5721 GB, free: 1.238 MB / 478.1 MB Notification: Performance of matching and sorting (n=24): time 0.002287/0.4704, allocations: 0.5852 MB / 0.5727 GB, free: 0.6484 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.4705, allocations: 51.41 kB / 0.5727 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.065e-05/0.4705, allocations: 113.8 kB / 0.5728 GB, free: 476 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.522e-05/0.4706, allocations: 29.7 kB / 0.5728 GB, free: 440 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.145e-05/0.4706, allocations: 88.56 kB / 0.5729 GB, free: 348 kB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.119e-05/0.4707, allocations: 83.28 kB / 0.573 GB, free: 264 kB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001108/0.4708, allocations: 45.69 kB / 0.573 GB, free: 212 kB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.471, allocations: 318.8 kB / 0.5734 GB, free: 15.89 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000315/0.4713, allocations: 99.94 kB / 0.5734 GB, free: 15.79 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003177/0.4716, allocations: 107.9 kB / 0.5736 GB, free: 15.68 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006394/0.4722, allocations: 225.1 kB / 0.5738 GB, free: 15.46 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.4722, allocations: 0 / 0.5738 GB, free: 15.46 MB / 494.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0007596/0.473, allocations: 285.3 kB / 0.574 GB, free: 15.18 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.473, allocations: 4 kB / 0.574 GB, free: 15.17 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.473, allocations: 0.625 kB / 0.574 GB, free: 15.17 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.225e-05/0.4731, allocations: 3.938 kB / 0.574 GB, free: 15.17 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004635/0.4735, allocations: 59.89 kB / 0.5741 GB, free: 15.11 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.4735, allocations: 3.984 kB / 0.5741 GB, free: 15.11 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002729/0.4738, allocations: 15.98 kB / 0.5741 GB, free: 15.09 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.168e-05/0.4738, allocations: 16.5 kB / 0.5741 GB, free: 15.07 MB / 494.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 (24): * Single equations (assignments): 24 * 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 0.000125/0.474, allocations: 121.8 kB / 0.5743 GB, free: 14.95 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.949e-05/0.474, allocations: 11.95 kB / 0.5743 GB, free: 14.93 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009778/0.475, allocations: 351.9 kB / 0.5746 GB, free: 14.59 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.475, allocations: 4 kB / 0.5746 GB, free: 14.59 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.475, allocations: 0 / 0.5746 GB, free: 14.59 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.475, allocations: 4 kB / 0.5746 GB, free: 14.58 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001577/0.4766, allocations: 0.7335 MB / 0.5753 GB, free: 13.78 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.4766, allocations: 4 kB / 0.5753 GB, free: 13.77 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004075/0.477, allocations: 55.89 kB / 0.5754 GB, free: 13.72 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.177e-05/0.477, allocations: 7.984 kB / 0.5754 GB, free: 13.71 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.904e-05/0.477, allocations: 8 kB / 0.5754 GB, free: 13.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.618e-06/0.477, allocations: 4 kB / 0.5754 GB, free: 13.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.477, allocations: 0 / 0.5754 GB, free: 13.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008424/0.4779, allocations: 412.5 kB / 0.5758 GB, free: 13.27 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.478e-05/0.4779, allocations: 97 kB / 0.5759 GB, free: 13.15 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.838e-05/0.478, allocations: 5.75 kB / 0.5759 GB, free: 13.15 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003141/0.4783, allocations: 15.98 kB / 0.5759 GB, free: 13.13 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.804e-05/0.4783, allocations: 23.91 kB / 0.5759 GB, free: 13.11 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.384e-05/0.4784, allocations: 12 kB / 0.5759 GB, free: 13.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.648e-05/0.4784, allocations: 91.27 kB / 0.576 GB, free: 13.01 MB / 494.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4784, allocations: 0 / 0.576 GB, free: 13.01 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003629/0.4788, allocations: 59.94 kB / 0.5761 GB, free: 12.95 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (26): * Single equations (assignments): 26 * 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.001257/0.4801, allocations: 0.9628 MB / 0.577 GB, free: 11.94 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0007517/0.4808, allocations: 239.7 kB / 0.5773 GB, free: 11.71 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.4808, allocations: 4 kB / 0.5773 GB, free: 11.7 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003694/0.4812, allocations: 131.2 kB / 0.5774 GB, free: 11.58 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005442/0.4817, allocations: 64.95 kB / 0.5774 GB, free: 11.52 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003573/0.4853, allocations: 2.109 MB / 0.5795 GB, free: 9.305 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003296/0.4856, allocations: 0.7047 MB / 0.5802 GB, free: 8.574 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002901/0.4859, allocations: 59.06 kB / 0.5802 GB, free: 8.516 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002078/0.4861, allocations: 55.41 kB / 0.5803 GB, free: 8.461 MB / 494.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4861, allocations: 0 / 0.5803 GB, free: 8.461 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02304/0.5092, allocations: 5.658 MB / 0.5858 GB, free: 2.898 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.07/8.58, allocations: 11.92 kB / 0.5858 GB, free: 2.891 MB / 494.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Media.Examples.IdealGasH2O.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.IdealGasH2O.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.IdealGasH2O.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.IdealGasH2O.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.IdealGasH2O_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_IdealGasH2O_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_IdealGasH2O.fmu > Modelica_trunk_Modelica.Media.Examples.IdealGasH2O.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.IdealGasH2O_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/IdealGasH2O/IdealGasH2O.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 11.00053607596783]