Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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: translateModel(Modelica.Media.Examples.IdealGasH2O,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothState.p|der_p|der_T",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O") translateModel(Modelica.Media.Examples.IdealGasH2O,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothState.p|der_p|der_T",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 116.3 kB / 17.07 MB, free: 5.973 MB / 14.72 MB 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: 198.8 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009989/0.0009989, allocations: 51.92 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2272/0.2282, allocations: 49.43 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.1506/0.3788, allocations: 149.2 MB / 0.537 GB, free: 3.059 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003084/0.382, allocations: 2.534 MB / 0.5395 GB, free: 0.5156 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.786e-05/0.3821, allocations: 0 / 0.5395 GB, free: 0.5156 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001666/0.3822, allocations: 23.78 kB / 0.5395 GB, free: 0.4922 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00106/0.3833, allocations: 326.3 kB / 0.5398 GB, free: 176 kB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001969/0.3836, allocations: 55.73 kB / 0.5399 GB, free: 120 kB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001066/0.3837, allocations: 71.61 kB / 0.54 GB, free: 48 kB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.087e-05/0.3837, allocations: 11.98 kB / 0.54 GB, free: 36 kB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.3839, allocations: 35.84 kB / 0.54 GB, free: 0 / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2208/0.6047, allocations: 23.75 kB / 0.54 GB, free: 2.043 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.486e-05/0.6047, allocations: 2.156 kB / 0.54 GB, free: 2.043 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001254/0.606, allocations: 366.5 kB / 0.5404 GB, free: 2.043 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 2.225e-05/0.606, allocations: 9.234 kB / 0.5404 GB, free: 2.043 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 7.684e-05/0.6061, allocations: 30.41 kB / 0.5404 GB, free: 2.043 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006967/0.6068, allocations: 291 kB / 0.5407 GB, free: 2.043 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.6068, allocations: 0.5312 kB / 0.5407 GB, free: 2.043 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.6068, allocations: 0 / 0.5407 GB, free: 2.043 MB / 462.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.6069, allocations: 1.125 kB / 0.5407 GB, free: 2.043 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.0009554/0.6078, allocations: 433.3 kB / 0.5411 GB, free: 17.68 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.6079, allocations: 9.438 kB / 0.5411 GB, free: 17.68 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006724/0.6146, allocations: 460.4 kB / 0.5416 GB, free: 17.67 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001165/0.6147, allocations: 169.9 kB / 0.5417 GB, free: 17.47 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.819e-05/0.6148, allocations: 10.94 kB / 0.5417 GB, free: 17.46 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001044/0.6149, allocations: 9.922 kB / 0.5417 GB, free: 17.46 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008147/0.6157, allocations: 302.1 kB / 0.542 GB, free: 17.43 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.6157, allocations: 0.5 kB / 0.542 GB, free: 17.43 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.098e-05/0.6158, allocations: 5.781 kB / 0.542 GB, free: 17.43 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.6158, allocations: 1.844 kB / 0.542 GB, free: 17.43 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008966/0.6167, allocations: 274.4 kB / 0.5423 GB, free: 17.43 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.6177, allocations: 421.2 kB / 0.5427 GB, free: 17.15 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/0.6188, allocations: 205.9 kB / 0.5429 GB, free: 17.13 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000185/0.619, allocations: 68.73 kB / 0.543 GB, free: 17.12 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.262e-05/0.619, allocations: 5.859 kB / 0.543 GB, free: 17.12 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.344e-05/0.619, allocations: 43.77 kB / 0.543 GB, free: 17.08 MB / 478.1 MB Notification: Performance of pre-optimization done (n=13): time 1.673e-06/0.619, allocations: 1.094 kB / 0.543 GB, free: 17.08 MB / 478.1 MB Notification: Performance of matching and sorting (n=17): time 0.001692/0.6207, allocations: 419.1 kB / 0.5434 GB, free: 17.03 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.429e-05/0.6208, allocations: 55.28 kB / 0.5435 GB, free: 16.96 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.143e-05/0.6209, allocations: 105.6 kB / 0.5436 GB, free: 16.87 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.67e-05/0.6209, allocations: 29.58 kB / 0.5436 GB, free: 16.84 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.729e-05/0.6209, allocations: 98.36 kB / 0.5437 GB, free: 16.74 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.961e-05/0.621, allocations: 59.58 kB / 0.5437 GB, free: 16.71 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.286e-05/0.6211, allocations: 43.39 kB / 0.5438 GB, free: 16.69 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.771e-05/0.6212, allocations: 324.9 kB / 0.5441 GB, free: 16.38 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002581/0.6215, allocations: 78.02 kB / 0.5442 GB, free: 16.38 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002691/0.6217, allocations: 116.5 kB / 0.5443 GB, free: 16.34 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005278/0.6223, allocations: 198.2 kB / 0.5445 GB, free: 16.3 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.6223, allocations: 0 / 0.5445 GB, free: 16.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000663/0.6229, allocations: 254.5 kB / 0.5447 GB, free: 16.25 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.623, allocations: 6.859 kB / 0.5447 GB, free: 16.25 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.623, allocations: 3.031 kB / 0.5447 GB, free: 16.25 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.623, allocations: 1.031 kB / 0.5447 GB, free: 16.25 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003838/0.6234, allocations: 50.2 kB / 0.5448 GB, free: 16.25 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.6234, allocations: 4.75 kB / 0.5448 GB, free: 16.25 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000266/0.6237, allocations: 17.64 kB / 0.5448 GB, free: 16.25 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.303e-05/0.6237, allocations: 14.58 kB / 0.5448 GB, free: 16.25 MB / 478.1 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 0.0001099/0.6238, allocations: 123.5 kB / 0.5449 GB, free: 16.14 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.777e-05/0.6239, allocations: 10.09 kB / 0.5449 GB, free: 16.13 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007733/0.6247, allocations: 279 kB / 0.5452 GB, free: 16.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.6247, allocations: 2.844 kB / 0.5452 GB, free: 16.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.6247, allocations: 0 / 0.5452 GB, free: 16.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.6247, allocations: 2.906 kB / 0.5452 GB, free: 16.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001178/0.6259, allocations: 0.5793 MB / 0.5458 GB, free: 15.78 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.6259, allocations: 0 / 0.5458 GB, free: 15.78 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003546/0.6263, allocations: 49.14 kB / 0.5458 GB, free: 15.78 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.6263, allocations: 1.125 kB / 0.5458 GB, free: 15.78 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.184e-05/0.6263, allocations: 8.312 kB / 0.5458 GB, free: 15.78 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.6263, allocations: 2.5 kB / 0.5458 GB, free: 15.78 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.6263, allocations: 0.9375 kB / 0.5458 GB, free: 15.78 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006376/0.627, allocations: 337 kB / 0.5461 GB, free: 15.62 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.562e-05/0.627, allocations: 87.7 kB / 0.5462 GB, free: 15.52 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.782e-05/0.6271, allocations: 10.5 kB / 0.5462 GB, free: 15.52 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002881/0.6274, allocations: 7.828 kB / 0.5462 GB, free: 15.52 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.626e-05/0.6274, allocations: 21.16 kB / 0.5463 GB, free: 15.52 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.32e-05/0.6274, allocations: 10.78 kB / 0.5463 GB, free: 15.52 MB / 478.1 MB Notification: Performance of sorting global known variables: time 3.669e-05/0.6275, allocations: 85.39 kB / 0.5464 GB, free: 15.44 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6275, allocations: 0 / 0.5464 GB, free: 15.44 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0003502/0.6278, allocations: 49.12 kB / 0.5464 GB, free: 15.44 MB / 478.1 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.0001952/0.628, allocations: 124.5 kB / 0.5465 GB, free: 15.35 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.000601/0.6287, allocations: 199.3 kB / 0.5467 GB, free: 15.34 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.6287, allocations: 0 / 0.5467 GB, free: 15.34 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000279/0.6289, allocations: 105.3 kB / 0.5468 GB, free: 15.34 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004444/0.6294, allocations: 44.69 kB / 0.5469 GB, free: 15.34 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007288/0.6301, allocations: 269.2 kB / 0.5471 GB, free: 15.19 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00023/0.6304, allocations: 0.6972 MB / 0.5478 GB, free: 14.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0002955/0.6307, allocations: 51.75 kB / 0.5478 GB, free: 14.49 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001415/0.6308, allocations: 35.14 kB / 0.5479 GB, free: 14.48 MB / 478.1 MB Notification: Performance of SimCode: time 2.5e-07/0.6308, allocations: 0 / 0.5479 GB, free: 14.48 MB / 478.1 MB Notification: Performance of Templates: time 0.005054/0.6359, allocations: 3.059 MB / 0.5509 GB, free: 14.41 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.sim & ./Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/IdealGasH2O/IdealGasH2O.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches