Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009935/0.0009937, allocations: 198.7 kB / 17.43 MB, free: 4.27 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 229.5 MB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008076/0.0008076, allocations: 90.97 kB / 299.9 MB, free: 5.336 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2957/0.2957, allocations: 45.01 MB / 397 MB, free: 31.47 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002572/0.0002572, allocations: 8 kB / 470.8 MB, free: 7.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.2852, allocations: 63.1 MB / 0.5214 GB, free: 38.47 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air): time 0.4166/0.7018, allocations: 167.9 MB / 0.6853 GB, free: 11.66 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.00608/0.7079, allocations: 7.678 MB / 0.6928 GB, free: 8.586 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000631/0.7086, allocations: 25.19 kB / 0.6929 GB, free: 8.586 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006664/0.7093, allocations: 273.5 kB / 0.6931 GB, free: 8.582 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002319/0.7116, allocations: 1.129 MB / 0.6942 GB, free: 8.516 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001887/0.7135, allocations: 0.854 MB / 0.695 GB, free: 8.48 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.002151/0.7157, allocations: 2.718 MB / 0.6977 GB, free: 8.48 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005462/0.7162, allocations: 398.5 kB / 0.6981 GB, free: 8.438 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001815/0.718, allocations: 0.986 MB / 0.699 GB, free: 8.418 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008914/0.7189, allocations: 0.6765 MB / 0.6997 GB, free: 8.418 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 9.37e-05/0.719, allocations: 31.75 kB / 0.6997 GB, free: 8.418 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001135/0.7202, allocations: 0.5105 MB / 0.7002 GB, free: 8.402 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002805/0.7205, allocations: 234.4 kB / 0.7005 GB, free: 8.402 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003744/0.7209, allocations: 401.8 kB / 0.7008 GB, free: 8.371 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0014/0.7223, allocations: 1.256 MB / 0.7021 GB, free: 8.305 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.7223, allocations: 2.906 kB / 0.7021 GB, free: 8.305 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.7223, allocations: 0 / 0.7021 GB, free: 8.305 MB / 490.7 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.7223, allocations: 0 / 0.7021 GB, free: 8.305 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.001507/0.7238, allocations: 0.9415 MB / 0.703 GB, free: 7.707 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.951e-05/0.7238, allocations: 10.34 kB / 0.703 GB, free: 7.707 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006886/0.7245, allocations: 138.3 kB / 0.7031 GB, free: 7.668 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005799/0.7251, allocations: 0.5071 MB / 0.7036 GB, free: 7.402 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.591e-05/0.7252, allocations: 102.5 kB / 0.7037 GB, free: 7.34 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.351e-05/0.7253, allocations: 50.92 kB / 0.7038 GB, free: 7.34 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001028/0.7263, allocations: 0.8184 MB / 0.7046 GB, free: 7.113 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.843e-05/0.7264, allocations: 4.562 kB / 0.7046 GB, free: 7.113 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.627e-05/0.7264, allocations: 22.53 kB / 0.7046 GB, free: 7.113 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.921e-05/0.7265, allocations: 36.05 kB / 0.7046 GB, free: 7.113 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000931/0.7274, allocations: 0.6163 MB / 0.7052 GB, free: 7.109 MB / 490.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003404/0.7308, allocations: 3.947 MB / 0.7091 GB, free: 4.52 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004968/0.7314, allocations: 348 kB / 0.7094 GB, free: 4.496 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002393/0.7316, allocations: 167.8 kB / 0.7096 GB, free: 4.488 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.227e-05/0.7317, allocations: 92.52 kB / 0.7097 GB, free: 4.395 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.025e-05/0.7317, allocations: 45.84 kB / 0.7097 GB, free: 4.348 MB / 490.7 MB Notification: Performance of pre-optimization done (n=34): time 1.773e-06/0.7317, allocations: 5.844 kB / 0.7097 GB, free: 4.344 MB / 490.7 MB Notification: Performance of matching and sorting (n=39): time 0.004692/0.7364, allocations: 1.664 MB / 0.7113 GB, free: 3.84 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.501e-05/0.7365, allocations: 137 kB / 0.7115 GB, free: 3.684 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000628/0.7371, allocations: 0.61 MB / 0.7121 GB, free: 3.543 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.781e-05/0.7372, allocations: 36.42 kB / 0.7121 GB, free: 3.508 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001788/0.7373, allocations: 369 kB / 0.7125 GB, free: 3.309 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.756e-05/0.7374, allocations: 143.6 kB / 0.7126 GB, free: 3.223 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.407e-05/0.7375, allocations: 13.06 kB / 0.7126 GB, free: 3.223 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.224e-05/0.7376, allocations: 374.7 kB / 0.713 GB, free: 2.91 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003291/0.7379, allocations: 199 kB / 0.7132 GB, free: 2.91 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004468/0.7384, allocations: 0.5172 MB / 0.7137 GB, free: 2.508 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007953/0.7392, allocations: 0.746 MB / 0.7144 GB, free: 2.121 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.271e-06/0.7392, allocations: 3.562 kB / 0.7144 GB, free: 2.121 MB / 490.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001307/0.7405, allocations: 0.8834 MB / 0.7153 GB, free: 2.031 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.7405, allocations: 8.812 kB / 0.7153 GB, free: 2.031 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/0.7405, allocations: 11.66 kB / 0.7153 GB, free: 2.031 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001276/0.7418, allocations: 322.2 kB / 0.7156 GB, free: 2.012 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003757/0.7422, allocations: 124.7 kB / 0.7157 GB, free: 2.012 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001033/0.7432, allocations: 0.9266 MB / 0.7166 GB, free: 17.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004806/0.7437, allocations: 50.58 kB / 0.7167 GB, free: 17.48 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.589e-05/0.7438, allocations: 67.56 kB / 0.7167 GB, free: 17.48 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0003078/0.7442, allocations: 244.9 kB / 0.717 GB, free: 17.36 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.7443, allocations: 65.31 kB / 0.717 GB, free: 17.32 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001576/0.7459, allocations: 0.8805 MB / 0.7179 GB, free: 17.18 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.7459, allocations: 4.281 kB / 0.7179 GB, free: 17.18 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.7459, allocations: 1.125 kB / 0.7179 GB, free: 17.18 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.7459, allocations: 0 / 0.7179 GB, free: 17.18 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001875/0.7478, allocations: 1.457 MB / 0.7193 GB, free: 16.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.7478, allocations: 1.719 kB / 0.7193 GB, free: 16.53 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009376/0.7488, allocations: 215.1 kB / 0.7195 GB, free: 16.53 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.212e-05/0.7488, allocations: 20.38 kB / 0.7195 GB, free: 16.52 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.79e-05/0.7489, allocations: 26.08 kB / 0.7196 GB, free: 16.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001678/0.7506, allocations: 2.681 MB / 0.7222 GB, free: 13.94 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.7506, allocations: 2.062 kB / 0.7222 GB, free: 13.94 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001048/0.7516, allocations: 0.828 MB / 0.723 GB, free: 13.69 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002496/0.7519, allocations: 189.5 kB / 0.7232 GB, free: 13.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.312e-05/0.752, allocations: 12.06 kB / 0.7232 GB, free: 13.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004235/0.7524, allocations: 26.89 kB / 0.7232 GB, free: 13.56 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.7525, allocations: 42.66 kB / 0.7232 GB, free: 13.56 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.147e-05/0.7526, allocations: 48.66 kB / 0.7233 GB, free: 13.55 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0004916/0.7531, allocations: 435.8 kB / 0.7237 GB, free: 13.46 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.4e-07/0.7531, allocations: 0 / 0.7237 GB, free: 13.46 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0009336/0.7541, allocations: 257.5 kB / 0.7239 GB, free: 13.45 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (volume.medium.p,volume.medium.T) * 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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007591/0.7548, allocations: 301.3 kB / 0.7242 GB, free: 13.33 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001028/0.7559, allocations: 0.5466 MB / 0.7248 GB, free: 13.31 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.838e-06/0.7559, allocations: 0 / 0.7248 GB, free: 13.31 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0008488/0.7567, allocations: 426.1 kB / 0.7252 GB, free: 13.2 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001546/0.7583, allocations: 348.9 kB / 0.7255 GB, free: 13.16 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001922/0.7602, allocations: 1.639 MB / 0.7271 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004619/0.7607, allocations: 0.933 MB / 0.728 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.001162/0.7619, allocations: 461.6 kB / 0.7285 GB, free: 11.54 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003383/0.7622, allocations: 104.5 kB / 0.7286 GB, free: 11.53 MB / 0.4948 GB Notification: Performance of SimCode: time 4.21e-07/0.7622, allocations: 0 / 0.7286 GB, free: 11.53 MB / 0.4948 GB Notification: Performance of Templates: time 0.02514/0.7874, allocations: 16.77 MB / 0.7449 GB, free: 4.836 MB / 0.4948 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.sim & ./ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/Air/Air.csv","../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches