Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.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.TestsWithFluid.MediaTestModels.Air.SimpleAir,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir",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.001092/0.001093, allocations: 92.97 kB / 17 MB, free: 6.797 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.001389/0.00139, allocations: 183.3 kB / 17.89 MB, free: 6.055 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: 223.2 MB / 241.9 MB, free: 344 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.1913/0.1913, allocations: 44.22 MB / 337.2 MB, free: 2.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002784/0.0002785, allocations: 5.219 kB / 409.7 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09324/0.09354, allocations: 61.92 MB / 471.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir): time 0.3408/0.4343, allocations: 134.3 MB / 0.5918 GB, free: 12.22 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.006506/0.4409, allocations: 5.335 MB / 0.597 GB, free: 6.875 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000713/0.4417, allocations: 19.81 kB / 0.597 GB, free: 6.855 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008708/0.4425, allocations: 262.4 kB / 0.5973 GB, free: 6.598 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.001854/0.4444, allocations: 0.8122 MB / 0.5981 GB, free: 5.781 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002242/0.4467, allocations: 0.8037 MB / 0.5989 GB, free: 4.988 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003161/0.4498, allocations: 2.195 MB / 0.601 GB, free: 2.789 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008186/0.4507, allocations: 386 kB / 0.6014 GB, free: 2.406 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001422/0.4521, allocations: 0.6538 MB / 0.602 GB, free: 1.75 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001139/0.4532, allocations: 0.7047 MB / 0.6027 GB, free: 1.043 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 9.014e-05/0.4533, allocations: 32 kB / 0.6027 GB, free: 1.012 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001041/0.4544, allocations: 411.2 kB / 0.6031 GB, free: 0.6094 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002554/0.4547, allocations: 239.3 kB / 0.6033 GB, free: 384 kB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001862/0.4548, allocations: 165.3 kB / 0.6035 GB, free: 212 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001087/0.4559, allocations: 0.8013 MB / 0.6043 GB, free: 15.4 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.456, allocations: 4 kB / 0.6043 GB, free: 15.4 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.456, allocations: 0 / 0.6043 GB, free: 15.4 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.456, allocations: 0 / 0.6043 GB, free: 15.4 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: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002172/0.4582, allocations: 0.9229 MB / 0.6052 GB, free: 14.43 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.4582, allocations: 16.5 kB / 0.6052 GB, free: 14.41 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001294/0.4584, allocations: 98.5 kB / 0.6053 GB, free: 14.31 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003256/0.4587, allocations: 87.14 kB / 0.6054 GB, free: 14.22 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007787/0.4595, allocations: 0.4966 MB / 0.6059 GB, free: 13.68 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001136/0.4596, allocations: 104.4 kB / 0.606 GB, free: 13.57 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.339e-05/0.4597, allocations: 48 kB / 0.606 GB, free: 13.52 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00129/0.461, allocations: 0.811 MB / 0.6068 GB, free: 12.64 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/0.461, allocations: 9.812 kB / 0.6068 GB, free: 12.64 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.696e-05/0.4611, allocations: 24 kB / 0.6068 GB, free: 12.61 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.213e-05/0.4612, allocations: 32.98 kB / 0.6069 GB, free: 12.58 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001005/0.4622, allocations: 0.6556 MB / 0.6075 GB, free: 11.93 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.004344/0.4665, allocations: 3.955 MB / 0.6114 GB, free: 7.688 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007611/0.4673, allocations: 416.2 kB / 0.6118 GB, free: 7.27 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003878/0.4677, allocations: 197.4 kB / 0.612 GB, free: 7.074 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006237/0.4683, allocations: 0.7405 MB / 0.6127 GB, free: 6.168 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.384e-05/0.4684, allocations: 38.89 kB / 0.6127 GB, free: 6.121 MB / 446.1 MB Notification: Performance of pre-optimization done (n=40): time 2.485e-06/0.4684, allocations: 0 / 0.6127 GB, free: 6.121 MB / 446.1 MB Notification: Performance of matching and sorting (n=45): time 0.003105/0.4715, allocations: 1.538 MB / 0.6142 GB, free: 4.512 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.246e-05/0.4716, allocations: 136.5 kB / 0.6143 GB, free: 4.348 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006804/0.4723, allocations: 0.5654 MB / 0.6149 GB, free: 3.773 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.296e-05/0.4723, allocations: 37.64 kB / 0.6149 GB, free: 3.73 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002783/0.4726, allocations: 355 kB / 0.6153 GB, free: 3.379 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001375/0.4728, allocations: 165.7 kB / 0.6154 GB, free: 3.215 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.078e-05/0.4728, allocations: 12 kB / 0.6154 GB, free: 3.203 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002685/0.4731, allocations: 378.8 kB / 0.6158 GB, free: 2.824 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003829/0.4735, allocations: 209.9 kB / 0.616 GB, free: 2.621 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006044/0.4741, allocations: 0.5123 MB / 0.6165 GB, free: 1.969 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004697/0.4746, allocations: 312.5 kB / 0.6168 GB, free: 1.664 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/0.4746, allocations: 4 kB / 0.6168 GB, free: 1.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001694/0.4763, allocations: 0.9063 MB / 0.6177 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.4763, allocations: 10.5 kB / 0.6177 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.4763, allocations: 16.12 kB / 0.6177 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001355/0.4777, allocations: 285.5 kB / 0.618 GB, free: 448 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004252/0.4781, allocations: 127.8 kB / 0.6181 GB, free: 320 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001153/0.4793, allocations: 0.8938 MB / 0.619 GB, free: 15.39 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004779/0.4798, allocations: 39.89 kB / 0.619 GB, free: 15.36 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.241e-05/0.4798, allocations: 36 kB / 0.6191 GB, free: 15.32 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (71): * Single equations (assignments): 70 * 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 16} Notification: Performance of prepare postOptimizeDAE: time 0.0003539/0.4802, allocations: 251.8 kB / 0.6193 GB, free: 15.07 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001212/0.4803, allocations: 67.2 kB / 0.6194 GB, free: 15 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001445/0.4818, allocations: 0.7719 MB / 0.6201 GB, free: 14.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.1e-05/0.4818, allocations: 11.92 kB / 0.6201 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.4818, allocations: 0 / 0.6201 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.4818, allocations: 0 / 0.6201 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001982/0.4838, allocations: 1.403 MB / 0.6215 GB, free: 12.68 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.4838, allocations: 0 / 0.6215 GB, free: 12.68 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009583/0.4848, allocations: 204 kB / 0.6217 GB, free: 12.48 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001119/0.4849, allocations: 24.84 kB / 0.6217 GB, free: 12.46 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.182e-05/0.485, allocations: 12 kB / 0.6217 GB, free: 12.45 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002194/0.4872, allocations: 2.691 MB / 0.6244 GB, free: 9.492 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.072e-06/0.4872, allocations: 4.031 kB / 0.6244 GB, free: 9.488 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001501/0.4887, allocations: 1.007 MB / 0.6253 GB, free: 8.422 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003014/0.489, allocations: 200.2 kB / 0.6255 GB, free: 8.207 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.616e-05/0.4891, allocations: 15.98 kB / 0.6255 GB, free: 8.191 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003973/0.4895, allocations: 35.95 kB / 0.6256 GB, free: 8.156 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.241e-05/0.4896, allocations: 31.95 kB / 0.6256 GB, free: 8.125 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.01e-05/0.4897, allocations: 27.98 kB / 0.6256 GB, free: 8.098 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.000493/0.4902, allocations: 407 kB / 0.626 GB, free: 7.703 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4902, allocations: 0 / 0.626 GB, free: 7.703 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0008289/0.491, allocations: 223.9 kB / 0.6262 GB, free: 7.484 MB / 462.1 MB 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 (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.002039/0.493, allocations: 1.704 MB / 0.6279 GB, free: 5.727 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001361/0.4944, allocations: 0.5904 MB / 0.6285 GB, free: 5.137 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.4944, allocations: 4 kB / 0.6285 GB, free: 5.133 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00101/0.4955, allocations: 463.9 kB / 0.6289 GB, free: 4.668 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001506/0.497, allocations: 328.7 kB / 0.6292 GB, free: 4.352 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006296/0.5033, allocations: 4.262 MB / 0.6334 GB, free: 15.89 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005847/0.5039, allocations: 0.9426 MB / 0.6343 GB, free: 14.92 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0007663/0.5047, allocations: 209.1 kB / 0.6345 GB, free: 14.72 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003459/0.505, allocations: 231.4 kB / 0.6347 GB, free: 14.5 MB / 478.1 MB Notification: Performance of SimCode: time 6.01e-07/0.505, allocations: 3.938 kB / 0.6347 GB, free: 14.49 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06982/0.5749, allocations: 20.28 MB / 0.6546 GB, free: 10.55 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002645/0.5752, allocations: 280.4 kB / 0.6548 GB, free: 10.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.594/3.169, allocations: 4 kB / 0.6548 GB, free: 10.19 MB / 494.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir_res.mat does not exist to compare? outputFormat=mat