Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Nitrogen",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Nitrogen",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001144/0.001144, allocations: 175.8 kB / 16.72 MB, free: 4.965 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.376/1.376, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009473/0.0009472, allocations: 94.39 kB / 271.2 MB, free: 8.234 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3428/0.3428, allocations: 43.55 MB / 363.1 MB, free: 51.92 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003465/0.0003465, allocations: 12 kB / 432.1 MB, free: 5.473 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1266, allocations: 58.84 MB / 490.9 MB, free: 10.55 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen): time 0.4065/0.5332, allocations: 163.9 MB / 0.6395 GB, free: 2.695 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.007861/0.5411, allocations: 5.489 MB / 0.6448 GB, free: 13.2 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001017/0.5422, allocations: 23.75 kB / 0.6448 GB, free: 13.18 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001057/0.5432, allocations: 254.4 kB / 0.6451 GB, free: 12.93 MB / 474.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:788:36-789:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:786:36-787:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.004667/0.5479, allocations: 1.406 MB / 0.6465 GB, free: 11.52 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003269/0.5512, allocations: 0.9957 MB / 0.6474 GB, free: 10.54 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.002958/0.5542, allocations: 2.25 MB / 0.6496 GB, free: 8.281 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007244/0.5549, allocations: 395.9 kB / 0.65 GB, free: 7.895 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002854/0.5578, allocations: 1.081 MB / 0.6511 GB, free: 6.812 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00146/0.5592, allocations: 0.7434 MB / 0.6518 GB, free: 6.066 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001088/0.5594, allocations: 32 kB / 0.6518 GB, free: 6.035 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00177/0.5611, allocations: 0.6585 MB / 0.6525 GB, free: 5.379 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002919/0.5614, allocations: 231.3 kB / 0.6527 GB, free: 5.152 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004975/0.562, allocations: 384.1 kB / 0.653 GB, free: 4.77 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001244/0.5632, allocations: 1.025 MB / 0.654 GB, free: 3.742 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.5632, allocations: 0 / 0.654 GB, free: 3.742 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5632, allocations: 0 / 0.654 GB, free: 3.742 MB / 474.7 MB Notification: Performance of Transformations before backend: time 1.473e-05/0.5633, allocations: 0 / 0.654 GB, free: 3.742 MB / 474.7 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.001993/0.5653, allocations: 0.9778 MB / 0.655 GB, free: 2.715 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.458e-05/0.5653, allocations: 12.03 kB / 0.655 GB, free: 2.703 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001374/0.5655, allocations: 98.45 kB / 0.6551 GB, free: 2.598 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007303/0.5662, allocations: 136 kB / 0.6552 GB, free: 2.465 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008112/0.567, allocations: 0.5079 MB / 0.6557 GB, free: 1.914 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001098/0.5672, allocations: 100.4 kB / 0.6558 GB, free: 1.805 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001004/0.5673, allocations: 55.92 kB / 0.6559 GB, free: 1.75 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001278/0.5685, allocations: 0.8058 MB / 0.6567 GB, free: 0.8711 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.281e-05/0.5686, allocations: 0 / 0.6567 GB, free: 0.8711 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.218e-05/0.5687, allocations: 27.98 kB / 0.6567 GB, free: 0.8438 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.238e-05/0.5687, allocations: 48.91 kB / 0.6567 GB, free: 0.793 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001001/0.5697, allocations: 0.6166 MB / 0.6573 GB, free: 184 kB / 474.7 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.004452/0.5742, allocations: 3.986 MB / 0.6612 GB, free: 11.94 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005396/0.5748, allocations: 351.6 kB / 0.6616 GB, free: 11.59 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002654/0.575, allocations: 169.3 kB / 0.6617 GB, free: 11.42 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004526/0.5755, allocations: 365.4 kB / 0.6621 GB, free: 11.01 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.418e-05/0.5755, allocations: 38.84 kB / 0.6621 GB, free: 10.96 MB / 490.7 MB Notification: Performance of pre-optimization done (n=34): time 2.605e-06/0.5756, allocations: 0 / 0.6621 GB, free: 10.96 MB / 490.7 MB Notification: Performance of matching and sorting (n=39): time 0.005478/0.581, allocations: 1.658 MB / 0.6637 GB, free: 9.234 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.773e-05/0.5812, allocations: 136.5 kB / 0.6639 GB, free: 9.07 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008065/0.582, allocations: 0.6094 MB / 0.6645 GB, free: 8.453 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 5.365e-05/0.582, allocations: 37.7 kB / 0.6645 GB, free: 8.41 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003189/0.5824, allocations: 366.8 kB / 0.6648 GB, free: 8.047 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/0.5825, allocations: 142 kB / 0.665 GB, free: 7.906 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.159e-05/0.5826, allocations: 12 kB / 0.665 GB, free: 7.895 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002197/0.5828, allocations: 374.8 kB / 0.6654 GB, free: 7.52 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003545/0.5832, allocations: 201.9 kB / 0.6655 GB, free: 7.324 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006063/0.5838, allocations: 0.5086 MB / 0.666 GB, free: 6.672 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009728/0.5848, allocations: 0.7446 MB / 0.6668 GB, free: 5.789 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.5848, allocations: 4 kB / 0.6668 GB, free: 5.785 MB / 490.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001482/0.5863, allocations: 0.8758 MB / 0.6676 GB, free: 4.898 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.065e-05/0.5863, allocations: 11.94 kB / 0.6676 GB, free: 4.887 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.716e-05/0.5863, allocations: 8 kB / 0.6676 GB, free: 4.879 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00149/0.5878, allocations: 328.8 kB / 0.668 GB, free: 4.555 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003732/0.5882, allocations: 119.8 kB / 0.6681 GB, free: 4.438 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001067/0.5893, allocations: 0.9324 MB / 0.669 GB, free: 3.48 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005939/0.5899, allocations: 44.05 kB / 0.669 GB, free: 3.438 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.745e-05/0.59, allocations: 67.98 kB / 0.6691 GB, free: 3.371 MB / 490.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 17} Notification: Performance of prepare postOptimizeDAE: time 0.0003571/0.5904, allocations: 245.5 kB / 0.6693 GB, free: 3.121 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001177/0.5905, allocations: 71.16 kB / 0.6694 GB, free: 3.051 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001451/0.5919, allocations: 0.6744 MB / 0.6701 GB, free: 2.363 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.592, allocations: 4 kB / 0.6701 GB, free: 2.359 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.592, allocations: 4 kB / 0.6701 GB, free: 2.355 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.592, allocations: 0 / 0.6701 GB, free: 2.355 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002133/0.5941, allocations: 1.599 MB / 0.6716 GB, free: 0.6094 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.5941, allocations: 0 / 0.6716 GB, free: 0.6094 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009654/0.5951, allocations: 211.8 kB / 0.6718 GB, free: 412 kB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.678e-05/0.5952, allocations: 24.97 kB / 0.6718 GB, free: 384 kB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.639e-05/0.5953, allocations: 16 kB / 0.6719 GB, free: 368 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2148/0.81, allocations: 2.678 MB / 0.6745 GB, free: 148.5 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.8101, allocations: 7.5 kB / 0.6745 GB, free: 148.5 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001334/0.8114, allocations: 0.8014 MB / 0.6753 GB, free: 148.3 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002954/0.8117, allocations: 191.3 kB / 0.6755 GB, free: 148.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.254e-05/0.8118, allocations: 16.11 kB / 0.6755 GB, free: 148.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003987/0.8122, allocations: 22.61 kB / 0.6755 GB, free: 148.2 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.8124, allocations: 42.98 kB / 0.6755 GB, free: 148.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.441e-05/0.8124, allocations: 45.69 kB / 0.6756 GB, free: 148.2 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0006042/0.8131, allocations: 425.8 kB / 0.676 GB, free: 148.2 MB / 490.7 MB Notification: Performance of sort global known variables: time 2e-07/0.8131, allocations: 0 / 0.676 GB, free: 148.2 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001024/0.8141, allocations: 296.8 kB / 0.6763 GB, free: 148.2 MB / 490.7 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002107/0.8162, allocations: 1.6 MB / 0.6778 GB, free: 147.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001125/0.8174, allocations: 0.5468 MB / 0.6784 GB, free: 147.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.708e-06/0.8174, allocations: 1.094 kB / 0.6784 GB, free: 147.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008901/0.8183, allocations: 408 kB / 0.6787 GB, free: 147.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001657/0.8199, allocations: 332.2 kB / 0.6791 GB, free: 147.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005839/0.8258, allocations: 4.279 MB / 0.6832 GB, free: 145.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003304/0.8261, allocations: 0.9258 MB / 0.6841 GB, free: 145 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005783/0.8267, allocations: 292.6 kB / 0.6844 GB, free: 145 MB / 490.7 MB Notification: Performance of SimCode: time 5.72e-07/0.8267, allocations: 0 / 0.6844 GB, free: 145 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.711/5.538, allocations: 17.69 MB / 0.7017 GB, free: 143.6 MB / 490.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Nitrogen_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Nitrogen.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen_res.mat does not exist to compare? outputFormat=mat