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.001464/0.001464, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001552/0.001552, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.401/1.401, allocations: 230.6 MB / 258.3 MB, free: 8 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.001679/0.001679, allocations: 47.94 kB / 378.5 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2169/0.2186, allocations: 53.36 MB / 431.9 MB, free: 6.816 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.3694/0.588, allocations: 152.7 MB / 0.5709 GB, free: 13.11 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.001997/0.59, allocations: 2.556 MB / 0.5734 GB, free: 12.93 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.347e-05/0.59, allocations: 3.875 kB / 0.5734 GB, free: 12.93 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001351/0.5902, allocations: 28.92 kB / 0.5734 GB, free: 12.92 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007862/0.591, allocations: 343.1 kB / 0.5737 GB, free: 12.83 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001612/0.5911, allocations: 62.75 kB / 0.5738 GB, free: 12.81 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.00011/0.5912, allocations: 100.1 kB / 0.5739 GB, free: 12.78 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.988e-05/0.5913, allocations: 4.438 kB / 0.5739 GB, free: 12.78 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.714e-05/0.5914, allocations: 43.05 kB / 0.5739 GB, free: 12.77 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.827e-05/0.5914, allocations: 36.64 kB / 0.574 GB, free: 12.77 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.044e-05/0.5915, allocations: 2.719 kB / 0.574 GB, free: 12.77 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006205/0.5921, allocations: 371.5 kB / 0.5743 GB, free: 12.75 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 1.551e-05/0.5921, allocations: 17.62 kB / 0.5744 GB, free: 12.75 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 4.132e-05/0.5921, allocations: 39.59 kB / 0.5744 GB, free: 12.75 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000426/0.5926, allocations: 316.7 kB / 0.5747 GB, free: 12.72 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.5926, allocations: 0 / 0.5747 GB, free: 12.72 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.5926, allocations: 4.938 kB / 0.5747 GB, free: 12.72 MB / 462.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.5926, allocations: 0 / 0.5747 GB, free: 12.72 MB / 462.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.0008579/0.5934, allocations: 389.9 kB / 0.5751 GB, free: 12.42 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.5935, allocations: 10.16 kB / 0.5751 GB, free: 12.42 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.176e-05/0.5935, allocations: 192 / 0.5751 GB, free: 12.42 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.553e-05/0.5935, allocations: 42.64 kB / 0.5751 GB, free: 12.38 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005957/0.5995, allocations: 464 kB / 0.5756 GB, free: 12.37 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001308/0.5996, allocations: 121.8 kB / 0.5757 GB, free: 12.23 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.002e-05/0.5996, allocations: 2.594 kB / 0.5757 GB, free: 12.23 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.102e-05/0.5997, allocations: 13.36 kB / 0.5757 GB, free: 12.23 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007072/0.6004, allocations: 295 kB / 0.576 GB, free: 12.19 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.6004, allocations: 3.312 kB / 0.576 GB, free: 12.19 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.534e-05/0.6005, allocations: 1.094 kB / 0.576 GB, free: 12.19 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.75e-06/0.6005, allocations: 4.719 kB / 0.576 GB, free: 12.19 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007362/0.6012, allocations: 278.2 kB / 0.5763 GB, free: 12.19 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002751/0.6015, allocations: 219.5 kB / 0.5765 GB, free: 12.01 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003669/0.6018, allocations: 159.1 kB / 0.5766 GB, free: 11.98 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001953/0.602, allocations: 77.94 kB / 0.5767 GB, free: 11.97 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.165e-05/0.6021, allocations: 2.812 kB / 0.5767 GB, free: 11.97 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.605e-05/0.6021, allocations: 37.36 kB / 0.5767 GB, free: 11.93 MB / 462.1 MB Notification: Performance of pre-optimization done (n=17): time 1.283e-06/0.6021, allocations: 0 / 0.5767 GB, free: 11.93 MB / 462.1 MB Notification: Performance of matching and sorting (n=24): time 0.001999/0.6041, allocations: 0.5859 MB / 0.5773 GB, free: 11.86 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.481e-05/0.6041, allocations: 57.94 kB / 0.5774 GB, free: 11.79 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.237e-05/0.6042, allocations: 109.8 kB / 0.5775 GB, free: 11.69 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.48e-05/0.6042, allocations: 29.45 kB / 0.5775 GB, free: 11.66 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.176e-05/0.6043, allocations: 88.78 kB / 0.5776 GB, free: 11.57 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.553e-05/0.6044, allocations: 85.02 kB / 0.5777 GB, free: 11.52 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.982e-05/0.6045, allocations: 42.31 kB / 0.5777 GB, free: 11.5 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.6046, allocations: 322.1 kB / 0.578 GB, free: 11.19 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002876/0.6049, allocations: 104.1 kB / 0.5781 GB, free: 11.19 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002873/0.6052, allocations: 101.9 kB / 0.5782 GB, free: 11.19 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005697/0.6057, allocations: 228.8 kB / 0.5784 GB, free: 11.17 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.6057, allocations: 0 / 0.5784 GB, free: 11.17 MB / 462.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006852/0.6064, allocations: 287.2 kB / 0.5787 GB, free: 11.12 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.6064, allocations: 4.656 kB / 0.5787 GB, free: 11.12 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.6065, allocations: 0 / 0.5787 GB, free: 11.12 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.6065, allocations: 5.141 kB / 0.5787 GB, free: 11.12 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004184/0.6069, allocations: 60.22 kB / 0.5788 GB, free: 11.12 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.6069, allocations: 1.781 kB / 0.5788 GB, free: 11.12 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002612/0.6072, allocations: 10.78 kB / 0.5788 GB, free: 11.12 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.659e-05/0.6072, allocations: 15.14 kB / 0.5788 GB, free: 11.12 MB / 462.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.0001362/0.6073, allocations: 125.9 kB / 0.5789 GB, free: 11 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.063e-05/0.6074, allocations: 8.859 kB / 0.5789 GB, free: 10.99 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008826/0.6083, allocations: 366.1 kB / 0.5793 GB, free: 10.93 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.6083, allocations: 7.391 kB / 0.5793 GB, free: 10.93 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.6083, allocations: 0 / 0.5793 GB, free: 10.93 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.6083, allocations: 0 / 0.5793 GB, free: 10.93 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001452/0.6097, allocations: 0.6917 MB / 0.5799 GB, free: 10.59 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.6097, allocations: 0 / 0.5799 GB, free: 10.59 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003869/0.6101, allocations: 57.94 kB / 0.58 GB, free: 10.59 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.6101, allocations: 3.828 kB / 0.58 GB, free: 10.59 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.831e-05/0.6101, allocations: 18.78 kB / 0.58 GB, free: 10.59 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.6101, allocations: 2.375 kB / 0.58 GB, free: 10.59 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.6102, allocations: 3.938 kB / 0.58 GB, free: 10.58 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007446/0.6109, allocations: 406.1 kB / 0.5804 GB, free: 10.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.208e-05/0.6109, allocations: 12.97 kB / 0.5804 GB, free: 10.39 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.019e-05/0.611, allocations: 5.375 kB / 0.5804 GB, free: 10.39 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003075/0.6113, allocations: 16.48 kB / 0.5804 GB, free: 10.39 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.422e-05/0.6113, allocations: 31.52 kB / 0.5805 GB, free: 10.38 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.912e-05/0.6113, allocations: 12.62 kB / 0.5805 GB, free: 10.38 MB / 462.1 MB Notification: Performance of sorting global known variables: time 4.972e-05/0.6114, allocations: 88.27 kB / 0.5806 GB, free: 10.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.6114, allocations: 1.203 kB / 0.5806 GB, free: 10.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0003451/0.6117, allocations: 55.16 kB / 0.5806 GB, free: 10.3 MB / 462.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.00118/0.6129, allocations: 0.9634 MB / 0.5816 GB, free: 9.582 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0006748/0.6136, allocations: 249.7 kB / 0.5818 GB, free: 9.562 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.6136, allocations: 0 / 0.5818 GB, free: 9.562 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000318/0.6139, allocations: 131.1 kB / 0.5819 GB, free: 9.555 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005354/0.6144, allocations: 64.88 kB / 0.582 GB, free: 9.543 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003278/0.6177, allocations: 2.117 MB / 0.5841 GB, free: 8.219 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003053/0.618, allocations: 0.7055 MB / 0.5847 GB, free: 7.523 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0002892/0.6183, allocations: 54.11 kB / 0.5848 GB, free: 7.496 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001907/0.6185, allocations: 59.11 kB / 0.5849 GB, free: 7.48 MB / 462.1 MB Notification: Performance of SimCode: time 4.6e-07/0.6185, allocations: 3.031 kB / 0.5849 GB, free: 7.48 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02691/0.6454, allocations: 5.932 MB / 0.5907 GB, free: 4.48 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.86/11.5, allocations: 4.906 kB / 0.5907 GB, free: 4.48 MB / 462.1 MB " [Timeout remaining time 648] (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: 13.9423738400219]