Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.FlueGas.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.FlueGas,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_FlueGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.FlueGas,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_FlueGas",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.0007676/0.0007677, allocations: 94.53 kB / 17.35 MB, free: 6.371 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.0009066/0.0009067, allocations: 172.7 kB / 18.25 MB, free: 5.527 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.346/1.346, allocations: 223.3 MB / 242.3 MB, free: 200 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2132/0.2132, allocations: 44.24 MB / 337.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003238/0.0003238, allocations: 8.188 kB / 410.4 MB, free: 27.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1239, allocations: 61.93 MB / 472.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.FlueGas): time 0.4089/0.5328, allocations: 145.6 MB / 0.6035 GB, free: 1.102 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002759/0.5356, allocations: 2.215 MB / 0.6056 GB, free: 14.9 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.72e-05/0.5357, allocations: 0 / 0.6056 GB, free: 14.9 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003231/0.536, allocations: 54.97 kB / 0.6057 GB, free: 14.85 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001679/0.5377, allocations: 0.5758 MB / 0.6062 GB, free: 14.27 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003791/0.5381, allocations: 92.75 kB / 0.6063 GB, free: 14.18 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005611/0.5387, allocations: 374.8 kB / 0.6067 GB, free: 13.81 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.579e-05/0.5388, allocations: 6.25 kB / 0.6067 GB, free: 13.81 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003588/0.5391, allocations: 127.5 kB / 0.6068 GB, free: 13.68 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002745/0.5394, allocations: 103.6 kB / 0.6069 GB, free: 13.58 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.222e-05/0.5395, allocations: 8 kB / 0.6069 GB, free: 13.57 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002082/0.5416, allocations: 1.22 MB / 0.6081 GB, free: 12.35 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000112/0.5417, allocations: 75.83 kB / 0.6082 GB, free: 12.28 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001577/0.5418, allocations: 125.2 kB / 0.6083 GB, free: 12.15 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001418/0.5433, allocations: 0.7598 MB / 0.609 GB, free: 11.39 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.5433, allocations: 3.938 kB / 0.609 GB, free: 11.38 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.5433, allocations: 4 kB / 0.6091 GB, free: 11.38 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.5433, allocations: 0 / 0.6091 GB, free: 11.38 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0009146/0.5442, allocations: 470.3 kB / 0.6095 GB, free: 10.88 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.5443, allocations: 12.02 kB / 0.6095 GB, free: 10.86 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.447e-05/0.5444, allocations: 54.73 kB / 0.6096 GB, free: 10.8 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007311/0.5517, allocations: 0.7267 MB / 0.6103 GB, free: 10.07 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004903/0.5522, allocations: 284 kB / 0.6105 GB, free: 9.758 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.5522, allocations: 12.27 kB / 0.6106 GB, free: 9.746 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001463/0.5524, allocations: 23.98 kB / 0.6106 GB, free: 9.723 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0015/0.5539, allocations: 0.6956 MB / 0.6113 GB, free: 9.016 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.5539, allocations: 4 kB / 0.6113 GB, free: 9.012 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.015e-05/0.554, allocations: 4 kB / 0.6113 GB, free: 9.008 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.726e-05/0.554, allocations: 11.98 kB / 0.6113 GB, free: 8.996 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002069/0.5561, allocations: 0.9134 MB / 0.6122 GB, free: 8.082 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.005052/0.5612, allocations: 1.997 MB / 0.6141 GB, free: 5.898 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00121/0.5624, allocations: 0.5086 MB / 0.6146 GB, free: 5.371 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006887/0.5631, allocations: 329.5 kB / 0.6149 GB, free: 5.043 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008776/0.564, allocations: 363.2 kB / 0.6153 GB, free: 4.633 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.593e-05/0.564, allocations: 50.48 kB / 0.6153 GB, free: 4.574 MB / 446.1 MB Notification: Performance of pre-optimization done (n=28): time 2.104e-06/0.564, allocations: 0 / 0.6153 GB, free: 4.574 MB / 446.1 MB Notification: Performance of matching and sorting (n=28): time 0.002257/0.5663, allocations: 0.8881 MB / 0.6162 GB, free: 3.68 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.875e-05/0.5664, allocations: 77.27 kB / 0.6163 GB, free: 3.586 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001277/0.5665, allocations: 134.6 kB / 0.6164 GB, free: 3.445 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.473e-05/0.5666, allocations: 29.7 kB / 0.6164 GB, free: 3.41 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.432e-05/0.5667, allocations: 124.3 kB / 0.6165 GB, free: 3.285 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001188/0.5668, allocations: 98.56 kB / 0.6166 GB, free: 3.188 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.386e-05/0.5669, allocations: 33.7 kB / 0.6167 GB, free: 3.148 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.567, allocations: 326.8 kB / 0.617 GB, free: 2.82 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006641/0.5677, allocations: 299.8 kB / 0.6173 GB, free: 2.527 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007446/0.5685, allocations: 401.3 kB / 0.6176 GB, free: 2.09 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001393/0.5699, allocations: 0.6981 MB / 0.6183 GB, free: 1.348 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.5699, allocations: 3.938 kB / 0.6183 GB, free: 1.344 MB / 446.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001711/0.5716, allocations: 0.7502 MB / 0.6191 GB, free: 0.5898 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.413e-05/0.5716, allocations: 4.406 kB / 0.6191 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.5717, allocations: 8 kB / 0.6191 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.367e-05/0.5717, allocations: 4 kB / 0.6191 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001072/0.5728, allocations: 99.84 kB / 0.6192 GB, free: 488 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.549e-05/0.5728, allocations: 11.88 kB / 0.6192 GB, free: 476 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009373/0.5737, allocations: 59.66 kB / 0.6192 GB, free: 416 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.659e-05/0.5738, allocations: 15.98 kB / 0.6193 GB, free: 400 kB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (41): * Single equations (assignments): 41 * 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.000233/0.5741, allocations: 149.7 kB / 0.6194 GB, free: 240 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001504/0.5742, allocations: 19.8 kB / 0.6194 GB, free: 220 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002021/0.5762, allocations: 0.7766 MB / 0.6202 GB, free: 15.43 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.5763, allocations: 4 kB / 0.6202 GB, free: 15.43 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/0.5763, allocations: 0 / 0.6202 GB, free: 15.43 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.5763, allocations: 0 / 0.6202 GB, free: 15.43 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001071/0.5774, allocations: 0.8017 MB / 0.621 GB, free: 14.52 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.5774, allocations: 0 / 0.621 GB, free: 14.52 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001029/0.5784, allocations: 83.84 kB / 0.621 GB, free: 14.44 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.5784, allocations: 0 / 0.621 GB, free: 14.44 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.091e-05/0.5785, allocations: 17.36 kB / 0.6211 GB, free: 14.43 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.5785, allocations: 4 kB / 0.6211 GB, free: 14.42 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.5785, allocations: 4 kB / 0.6211 GB, free: 14.42 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002043/0.5806, allocations: 0.9572 MB / 0.622 GB, free: 13.45 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.753e-05/0.5806, allocations: 100.8 kB / 0.6221 GB, free: 13.33 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.525e-05/0.5807, allocations: 8 kB / 0.6221 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009947/0.5817, allocations: 31.95 kB / 0.6221 GB, free: 13.29 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.977e-05/0.5818, allocations: 15.98 kB / 0.6222 GB, free: 13.27 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.61e-05/0.5819, allocations: 23.97 kB / 0.6222 GB, free: 13.25 MB / 462.1 MB Notification: Performance of sorting global known variables: time 6.639e-05/0.5819, allocations: 100.8 kB / 0.6223 GB, free: 13.15 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5819, allocations: 4 kB / 0.6223 GB, free: 13.15 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.000772/0.5827, allocations: 184 kB / 0.6225 GB, free: 12.97 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (medium2.p,medium2.T,medium2.X[1],medium2.X[2],medium2.X[3],medium2.X[4],state.p,state.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 (28): * Single equations (assignments): 28 * 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.00322/0.586, allocations: 1.75 MB / 0.6242 GB, free: 11.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001459/0.5874, allocations: 0.6596 MB / 0.6248 GB, free: 10.54 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.5874, allocations: 0 / 0.6248 GB, free: 10.54 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000688/0.5881, allocations: 338.4 kB / 0.6251 GB, free: 10.21 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007923/0.5889, allocations: 93.42 kB / 0.6252 GB, free: 10.12 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006267/0.5952, allocations: 3.858 MB / 0.629 GB, free: 6.098 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003198/0.5955, allocations: 0.7401 MB / 0.6297 GB, free: 5.328 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001276/0.5968, allocations: 181.7 kB / 0.6299 GB, free: 5.145 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003387/0.5972, allocations: 71.33 kB / 0.63 GB, free: 5.074 MB / 462.1 MB Notification: Performance of SimCode: time 7.22e-07/0.5972, allocations: 0 / 0.63 GB, free: 5.074 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02528/0.6225, allocations: 12.19 MB / 0.6419 GB, free: 8.977 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002188/0.6227, allocations: 193.5 kB / 0.642 GB, free: 8.723 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2/2.623, allocations: 4.062 kB / 0.642 GB, free: 8.719 MB / 478.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.FlueGas.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.FlueGas.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.FlueGas.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.FlueGas.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.FlueGas_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_FlueGas_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_FlueGas.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.FlueGas.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.FlueGas_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestOnly/FlueGas/FlueGas.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.FlueGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches