Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.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.LinearFluid.LinearWater_pT,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearWater_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearWater_pT",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.001318/0.001318, allocations: 175.2 kB / 16.72 MB, free: 5.082 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.32/1.32, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.0007282/0.0007284, allocations: 103.7 kB / 271.2 MB, free: 8.242 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.3441/0.3441, allocations: 43.57 MB / 363.1 MB, free: 52.22 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000363/0.0003632, allocations: 16 kB / 432.1 MB, free: 5.707 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1251, allocations: 58.84 MB / 490.9 MB, free: 10.79 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT): time 0.2748/0.3999, allocations: 41.32 MB / 0.5198 GB, free: 21.19 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.005928/0.4059, allocations: 4.217 MB / 0.5239 GB, free: 18.18 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001068/0.407, allocations: 28.5 kB / 0.5239 GB, free: 18.17 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008773/0.4079, allocations: 259.3 kB / 0.5242 GB, free: 18.03 MB / 378.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.002093/0.41, allocations: 0.8359 MB / 0.525 GB, free: 17.56 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001991/0.412, allocations: 0.7069 MB / 0.5257 GB, free: 17.22 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002263/0.4143, allocations: 2.21 MB / 0.5278 GB, free: 16.41 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006801/0.415, allocations: 392.2 kB / 0.5282 GB, free: 16.28 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1184/0.5334, allocations: 73.54 MB / 0.6 GB, free: 10.83 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01981/0.5533, allocations: 13.72 MB / 0.6134 GB, free: 13.11 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002214/0.5535, allocations: 39.94 kB / 0.6135 GB, free: 13.07 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02829/0.5818, allocations: 18.77 MB / 0.6318 GB, free: 10.29 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005779/0.5824, allocations: 227.3 kB / 0.632 GB, free: 10.07 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008001/0.5833, allocations: 376.1 kB / 0.6324 GB, free: 9.691 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001264/0.5845, allocations: 0.7871 MB / 0.6331 GB, free: 8.902 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.5846, allocations: 4 kB / 0.6331 GB, free: 8.898 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.5846, allocations: 0 / 0.6331 GB, free: 8.898 MB / 458.7 MB Notification: Performance of Transformations before backend: time 4.715e-05/0.5846, allocations: 0 / 0.6331 GB, free: 8.898 MB / 458.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.002272/0.5869, allocations: 0.9153 MB / 0.634 GB, free: 7.938 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.587, allocations: 15.95 kB / 0.634 GB, free: 7.922 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002034/0.5872, allocations: 102.7 kB / 0.6341 GB, free: 7.812 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003539/0.5875, allocations: 86.53 kB / 0.6342 GB, free: 7.73 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008276/0.5884, allocations: 0.5053 MB / 0.6347 GB, free: 7.184 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001222/0.5885, allocations: 105.1 kB / 0.6348 GB, free: 7.07 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.335e-05/0.5886, allocations: 51.94 kB / 0.6349 GB, free: 7.02 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001258/0.5899, allocations: 0.8175 MB / 0.6357 GB, free: 6.129 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.403e-05/0.5899, allocations: 7.938 kB / 0.6357 GB, free: 6.121 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.945e-05/0.59, allocations: 20 kB / 0.6357 GB, free: 6.102 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.709e-05/0.59, allocations: 36.98 kB / 0.6357 GB, free: 6.062 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001047/0.5911, allocations: 0.6478 MB / 0.6364 GB, free: 5.418 MB / 458.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.004818/0.5959, allocations: 4.213 MB / 0.6405 GB, free: 0.9141 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008611/0.5968, allocations: 415.9 kB / 0.6409 GB, free: 0.5 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003205/0.5971, allocations: 209.4 kB / 0.6411 GB, free: 300 kB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004851/0.5976, allocations: 0.5029 MB / 0.6416 GB, free: 15.68 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.03e-05/0.5977, allocations: 42.88 kB / 0.6416 GB, free: 15.63 MB / 474.7 MB Notification: Performance of pre-optimization done (n=40): time 2.073e-06/0.5977, allocations: 0 / 0.6416 GB, free: 15.63 MB / 474.7 MB Notification: Performance of matching and sorting (n=45): time 0.003183/0.6009, allocations: 1.514 MB / 0.6431 GB, free: 14.06 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.484e-05/0.601, allocations: 136.5 kB / 0.6432 GB, free: 13.9 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006564/0.6016, allocations: 0.5654 MB / 0.6438 GB, free: 13.32 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 4.507e-05/0.6017, allocations: 37.7 kB / 0.6438 GB, free: 13.28 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002428/0.6019, allocations: 354.9 kB / 0.6441 GB, free: 12.93 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001333/0.6021, allocations: 165.7 kB / 0.6443 GB, free: 12.76 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.349e-05/0.6021, allocations: 12 kB / 0.6443 GB, free: 12.75 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.6023, allocations: 382.7 kB / 0.6447 GB, free: 12.37 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003685/0.6026, allocations: 217.9 kB / 0.6449 GB, free: 12.16 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005608/0.6032, allocations: 0.5201 MB / 0.6454 GB, free: 11.5 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000966/0.6042, allocations: 0.7679 MB / 0.6461 GB, free: 10.6 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.015e-06/0.6042, allocations: 8 kB / 0.6461 GB, free: 10.59 MB / 474.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.0019/0.6061, allocations: 0.9681 MB / 0.6471 GB, free: 9.617 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/0.6062, allocations: 8 kB / 0.6471 GB, free: 9.609 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/0.6062, allocations: 12 kB / 0.6471 GB, free: 9.598 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001083/0.6073, allocations: 266.6 kB / 0.6474 GB, free: 9.336 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003935/0.6077, allocations: 134.9 kB / 0.6475 GB, free: 9.207 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009157/0.6086, allocations: 0.859 MB / 0.6483 GB, free: 8.324 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005292/0.6091, allocations: 48.03 kB / 0.6484 GB, free: 8.277 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.504e-05/0.6092, allocations: 36 kB / 0.6484 GB, free: 8.242 MB / 474.7 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 (73): * Single equations (assignments): 72 * 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 14} Notification: Performance of prepare postOptimizeDAE: time 0.0003259/0.6095, allocations: 249.5 kB / 0.6486 GB, free: 7.988 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001165/0.6097, allocations: 67.16 kB / 0.6487 GB, free: 7.922 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001289/0.611, allocations: 0.709 MB / 0.6494 GB, free: 7.199 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.514e-05/0.611, allocations: 11.94 kB / 0.6494 GB, free: 7.188 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.611, allocations: 3.938 kB / 0.6494 GB, free: 7.184 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.611, allocations: 3.984 kB / 0.6494 GB, free: 7.18 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002115/0.6131, allocations: 1.395 MB / 0.6508 GB, free: 5.703 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.493e-06/0.6132, allocations: 4 kB / 0.6508 GB, free: 5.699 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009325/0.6141, allocations: 195.7 kB / 0.651 GB, free: 5.508 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000282/0.6144, allocations: 64.8 kB / 0.651 GB, free: 5.441 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.507e-05/0.6144, allocations: 15.98 kB / 0.6511 GB, free: 5.426 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002158/0.6166, allocations: 2.788 MB / 0.6538 GB, free: 2.375 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.6166, allocations: 7.969 kB / 0.6538 GB, free: 2.367 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00146/0.6181, allocations: 0.9918 MB / 0.6548 GB, free: 1.332 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002943/0.6184, allocations: 196.2 kB / 0.6549 GB, free: 1.121 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.819e-05/0.6185, allocations: 16 kB / 0.655 GB, free: 1.105 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003813/0.6189, allocations: 28.05 kB / 0.655 GB, free: 1.078 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.619, allocations: 39.88 kB / 0.655 GB, free: 1.039 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.402e-05/0.6191, allocations: 20 kB / 0.655 GB, free: 1.02 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.000427/0.6195, allocations: 394.8 kB / 0.6554 GB, free: 0.6367 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6195, allocations: 0 / 0.6554 GB, free: 0.6367 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0007184/0.6202, allocations: 207.9 kB / 0.6556 GB, free: 444 kB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001989/0.6222, allocations: 1.675 MB / 0.6572 GB, free: 14.71 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001078/0.6233, allocations: 0.5933 MB / 0.6578 GB, free: 14.12 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.6233, allocations: 7.938 kB / 0.6578 GB, free: 14.11 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001036/0.6244, allocations: 478.5 kB / 0.6583 GB, free: 13.63 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001631/0.626, allocations: 324.4 kB / 0.6586 GB, free: 13.32 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006079/0.6321, allocations: 4.375 MB / 0.6629 GB, free: 8.734 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004773/0.6326, allocations: 0.9347 MB / 0.6638 GB, free: 7.77 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003357/0.6329, allocations: 239.4 kB / 0.664 GB, free: 7.535 MB / 490.7 MB Notification: Performance of SimCode: time 5.81e-07/0.6329, allocations: 0 / 0.664 GB, free: 7.535 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.523/5.156, allocations: 16.13 MB / 0.6798 GB, free: 149.1 MB / 490.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearWater_pT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearWater_pT.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT_res.mat does not exist to compare? outputFormat=mat