Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestOnly.FlueGas.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.FlueGas,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestOnly_FlueGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.FlueGas,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestOnly_FlueGas",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001629/0.001629, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002042/0.002042, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.227/0.227, allocations: 46.1 MB / 344.1 MB, free: 11.56 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 71.34 kB / 417.7 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1285, allocations: 62.45 MB / 480.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.FlueGas): time 0.4008/0.5294, allocations: 152.6 MB / 0.6179 GB, free: 10.66 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.002675/0.5321, allocations: 2.183 MB / 0.62 GB, free: 8.492 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.666e-05/0.5322, allocations: 0 / 0.62 GB, free: 8.492 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003539/0.5326, allocations: 62.03 kB / 0.6201 GB, free: 8.434 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001601/0.5343, allocations: 0.6285 MB / 0.6207 GB, free: 7.805 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003464/0.5346, allocations: 108.8 kB / 0.6208 GB, free: 7.703 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003842/0.535, allocations: 255 kB / 0.621 GB, free: 7.453 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.684e-05/0.5351, allocations: 18.77 kB / 0.621 GB, free: 7.438 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003677/0.5355, allocations: 139.5 kB / 0.6212 GB, free: 7.301 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002325/0.5357, allocations: 99.62 kB / 0.6213 GB, free: 7.203 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.995e-05/0.5358, allocations: 8 kB / 0.6213 GB, free: 7.195 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001961/0.5377, allocations: 0.9393 MB / 0.6222 GB, free: 6.254 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001162/0.5379, allocations: 75.77 kB / 0.6223 GB, free: 6.18 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000146/0.538, allocations: 99.64 kB / 0.6224 GB, free: 6.082 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001283/0.5393, allocations: 0.6781 MB / 0.623 GB, free: 5.402 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.5393, allocations: 0 / 0.623 GB, free: 5.402 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.5393, allocations: 8 kB / 0.623 GB, free: 5.395 MB / 462.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.5393, allocations: 0 / 0.623 GB, free: 5.395 MB / 462.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.0008367/0.5402, allocations: 0.496 MB / 0.6235 GB, free: 4.852 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.5402, allocations: 15.97 kB / 0.6235 GB, free: 4.836 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.87e-05/0.5403, allocations: 50.73 kB / 0.6236 GB, free: 4.777 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007895/0.5482, allocations: 0.7501 MB / 0.6243 GB, free: 4.027 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005059/0.5487, allocations: 280 kB / 0.6246 GB, free: 3.715 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.518e-05/0.5488, allocations: 20.27 kB / 0.6246 GB, free: 3.695 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001286/0.5489, allocations: 16 kB / 0.6246 GB, free: 3.68 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001538/0.5504, allocations: 0.7015 MB / 0.6253 GB, free: 2.969 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.5505, allocations: 0 / 0.6253 GB, free: 2.969 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.49e-05/0.5506, allocations: 8 kB / 0.6253 GB, free: 2.961 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.46e-05/0.5506, allocations: 8 kB / 0.6253 GB, free: 2.953 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002135/0.5527, allocations: 0.9173 MB / 0.6262 GB, free: 2.035 MB / 462.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.005512/0.5583, allocations: 2 MB / 0.6282 GB, free: 15.85 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001284/0.5596, allocations: 0.5164 MB / 0.6287 GB, free: 15.31 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006898/0.5603, allocations: 325.5 kB / 0.629 GB, free: 14.99 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009412/0.5612, allocations: 385.8 kB / 0.6293 GB, free: 14.56 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.938e-05/0.5613, allocations: 34.56 kB / 0.6294 GB, free: 14.52 MB / 478.1 MB Notification: Performance of pre-optimization done (n=28): time 2.395e-06/0.5613, allocations: 4 kB / 0.6294 GB, free: 14.52 MB / 478.1 MB Notification: Performance of matching and sorting (n=28): time 0.002338/0.5636, allocations: 0.8837 MB / 0.6302 GB, free: 13.63 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.894e-05/0.5637, allocations: 85.11 kB / 0.6303 GB, free: 13.53 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001273/0.5638, allocations: 129.7 kB / 0.6304 GB, free: 13.39 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 7.251e-05/0.5639, allocations: 33.7 kB / 0.6305 GB, free: 13.35 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.846e-05/0.564, allocations: 120.3 kB / 0.6306 GB, free: 13.23 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001299/0.5641, allocations: 102.5 kB / 0.6307 GB, free: 13.13 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002039/0.5643, allocations: 77.66 kB / 0.6308 GB, free: 13.05 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.5644, allocations: 326.8 kB / 0.6311 GB, free: 12.72 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006792/0.5651, allocations: 299.8 kB / 0.6314 GB, free: 12.43 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007604/0.5659, allocations: 404.4 kB / 0.6317 GB, free: 11.98 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001497/0.5674, allocations: 0.6863 MB / 0.6324 GB, free: 11.25 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.655e-06/0.5674, allocations: 3.938 kB / 0.6324 GB, free: 11.25 MB / 478.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001814/0.5692, allocations: 0.7407 MB / 0.6331 GB, free: 10.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.5693, allocations: 8 kB / 0.6332 GB, free: 10.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.5693, allocations: 4.406 kB / 0.6332 GB, free: 10.49 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.468e-05/0.5693, allocations: 8 kB / 0.6332 GB, free: 10.48 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001168/0.5705, allocations: 103.8 kB / 0.6333 GB, free: 10.38 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.46e-05/0.5705, allocations: 4 kB / 0.6333 GB, free: 10.38 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009366/0.5715, allocations: 43.75 kB / 0.6333 GB, free: 10.34 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.688e-05/0.5716, allocations: 23.98 kB / 0.6333 GB, free: 10.31 MB / 478.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.000216/0.5718, allocations: 141.7 kB / 0.6335 GB, free: 10.16 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001619/0.572, allocations: 31.8 kB / 0.6335 GB, free: 10.13 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00208/0.574, allocations: 0.7704 MB / 0.6342 GB, free: 9.359 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.5741, allocations: 4 kB / 0.6343 GB, free: 9.355 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/0.5741, allocations: 7.922 kB / 0.6343 GB, free: 9.348 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.766e-06/0.5741, allocations: 6.688 kB / 0.6343 GB, free: 9.344 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001129/0.5752, allocations: 0.806 MB / 0.6351 GB, free: 8.434 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.024e-06/0.5753, allocations: 4 kB / 0.6351 GB, free: 8.43 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001146/0.5764, allocations: 75.91 kB / 0.6351 GB, free: 8.355 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.5764, allocations: 7.938 kB / 0.6351 GB, free: 8.348 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.545e-05/0.5765, allocations: 11.98 kB / 0.6351 GB, free: 8.336 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.5765, allocations: 7.938 kB / 0.6352 GB, free: 8.328 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.5765, allocations: 3.938 kB / 0.6352 GB, free: 8.324 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002122/0.5786, allocations: 0.9532 MB / 0.6361 GB, free: 7.355 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.816e-05/0.5787, allocations: 96.94 kB / 0.6362 GB, free: 7.242 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.365e-05/0.5788, allocations: 8 kB / 0.6362 GB, free: 7.234 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.5799, allocations: 35.95 kB / 0.6362 GB, free: 7.199 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.672e-05/0.5799, allocations: 11.98 kB / 0.6362 GB, free: 7.188 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.024e-05/0.58, allocations: 23.97 kB / 0.6363 GB, free: 7.164 MB / 478.1 MB Notification: Performance of sorting global known variables: time 6.418e-05/0.5801, allocations: 95.27 kB / 0.6364 GB, free: 7.07 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5801, allocations: 0 / 0.6364 GB, free: 7.07 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007965/0.5809, allocations: 191.8 kB / 0.6365 GB, free: 6.883 MB / 478.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.003259/0.5842, allocations: 1.755 MB / 0.6382 GB, free: 5.102 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001553/0.5857, allocations: 0.672 MB / 0.6389 GB, free: 4.43 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.111e-06/0.5858, allocations: 4.062 kB / 0.6389 GB, free: 4.426 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007277/0.5865, allocations: 335.6 kB / 0.6392 GB, free: 4.098 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008158/0.5873, allocations: 100.9 kB / 0.6393 GB, free: 4.004 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006418/0.5937, allocations: 3.68 MB / 0.6429 GB, free: 156 kB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003183/0.5941, allocations: 0.7324 MB / 0.6436 GB, free: 15.39 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001367/0.5955, allocations: 173.7 kB / 0.6438 GB, free: 15.22 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003439/0.5958, allocations: 71.39 kB / 0.6439 GB, free: 15.15 MB / 494.1 MB Notification: Performance of SimCode: time 4e-07/0.5958, allocations: 0 / 0.6439 GB, free: 15.15 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03633/0.6322, allocations: 12.7 MB / 0.6563 GB, free: 2.484 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.973/8.605, allocations: 11.75 kB / 0.6563 GB, free: 2.477 MB / 494.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestOnly.FlueGas.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestOnly.FlueGas.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestOnly.FlueGas.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestOnly.FlueGas.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Media.TestOnly.FlueGas_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_trunk_ModelicaTest_Media_TestOnly_FlueGas.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestOnly.FlueGas.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestOnly.FlueGas_res.csv","/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_trunk_ModelicaTest.Media.TestOnly.FlueGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches