Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_4_0_0_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.001131/0.001131, allocations: 105.7 kB / 17.32 MB, free: 5.984 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.001189/0.001189, allocations: 193.3 kB / 18.25 MB, free: 5.07 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.408/1.408, allocations: 222.9 MB / 241.9 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2209/0.2209, allocations: 44.17 MB / 336.2 MB, free: 2.949 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002272/0.002272, allocations: 59.19 kB / 408 MB, free: 27.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1624/0.1647, allocations: 60.82 MB / 468.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.5348/0.6995, allocations: 147.8 MB / 0.6022 GB, free: 13.36 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.005243/0.7048, allocations: 3.132 MB / 0.6052 GB, free: 10.24 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002652/0.7052, allocations: 0 / 0.6052 GB, free: 10.24 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005729/0.7057, allocations: 51.77 kB / 0.6053 GB, free: 10.19 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003944/0.7098, allocations: 0.9594 MB / 0.6062 GB, free: 9.23 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007292/0.7105, allocations: 185.6 kB / 0.6064 GB, free: 9.055 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007003/0.7113, allocations: 354.7 kB / 0.6067 GB, free: 8.707 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.788e-05/0.7114, allocations: 21.08 kB / 0.6067 GB, free: 8.684 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004673/0.7118, allocations: 151.5 kB / 0.6069 GB, free: 8.535 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003298/0.7122, allocations: 111.6 kB / 0.607 GB, free: 8.426 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.46e-05/0.7122, allocations: 12 kB / 0.607 GB, free: 8.414 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003652/0.7159, allocations: 1.61 MB / 0.6086 GB, free: 6.801 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001302/0.7161, allocations: 71.86 kB / 0.6086 GB, free: 6.73 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000167/0.7162, allocations: 111.5 kB / 0.6088 GB, free: 6.621 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002508/0.7187, allocations: 1.087 MB / 0.6098 GB, free: 5.531 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.7188, allocations: 0 / 0.6098 GB, free: 5.531 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.7188, allocations: 4 kB / 0.6098 GB, free: 5.527 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.7188, allocations: 0 / 0.6098 GB, free: 5.527 MB / 446.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.001307/0.7201, allocations: 0.5314 MB / 0.6103 GB, free: 4.949 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.469e-05/0.7202, allocations: 12.03 kB / 0.6103 GB, free: 4.938 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.718e-05/0.7203, allocations: 58.67 kB / 0.6104 GB, free: 4.871 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003905/0.7242, allocations: 396.2 kB / 0.6108 GB, free: 4.484 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004597/0.7247, allocations: 260 kB / 0.611 GB, free: 4.191 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.814e-05/0.7247, allocations: 16.31 kB / 0.611 GB, free: 4.176 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.279e-05/0.7248, allocations: 23.94 kB / 0.6111 GB, free: 4.152 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001076/0.7259, allocations: 489.3 kB / 0.6115 GB, free: 3.664 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.7259, allocations: 0 / 0.6115 GB, free: 3.664 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.259e-05/0.726, allocations: 4 kB / 0.6115 GB, free: 3.66 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.337e-06/0.726, allocations: 8 kB / 0.6115 GB, free: 3.652 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001137/0.7271, allocations: 0.4997 MB / 0.612 GB, free: 3.152 MB / 446.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.002502/0.7296, allocations: 0.9891 MB / 0.613 GB, free: 2.109 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006284/0.7303, allocations: 293 kB / 0.6133 GB, free: 1.805 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003047/0.7306, allocations: 150.5 kB / 0.6134 GB, free: 1.652 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001948/0.7326, allocations: 0.9878 MB / 0.6144 GB, free: 0.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.555e-05/0.7326, allocations: 38.5 kB / 0.6144 GB, free: 468 kB / 446.1 MB Notification: Performance of pre-optimization done (n=29): time 1.863e-06/0.7326, allocations: 0 / 0.6144 GB, free: 468 kB / 446.1 MB Notification: Performance of matching and sorting (n=29): time 0.001005/0.7336, allocations: 406.9 kB / 0.6148 GB, free: 60 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.21e-05/0.7337, allocations: 81.11 kB / 0.6149 GB, free: 15.96 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.7338, allocations: 112.1 kB / 0.615 GB, free: 15.84 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 4.896e-05/0.7339, allocations: 37.7 kB / 0.615 GB, free: 15.8 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.071e-05/0.734, allocations: 112.4 kB / 0.6151 GB, free: 15.68 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.7341, allocations: 110.4 kB / 0.6152 GB, free: 15.57 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001401/0.7342, allocations: 62.02 kB / 0.6153 GB, free: 15.51 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.7344, allocations: 322.8 kB / 0.6156 GB, free: 15.18 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000261/0.7346, allocations: 120.5 kB / 0.6157 GB, free: 15.07 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003124/0.735, allocations: 203.5 kB / 0.6159 GB, free: 14.83 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005494/0.7355, allocations: 342 kB / 0.6162 GB, free: 14.46 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.7355, allocations: 0 / 0.6162 GB, free: 14.46 MB / 462.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007818/0.7363, allocations: 376.5 kB / 0.6166 GB, free: 14.09 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.857e-05/0.7364, allocations: 10.5 kB / 0.6166 GB, free: 14.08 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.7364, allocations: 4.312 kB / 0.6166 GB, free: 14.08 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/0.7364, allocations: 8 kB / 0.6166 GB, free: 14.07 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000431/0.7369, allocations: 79.83 kB / 0.6167 GB, free: 13.99 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.33e-05/0.7369, allocations: 4 kB / 0.6167 GB, free: 13.99 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003473/0.7372, allocations: 31.77 kB / 0.6167 GB, free: 13.96 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.994e-05/0.7373, allocations: 19.94 kB / 0.6168 GB, free: 13.94 MB / 462.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.0001774/0.7375, allocations: 141.7 kB / 0.6169 GB, free: 13.79 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001303/0.7376, allocations: 23.8 kB / 0.6169 GB, free: 13.77 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008293/0.7385, allocations: 359.9 kB / 0.6173 GB, free: 13.41 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.7385, allocations: 4 kB / 0.6173 GB, free: 13.41 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.041e-05/0.7385, allocations: 0 / 0.6173 GB, free: 13.41 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.211e-06/0.7385, allocations: 3.938 kB / 0.6173 GB, free: 13.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006802/0.7392, allocations: 368.7 kB / 0.6176 GB, free: 12.99 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.7392, allocations: 0 / 0.6176 GB, free: 12.99 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004132/0.7396, allocations: 67.89 kB / 0.6177 GB, free: 12.92 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.7397, allocations: 0 / 0.6177 GB, free: 12.92 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.5e-05/0.7397, allocations: 8 kB / 0.6177 GB, free: 12.91 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.7397, allocations: 4 kB / 0.6177 GB, free: 12.91 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.7397, allocations: 0 / 0.6177 GB, free: 12.91 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009908/0.7407, allocations: 0.5547 MB / 0.6182 GB, free: 12.34 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.965e-05/0.7408, allocations: 96.92 kB / 0.6183 GB, free: 12.23 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.825e-05/0.7409, allocations: 11.98 kB / 0.6183 GB, free: 12.21 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004114/0.7413, allocations: 19.92 kB / 0.6184 GB, free: 12.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.144e-05/0.7413, allocations: 15.98 kB / 0.6184 GB, free: 12.18 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.705e-05/0.7414, allocations: 20.8 kB / 0.6184 GB, free: 12.16 MB / 462.1 MB Notification: Performance of sorting global known variables: time 6.303e-05/0.7415, allocations: 95.25 kB / 0.6185 GB, free: 12.07 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.7415, allocations: 0 / 0.6185 GB, free: 12.07 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001007/0.7425, allocations: 235.7 kB / 0.6187 GB, free: 11.84 MB / 462.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.002812/0.7453, allocations: 1.416 MB / 0.6201 GB, free: 10.39 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0007288/0.7461, allocations: 315.5 kB / 0.6204 GB, free: 10.09 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.7461, allocations: 0 / 0.6204 GB, free: 10.09 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000296/0.7464, allocations: 148.1 kB / 0.6205 GB, free: 9.945 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000736/0.7471, allocations: 86.02 kB / 0.6206 GB, free: 9.863 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004455/0.7516, allocations: 2.806 MB / 0.6234 GB, free: 6.914 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005168/0.7521, allocations: 0.7361 MB / 0.6241 GB, free: 6.148 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005524/0.7527, allocations: 78.03 kB / 0.6242 GB, free: 6.07 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002045/0.7529, allocations: 63.41 kB / 0.6242 GB, free: 6.008 MB / 462.1 MB Notification: Performance of SimCode: time 7.61e-07/0.7529, allocations: 4 kB / 0.6242 GB, free: 6.004 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03127/0.7842, allocations: 10.43 MB / 0.6344 GB, free: 11.72 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002449/0.7845, allocations: 190.2 kB / 0.6346 GB, free: 11.47 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.225/3.01, allocations: 0 / 0.6346 GB, free: 11.47 MB / 478.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_MixIdealGasAir_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_MixIdealGasAir.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestOnly/MixIdealGasAir/MixIdealGasAir.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches