Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001444/0.001444, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001435/0.001436, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.226/0.226, allocations: 46.12 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00235/0.002351, allocations: 75.88 kB / 480.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3665/0.3688, allocations: 62.45 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air): time 0.2492/0.618, allocations: 177.3 MB / 0.7038 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.008224/0.6263, allocations: 5.347 MB / 0.709 GB, free: 10.42 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008113/0.6272, allocations: 19.88 kB / 0.709 GB, free: 10.4 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001077/0.6283, allocations: 314 kB / 0.7093 GB, free: 10.09 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.003484/0.6318, allocations: 1.248 MB / 0.7105 GB, free: 8.84 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002593/0.6344, allocations: 0.9719 MB / 0.7115 GB, free: 7.875 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002631/0.637, allocations: 1.848 MB / 0.7133 GB, free: 6.02 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008477/0.6379, allocations: 461.4 kB / 0.7137 GB, free: 5.566 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002468/0.6404, allocations: 1.078 MB / 0.7148 GB, free: 4.484 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001291/0.6417, allocations: 0.6617 MB / 0.7154 GB, free: 3.82 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002411/0.6419, allocations: 64 kB / 0.7155 GB, free: 3.758 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00162/0.6436, allocations: 0.6275 MB / 0.7161 GB, free: 3.133 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0004104/0.644, allocations: 255.3 kB / 0.7163 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0006891/0.6447, allocations: 398.2 kB / 0.7167 GB, free: 2.492 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002388/0.6471, allocations: 1.316 MB / 0.718 GB, free: 1.172 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.6471, allocations: 4 kB / 0.718 GB, free: 1.168 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.172e-06/0.6471, allocations: 0 / 0.718 GB, free: 1.168 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.454e-05/0.6471, allocations: 3.984 kB / 0.718 GB, free: 1.164 MB / 0.5606 GB 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.2544/0.9015, allocations: 1.118 MB / 0.7191 GB, free: 186.2 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 6.265e-05/0.9016, allocations: 10.03 kB / 0.7191 GB, free: 186.2 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003791/0.902, allocations: 95.77 kB / 0.7192 GB, free: 186.2 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001078/0.9031, allocations: 138.6 kB / 0.7193 GB, free: 186.2 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00104/0.9041, allocations: 0.5361 MB / 0.7198 GB, free: 185.9 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000128/0.9043, allocations: 98.92 kB / 0.7199 GB, free: 185.8 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001228/0.9044, allocations: 51.98 kB / 0.72 GB, free: 185.8 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001494/0.9059, allocations: 0.8211 MB / 0.7208 GB, free: 185.3 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.297e-05/0.9059, allocations: 1.875 kB / 0.7208 GB, free: 185.3 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.049e-05/0.906, allocations: 23.33 kB / 0.7208 GB, free: 185.3 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.921e-05/0.9061, allocations: 42 kB / 0.7209 GB, free: 185.3 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001087/0.9072, allocations: 0.6195 MB / 0.7215 GB, free: 185.1 MB / 0.5606 GB 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.003936/0.9112, allocations: 3.934 MB / 0.7253 GB, free: 181.6 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005604/0.9117, allocations: 366.5 kB / 0.7257 GB, free: 181.4 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002504/0.912, allocations: 167.7 kB / 0.7258 GB, free: 181.3 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001043/0.9121, allocations: 89.62 kB / 0.7259 GB, free: 181.2 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.323e-05/0.9121, allocations: 46.84 kB / 0.7259 GB, free: 181.2 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.695e-06/0.9121, allocations: 0 / 0.7259 GB, free: 181.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=39): time 0.005423/0.9176, allocations: 1.685 MB / 0.7276 GB, free: 180.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.041e-05/0.9176, allocations: 137.5 kB / 0.7277 GB, free: 180 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007722/0.9184, allocations: 0.615 MB / 0.7283 GB, free: 179.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.356e-05/0.9185, allocations: 36.89 kB / 0.7284 GB, free: 179.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002364/0.9187, allocations: 368.5 kB / 0.7287 GB, free: 179.3 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.838e-05/0.9188, allocations: 149.3 kB / 0.7288 GB, free: 179.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002189/0.9191, allocations: 167.4 kB / 0.729 GB, free: 179.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.969e-05/0.9192, allocations: 375.4 kB / 0.7294 GB, free: 178.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003413/0.9195, allocations: 199.9 kB / 0.7296 GB, free: 178.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004565/0.92, allocations: 0.515 MB / 0.7301 GB, free: 178.1 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008325/0.9208, allocations: 0.7475 MB / 0.7308 GB, free: 177.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.496e-06/0.9208, allocations: 7.344 kB / 0.7308 GB, free: 177.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001406/0.9222, allocations: 0.8882 MB / 0.7317 GB, free: 177.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/0.9223, allocations: 9.625 kB / 0.7317 GB, free: 177.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.61e-05/0.9223, allocations: 11.12 kB / 0.7317 GB, free: 177.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001362/0.9237, allocations: 322.4 kB / 0.732 GB, free: 176.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003762/0.9241, allocations: 121.7 kB / 0.7321 GB, free: 176.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009634/0.925, allocations: 0.934 MB / 0.733 GB, free: 176.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005274/0.9256, allocations: 26.81 kB / 0.733 GB, free: 176.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-05/0.9257, allocations: 73.62 kB / 0.7331 GB, free: 176.2 MB / 0.5606 GB 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0003699/0.9261, allocations: 248.4 kB / 0.7334 GB, free: 176 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001361/0.9262, allocations: 69.58 kB / 0.7334 GB, free: 175.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001565/0.9278, allocations: 0.8686 MB / 0.7343 GB, free: 175.4 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.597e-06/0.9278, allocations: 3.906 kB / 0.7343 GB, free: 175.4 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.9278, allocations: 1.375 kB / 0.7343 GB, free: 175.4 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.982e-06/0.9278, allocations: 0 / 0.7343 GB, free: 175.4 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001754/0.9296, allocations: 1.461 MB / 0.7357 GB, free: 174.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.9296, allocations: 0 / 0.7357 GB, free: 174.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009565/0.9306, allocations: 205.9 kB / 0.7359 GB, free: 174.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001076/0.9307, allocations: 35.52 kB / 0.7359 GB, free: 174.2 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.728e-05/0.9307, allocations: 15.91 kB / 0.7359 GB, free: 174.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00138/0.9321, allocations: 2.886 MB / 0.7388 GB, free: 171.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.9321, allocations: 1.875 kB / 0.7388 GB, free: 171.2 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.9332, allocations: 0.8204 MB / 0.7396 GB, free: 170.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002426/0.9334, allocations: 193.2 kB / 0.7397 GB, free: 170.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.28e-05/0.9335, allocations: 11.94 kB / 0.7398 GB, free: 170.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003726/0.9339, allocations: 23.98 kB / 0.7398 GB, free: 170.5 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.837e-05/0.934, allocations: 43.95 kB / 0.7398 GB, free: 170.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.9e-05/0.9341, allocations: 43.98 kB / 0.7399 GB, free: 170.4 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0004474/0.9345, allocations: 439 kB / 0.7403 GB, free: 170 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9345, allocations: 4 kB / 0.7403 GB, free: 170 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0009879/0.9355, allocations: 247.8 kB / 0.7405 GB, free: 169.7 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002023/0.9376, allocations: 1.545 MB / 0.742 GB, free: 168.1 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001154/0.9387, allocations: 0.5566 MB / 0.7426 GB, free: 167.6 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.9388, allocations: 9.219 kB / 0.7426 GB, free: 167.6 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0008376/0.9396, allocations: 419 kB / 0.743 GB, free: 167.2 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001564/0.9412, allocations: 378.9 kB / 0.7433 GB, free: 166.8 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006806/0.948, allocations: 6.339 MB / 0.7495 GB, free: 160.1 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003277/0.9484, allocations: 0.93 MB / 0.7504 GB, free: 159.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001018/0.9494, allocations: 465.7 kB / 0.7509 GB, free: 158.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004278/0.9498, allocations: 283.3 kB / 0.7512 GB, free: 158.4 MB / 0.5606 GB Notification: Performance of SimCode: time 8.11e-07/0.9498, allocations: 0 / 0.7512 GB, free: 158.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05574/1.006, allocations: 24.46 MB / 0.775 GB, free: 134.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.2/14.2, allocations: 19.14 kB / 0.7751 GB, free: 134.2 MB / 0.5606 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe 2>&1)