Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009594/0.0009594, allocations: 103 kB / 15.98 MB, free: 6.352 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.001018/0.001018, allocations: 199.8 kB / 16.91 MB, free: 6.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.433/1.433, allocations: 205.1 MB / 222.8 MB, free: 4.695 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3929/0.3929, allocations: 43.5 MB / 313.6 MB, free: 8.254 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 68.47 kB / 382.3 MB, free: 8.301 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1496/0.1516, allocations: 57.79 MB / 440.1 MB, free: 14.41 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air): time 0.5458/0.6975, allocations: 177.9 MB / 0.6035 GB, free: 9.895 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01363/0.7112, allocations: 8.229 MB / 0.6116 GB, free: 1.645 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001518/0.7128, allocations: 35.75 kB / 0.6116 GB, free: 1.609 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001114/0.714, allocations: 270.5 kB / 0.6119 GB, free: 1.344 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00488/0.7189, allocations: 1.381 MB / 0.6132 GB, free: 15.96 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003635/0.7225, allocations: 1.048 MB / 0.6142 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.003006/0.7255, allocations: 1.856 MB / 0.6161 GB, free: 13.07 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009294/0.7265, allocations: 453.5 kB / 0.6165 GB, free: 12.62 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003627/0.7301, allocations: 1.217 MB / 0.6177 GB, free: 11.41 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001156/0.7313, allocations: 0.693 MB / 0.6184 GB, free: 10.71 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001183/0.7314, allocations: 63.94 kB / 0.6184 GB, free: 10.65 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002114/0.7336, allocations: 0.7528 MB / 0.6192 GB, free: 9.898 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005128/0.7341, allocations: 267.3 kB / 0.6194 GB, free: 9.637 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007193/0.7348, allocations: 402.2 kB / 0.6198 GB, free: 9.242 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003669/0.7385, allocations: 1.422 MB / 0.6212 GB, free: 7.816 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.376e-06/0.7385, allocations: 0 / 0.6212 GB, free: 7.816 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.7385, allocations: 0 / 0.6212 GB, free: 7.816 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.7386, allocations: 0 / 0.6212 GB, free: 7.816 MB / 494.1 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.002937/0.7415, allocations: 1.131 MB / 0.6223 GB, free: 6.637 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/0.7416, allocations: 15.89 kB / 0.6223 GB, free: 6.621 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001448/0.7417, allocations: 103.4 kB / 0.6224 GB, free: 6.512 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008545/0.7426, allocations: 135.1 kB / 0.6225 GB, free: 6.379 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009248/0.7435, allocations: 0.5118 MB / 0.623 GB, free: 5.824 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001952/0.7437, allocations: 104.4 kB / 0.6231 GB, free: 5.711 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/0.7438, allocations: 51.94 kB / 0.6232 GB, free: 5.66 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.7452, allocations: 0.8175 MB / 0.624 GB, free: 4.766 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.237e-05/0.7453, allocations: 0 / 0.624 GB, free: 4.766 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.291e-05/0.7454, allocations: 27.98 kB / 0.624 GB, free: 4.738 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.169e-05/0.7454, allocations: 40.92 kB / 0.624 GB, free: 4.699 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00111/0.7465, allocations: 0.6166 MB / 0.6246 GB, free: 4.082 MB / 494.1 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.3137/1.06, allocations: 3.98 MB / 0.6285 GB, free: 158.6 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008594/1.061, allocations: 350.2 kB / 0.6289 GB, free: 158.6 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003882/1.062, allocations: 171 kB / 0.629 GB, free: 158.6 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000571/1.062, allocations: 361.9 kB / 0.6294 GB, free: 158.3 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.364e-05/1.062, allocations: 44.08 kB / 0.6294 GB, free: 158.3 MB / 494.1 MB Notification: Performance of pre-optimization done (n=34): time 5.631e-06/1.062, allocations: 0 / 0.6294 GB, free: 158.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=39): time 0.006349/1.069, allocations: 1.67 MB / 0.631 GB, free: 157.8 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.027e-05/1.069, allocations: 137.8 kB / 0.6312 GB, free: 157.7 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00109/1.07, allocations: 0.6136 MB / 0.6318 GB, free: 157.5 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 8.964e-05/1.07, allocations: 35.55 kB / 0.6318 GB, free: 157.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003425/1.07, allocations: 372.2 kB / 0.6322 GB, free: 157.3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001565/1.07, allocations: 141 kB / 0.6323 GB, free: 157.2 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003034/1.071, allocations: 153.9 kB / 0.6324 GB, free: 157.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/1.071, allocations: 372.2 kB / 0.6328 GB, free: 156.9 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003888/1.071, allocations: 201.5 kB / 0.633 GB, free: 156.9 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006761/1.072, allocations: 0.5118 MB / 0.6335 GB, free: 156.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001023/1.073, allocations: 0.7498 MB / 0.6342 GB, free: 156.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/1.073, allocations: 2.594 kB / 0.6342 GB, free: 156.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001565/1.075, allocations: 0.8848 MB / 0.6351 GB, free: 155.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.697e-05/1.075, allocations: 13.25 kB / 0.6351 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.907e-05/1.075, allocations: 8.656 kB / 0.6351 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001528/1.076, allocations: 320.1 kB / 0.6354 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004562/1.077, allocations: 126 kB / 0.6355 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001099/1.078, allocations: 0.9184 MB / 0.6364 GB, free: 155.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006956/1.079, allocations: 54.25 kB / 0.6365 GB, free: 155.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001094/1.079, allocations: 72.41 kB / 0.6366 GB, free: 155.2 MB / 494.1 MB 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.0004337/1.079, allocations: 246.8 kB / 0.6368 GB, free: 155 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001871/1.079, allocations: 65.03 kB / 0.6369 GB, free: 155 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001615/1.081, allocations: 0.6788 MB / 0.6375 GB, free: 154.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/1.081, allocations: 5.875 kB / 0.6375 GB, free: 154.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-05/1.081, allocations: 2.906 kB / 0.6375 GB, free: 154.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/1.081, allocations: 6.781 kB / 0.6375 GB, free: 154.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00251/1.083, allocations: 1.61 MB / 0.6391 GB, free: 153.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/1.084, allocations: 3.844 kB / 0.6391 GB, free: 153.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001012/1.085, allocations: 203.8 kB / 0.6393 GB, free: 153.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.013e-05/1.085, allocations: 27.28 kB / 0.6393 GB, free: 153.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.186e-05/1.085, allocations: 19.53 kB / 0.6393 GB, free: 153.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002264/1.087, allocations: 2.883 MB / 0.6422 GB, free: 150.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.209e-06/1.087, allocations: 2.938 kB / 0.6422 GB, free: 150.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001454/1.088, allocations: 0.8026 MB / 0.6429 GB, free: 150.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004445/1.089, allocations: 192.9 kB / 0.6431 GB, free: 150.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002065/1.089, allocations: 17.23 kB / 0.6431 GB, free: 150.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005483/1.09, allocations: 23.59 kB / 0.6432 GB, free: 150.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001583/1.09, allocations: 42.27 kB / 0.6432 GB, free: 150.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.812e-05/1.09, allocations: 46.23 kB / 0.6433 GB, free: 150.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0007729/1.091, allocations: 443.3 kB / 0.6437 GB, free: 150 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.61e-07/1.091, allocations: 4 kB / 0.6437 GB, free: 150 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001395/1.092, allocations: 288.5 kB / 0.644 GB, free: 150 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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.002688/1.095, allocations: 1.608 MB / 0.6455 GB, free: 149 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001469/1.096, allocations: 0.5958 MB / 0.6461 GB, free: 148.9 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/1.096, allocations: 3.25 kB / 0.6461 GB, free: 148.9 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009911/1.097, allocations: 424 kB / 0.6465 GB, free: 148.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001798/1.099, allocations: 374.7 kB / 0.6469 GB, free: 148.6 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01146/1.111, allocations: 6.722 MB / 0.6534 GB, free: 144.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006721/1.111, allocations: 0.927 MB / 0.6543 GB, free: 143.7 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001474/1.113, allocations: 258.2 kB / 0.6546 GB, free: 143.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005839/1.113, allocations: 275.5 kB / 0.6549 GB, free: 143.5 MB / 494.1 MB Notification: Performance of SimCode: time 1.163e-06/1.114, allocations: 0 / 0.6549 GB, free: 143.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1116/1.225, allocations: 24.99 MB / 0.6793 GB, free: 137 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002173/1.225, allocations: 297.3 kB / 0.6795 GB, free: 136.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.662/3.887, allocations: 0 / 0.6795 GB, free: 136.6 MB / 494.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air.fmu > ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/Air/Air.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches