Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001286/0.001286, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.001349/0.001349, allocations: 218.9 kB / 21.46 MB, free: 1.586 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.396/1.396, allocations: 230.6 MB / 254.8 MB, free: 15.24 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.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_IdealGasH2O",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_IdealGasH2O",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 51.91 kB / 373.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1021, allocations: 53.32 MB / 427 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.3482/0.4503, allocations: 152.6 MB / 0.5661 GB, free: 2.16 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.002821/0.4531, allocations: 2.551 MB / 0.5686 GB, free: 15.61 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.868e-05/0.4531, allocations: 0 / 0.5686 GB, free: 15.61 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000162/0.4533, allocations: 27.81 kB / 0.5686 GB, free: 15.58 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008716/0.4542, allocations: 342.3 kB / 0.5689 GB, free: 15.25 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001839/0.4543, allocations: 67.72 kB / 0.569 GB, free: 15.18 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001326/0.4545, allocations: 103.3 kB / 0.5691 GB, free: 15.08 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.989e-05/0.4545, allocations: 4 kB / 0.5691 GB, free: 15.07 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001035/0.4546, allocations: 43.78 kB / 0.5691 GB, free: 15.03 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.801e-05/0.4547, allocations: 35.86 kB / 0.5691 GB, free: 15 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.245e-05/0.4547, allocations: 7.938 kB / 0.5692 GB, free: 14.99 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006851/0.4554, allocations: 371.5 kB / 0.5695 GB, free: 14.62 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 1.446e-05/0.4554, allocations: 8 kB / 0.5695 GB, free: 14.62 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 4.971e-05/0.4555, allocations: 43.72 kB / 0.5696 GB, free: 14.57 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004731/0.4559, allocations: 315.6 kB / 0.5699 GB, free: 14.27 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.4559, allocations: 0 / 0.5699 GB, free: 14.27 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.4559, allocations: 0 / 0.5699 GB, free: 14.27 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.377e-06/0.456, allocations: 1.781 kB / 0.5699 GB, free: 14.27 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.0009428/0.4569, allocations: 466.7 kB / 0.5703 GB, free: 13.77 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.4569, allocations: 12.03 kB / 0.5703 GB, free: 13.75 MB / 478.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.191e-05/0.4569, allocations: 192 / 0.5703 GB, free: 13.75 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.708e-05/0.457, allocations: 38.75 kB / 0.5704 GB, free: 13.71 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006413/0.4634, allocations: 464.6 kB / 0.5708 GB, free: 13.25 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001676/0.4636, allocations: 182.8 kB / 0.571 GB, free: 13.04 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/0.4636, allocations: 0 / 0.571 GB, free: 13.04 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.504e-05/0.4637, allocations: 12 kB / 0.571 GB, free: 13.02 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007932/0.4645, allocations: 301.2 kB / 0.5713 GB, free: 12.72 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.4645, allocations: 0 / 0.5713 GB, free: 12.72 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.599e-05/0.4645, allocations: 0 / 0.5713 GB, free: 12.72 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.4645, allocations: 8 kB / 0.5713 GB, free: 12.71 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008394/0.4654, allocations: 272.4 kB / 0.5715 GB, free: 12.45 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003227/0.4657, allocations: 249.5 kB / 0.5718 GB, free: 12.16 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004232/0.4661, allocations: 155.3 kB / 0.5719 GB, free: 12 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002221/0.4663, allocations: 80.84 kB / 0.572 GB, free: 11.91 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.012e-05/0.4664, allocations: 4 kB / 0.572 GB, free: 11.91 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.74e-05/0.4664, allocations: 30.56 kB / 0.572 GB, free: 11.87 MB / 478.1 MB Notification: Performance of pre-optimization done (n=17): time 1.563e-06/0.4664, allocations: 6.344 kB / 0.572 GB, free: 11.87 MB / 478.1 MB Notification: Performance of matching and sorting (n=24): time 0.002268/0.4687, allocations: 0.5889 MB / 0.5726 GB, free: 11.27 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.278e-05/0.4687, allocations: 51.41 kB / 0.5727 GB, free: 11.21 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.627e-05/0.4688, allocations: 109.8 kB / 0.5728 GB, free: 11.09 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.828e-05/0.4688, allocations: 29.7 kB / 0.5728 GB, free: 11.06 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.181e-05/0.4689, allocations: 84.58 kB / 0.5729 GB, free: 10.97 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.092e-05/0.469, allocations: 83.27 kB / 0.573 GB, free: 10.89 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001132/0.4691, allocations: 45.7 kB / 0.573 GB, free: 10.84 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.4692, allocations: 322.8 kB / 0.5733 GB, free: 10.52 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003186/0.4695, allocations: 103.9 kB / 0.5734 GB, free: 10.41 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003046/0.4698, allocations: 99.94 kB / 0.5735 GB, free: 10.32 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006323/0.4705, allocations: 223.7 kB / 0.5737 GB, free: 10.1 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.4705, allocations: 4 kB / 0.5737 GB, free: 10.09 MB / 478.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0007696/0.4712, allocations: 293.3 kB / 0.574 GB, free: 9.801 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.4713, allocations: 4 kB / 0.574 GB, free: 9.797 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.4713, allocations: 0 / 0.574 GB, free: 9.797 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.4713, allocations: 3.938 kB / 0.574 GB, free: 9.793 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000461/0.4717, allocations: 51.95 kB / 0.5741 GB, free: 9.742 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.4717, allocations: 0 / 0.5741 GB, free: 9.742 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002742/0.472, allocations: 23.86 kB / 0.5741 GB, free: 9.719 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.052e-05/0.4721, allocations: 11.98 kB / 0.5741 GB, free: 9.707 MB / 478.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.0001266/0.4722, allocations: 121.8 kB / 0.5742 GB, free: 9.578 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.278e-05/0.4722, allocations: 11.95 kB / 0.5742 GB, free: 9.566 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009779/0.4732, allocations: 359.4 kB / 0.5746 GB, free: 9.215 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.4732, allocations: 4 kB / 0.5746 GB, free: 9.211 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.4732, allocations: 7.312 kB / 0.5746 GB, free: 9.207 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.4732, allocations: 3.984 kB / 0.5746 GB, free: 9.203 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001593/0.4748, allocations: 0.7141 MB / 0.5753 GB, free: 8.418 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.4748, allocations: 4.094 kB / 0.5753 GB, free: 8.414 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004094/0.4752, allocations: 63.95 kB / 0.5753 GB, free: 8.352 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/0.4752, allocations: 4 kB / 0.5753 GB, free: 8.348 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.007e-05/0.4753, allocations: 11.98 kB / 0.5754 GB, free: 8.336 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/0.4753, allocations: 3.938 kB / 0.5754 GB, free: 8.332 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.4753, allocations: 4 kB / 0.5754 GB, free: 8.328 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008521/0.4761, allocations: 407.7 kB / 0.5758 GB, free: 7.898 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.733e-05/0.4762, allocations: 89.02 kB / 0.5758 GB, free: 7.793 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.845e-05/0.4762, allocations: 12 kB / 0.5758 GB, free: 7.781 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003114/0.4765, allocations: 15.98 kB / 0.5759 GB, free: 7.766 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.686e-05/0.4766, allocations: 23.84 kB / 0.5759 GB, free: 7.742 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.419e-05/0.4766, allocations: 16 kB / 0.5759 GB, free: 7.727 MB / 478.1 MB Notification: Performance of sorting global known variables: time 5.323e-05/0.4767, allocations: 85.69 kB / 0.576 GB, free: 7.645 MB / 478.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4767, allocations: 0 / 0.576 GB, free: 7.645 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0003767/0.4771, allocations: 56 kB / 0.576 GB, free: 7.59 MB / 478.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.001278/0.4783, allocations: 0.9663 MB / 0.577 GB, free: 6.578 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0007531/0.4791, allocations: 248.7 kB / 0.5772 GB, free: 6.34 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.4791, allocations: 0 / 0.5772 GB, free: 6.34 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003759/0.4795, allocations: 140 kB / 0.5774 GB, free: 6.203 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005509/0.48, allocations: 49.62 kB / 0.5774 GB, free: 6.16 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003585/0.4836, allocations: 2.113 MB / 0.5795 GB, free: 3.938 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003281/0.4839, allocations: 0.7047 MB / 0.5801 GB, free: 3.207 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.000287/0.4842, allocations: 64.23 kB / 0.5802 GB, free: 3.148 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002062/0.4844, allocations: 47.41 kB / 0.5803 GB, free: 3.102 MB / 478.1 MB Notification: Performance of SimCode: time 6.22e-07/0.4844, allocations: 0 / 0.5803 GB, free: 3.102 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02363/0.508, allocations: 5.666 MB / 0.5858 GB, free: 13.56 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.084/8.592, allocations: 9.906 kB / 0.5858 GB, free: 13.55 MB / 494.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Media.Examples.IdealGasH2O.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.IdealGasH2O.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.IdealGasH2O.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.IdealGasH2O.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Media.Examples.IdealGasH2O_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Media_Examples_IdealGasH2O_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Media_Examples_IdealGasH2O.fmu > Modelica_4.1.0_Modelica.Media.Examples.IdealGasH2O.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 10.968610509997234]