Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.MixIdealGasAir.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.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestOnly_MixIdealGasAir",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.001223/0.001223, allocations: 110 kB / 16.41 MB, free: 6.445 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.001351/0.001351, allocations: 185.5 kB / 17.34 MB, free: 5.723 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.422/1.422, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2096/0.2096, allocations: 43.53 MB / 314.1 MB, free: 448 kB / 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.001542/0.001542, allocations: 65.47 kB / 441.3 MB, free: 6.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1346, allocations: 57.8 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.4685/0.6032, allocations: 151.2 MB / 0.635 GB, free: 3.805 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004195/0.6075, allocations: 3.035 MB / 0.638 GB, free: 0.7852 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000155/0.6077, allocations: 0 / 0.638 GB, free: 0.7852 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004107/0.6081, allocations: 67.64 kB / 0.6381 GB, free: 0.7188 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003033/0.6112, allocations: 1.01 MB / 0.639 GB, free: 15.7 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005886/0.6118, allocations: 192.1 kB / 0.6392 GB, free: 15.52 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005534/0.6124, allocations: 362.5 kB / 0.6396 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.506e-05/0.6124, allocations: 9.125 kB / 0.6396 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003472/0.6128, allocations: 151.5 kB / 0.6397 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002508/0.613, allocations: 103.6 kB / 0.6398 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.216e-05/0.6131, allocations: 12 kB / 0.6398 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003189/0.6163, allocations: 1.473 MB / 0.6413 GB, free: 13.42 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001228/0.6164, allocations: 75.77 kB / 0.6413 GB, free: 13.34 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001572/0.6166, allocations: 107.6 kB / 0.6414 GB, free: 13.24 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002216/0.6188, allocations: 0.9822 MB / 0.6424 GB, free: 12.25 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.6189, allocations: 3.938 kB / 0.6424 GB, free: 12.25 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.6189, allocations: 0 / 0.6424 GB, free: 12.25 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.167e-05/0.6189, allocations: 4 kB / 0.6424 GB, free: 12.25 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001318/0.6202, allocations: 0.5383 MB / 0.6429 GB, free: 11.66 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.506e-05/0.6203, allocations: 11.89 kB / 0.6429 GB, free: 11.65 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.245e-05/0.6204, allocations: 58.73 kB / 0.643 GB, free: 11.58 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001556/0.6219, allocations: 200.5 kB / 0.6432 GB, free: 11.39 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003666/0.6223, allocations: 244.1 kB / 0.6434 GB, free: 11.11 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.931e-05/0.6223, allocations: 12.75 kB / 0.6434 GB, free: 11.1 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.089e-05/0.6224, allocations: 27.84 kB / 0.6435 GB, free: 11.07 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006173/0.623, allocations: 385.4 kB / 0.6438 GB, free: 10.68 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.6231, allocations: 0 / 0.6438 GB, free: 10.68 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.192e-05/0.6231, allocations: 8 kB / 0.6438 GB, free: 10.68 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.809e-06/0.6231, allocations: 11.92 kB / 0.6439 GB, free: 10.66 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000564/0.6237, allocations: 411.2 kB / 0.6442 GB, free: 10.27 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.001649/0.6254, allocations: 0.8008 MB / 0.645 GB, free: 9.41 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003814/0.6257, allocations: 221 kB / 0.6452 GB, free: 9.176 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001712/0.6259, allocations: 122.4 kB / 0.6454 GB, free: 9.051 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001715/0.6277, allocations: 0.901 MB / 0.6462 GB, free: 8.004 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.41e-05/0.6277, allocations: 38.56 kB / 0.6463 GB, free: 7.957 MB / 494.1 MB Notification: Performance of pre-optimization done (n=29): time 1.934e-06/0.6277, allocations: 0 / 0.6463 GB, free: 7.957 MB / 494.1 MB Notification: Performance of matching and sorting (n=29): time 0.001138/0.6288, allocations: 357.8 kB / 0.6466 GB, free: 7.602 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/0.6289, allocations: 81.11 kB / 0.6467 GB, free: 7.504 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/0.629, allocations: 115.8 kB / 0.6468 GB, free: 7.383 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.706e-05/0.6291, allocations: 33.7 kB / 0.6468 GB, free: 7.344 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.416e-05/0.6291, allocations: 120.3 kB / 0.6469 GB, free: 7.219 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.154e-05/0.6292, allocations: 102.5 kB / 0.647 GB, free: 7.117 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.6293, allocations: 65.94 kB / 0.6471 GB, free: 7.047 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.6295, allocations: 326.8 kB / 0.6474 GB, free: 6.719 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001865/0.6297, allocations: 92.61 kB / 0.6475 GB, free: 6.629 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002404/0.6299, allocations: 187.5 kB / 0.6477 GB, free: 6.41 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004468/0.6304, allocations: 298.1 kB / 0.648 GB, free: 6.082 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.6304, allocations: 4 kB / 0.648 GB, free: 6.078 MB / 494.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006162/0.631, allocations: 342.5 kB / 0.6483 GB, free: 5.738 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.631, allocations: 4 kB / 0.6483 GB, free: 5.734 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.631, allocations: 4 kB / 0.6483 GB, free: 5.73 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.6311, allocations: 4 kB / 0.6483 GB, free: 5.727 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003487/0.6314, allocations: 80.2 kB / 0.6484 GB, free: 5.648 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.6314, allocations: 4 kB / 0.6484 GB, free: 5.645 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000221/0.6317, allocations: 35.38 kB / 0.6484 GB, free: 5.613 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-05/0.6317, allocations: 19.98 kB / 0.6484 GB, free: 5.594 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (39): * Single equations (assignments): 39 * 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.0001429/0.6319, allocations: 141.7 kB / 0.6486 GB, free: 5.445 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.632, allocations: 11.91 kB / 0.6486 GB, free: 5.434 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006571/0.6327, allocations: 328.9 kB / 0.6489 GB, free: 5.109 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.6327, allocations: 4 kB / 0.6489 GB, free: 5.105 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.6327, allocations: 3.984 kB / 0.6489 GB, free: 5.102 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.6327, allocations: 0 / 0.6489 GB, free: 5.102 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005637/0.6333, allocations: 343 kB / 0.6492 GB, free: 4.719 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.6333, allocations: 0 / 0.6492 GB, free: 4.719 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003399/0.6336, allocations: 55.91 kB / 0.6493 GB, free: 4.664 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.582e-06/0.6337, allocations: 4 kB / 0.6493 GB, free: 4.66 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.905e-05/0.6337, allocations: 8 kB / 0.6493 GB, free: 4.652 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.6337, allocations: 0 / 0.6493 GB, free: 4.652 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.6337, allocations: 0 / 0.6493 GB, free: 4.652 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007464/0.6344, allocations: 0.5073 MB / 0.6498 GB, free: 4.129 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.528e-05/0.6345, allocations: 92.95 kB / 0.6499 GB, free: 4.02 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.868e-05/0.6346, allocations: 8.047 kB / 0.6499 GB, free: 4.012 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003038/0.6349, allocations: 15.98 kB / 0.6499 GB, free: 3.996 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.728e-05/0.6349, allocations: 19.97 kB / 0.6499 GB, free: 3.977 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.633e-05/0.635, allocations: 23.92 kB / 0.65 GB, free: 3.953 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.07e-05/0.635, allocations: 91.27 kB / 0.65 GB, free: 3.863 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.635, allocations: 0 / 0.65 GB, free: 3.863 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0008812/0.6359, allocations: 231.7 kB / 0.6503 GB, free: 3.637 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (medium2.p,medium2.T,medium2.X[1],medium2.X[2],medium.p,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 (29): * Single equations (assignments): 29 * 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.00198/0.6379, allocations: 1.368 MB / 0.6516 GB, free: 2.246 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004962/0.6384, allocations: 259.7 kB / 0.6518 GB, free: 1.992 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.6384, allocations: 0 / 0.6518 GB, free: 1.992 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000207/0.6386, allocations: 123.9 kB / 0.652 GB, free: 1.871 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006252/0.6393, allocations: 84.64 kB / 0.652 GB, free: 1.793 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003384/0.6427, allocations: 2.658 MB / 0.6546 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004335/0.6431, allocations: 0.7285 MB / 0.6554 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003296/0.6435, allocations: 79.16 kB / 0.6554 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001409/0.6436, allocations: 63.42 kB / 0.6555 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of SimCode: time 3.31e-07/0.6436, allocations: 3.938 kB / 0.6555 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03384/0.6775, allocations: 10.59 MB / 0.6658 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.644/8.321, allocations: 3.984 kB / 0.6658 GB, free: 3.484 MB / 0.4981 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.MixIdealGasAir.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Media_TestOnly_MixIdealGasAir_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Media_TestOnly_MixIdealGasAir.fmu > ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestOnly/MixIdealGasAir/MixIdealGasAir.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.MixIdealGasAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches