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.001602/0.001602, allocations: 183.3 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.136/2.136, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001151/0.001151, allocations: 88.42 kB / 270.9 MB, free: 8.359 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.525/0.525, allocations: 43.55 MB / 362.7 MB, free: 51.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004783/0.0004784, allocations: 15.98 kB / 431.5 MB, free: 5.816 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1376, allocations: 58.83 MB / 490.3 MB, free: 10.89 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT): time 0.3791/0.5167, allocations: 34.5 MB / 0.5125 GB, free: 26.25 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.008553/0.5254, allocations: 4.12 MB / 0.5165 GB, free: 23.37 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001318/0.5267, allocations: 26.69 kB / 0.5166 GB, free: 23.35 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001476/0.5283, allocations: 266.8 kB / 0.5168 GB, free: 23.2 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003209/0.5315, allocations: 0.7052 MB / 0.5175 GB, free: 22.73 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003188/0.5347, allocations: 0.6894 MB / 0.5182 GB, free: 22.39 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002384/0.5371, allocations: 1.024 MB / 0.5192 GB, free: 21.89 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009042/0.5381, allocations: 392.6 kB / 0.5196 GB, free: 21.77 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.223/0.7611, allocations: 72.39 MB / 0.5902 GB, free: 4.168 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03988/0.8011, allocations: 13.31 MB / 0.6032 GB, free: 6.848 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002502/0.8014, allocations: 32 kB / 0.6033 GB, free: 6.816 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0569/0.8583, allocations: 18.48 MB / 0.6213 GB, free: 4.332 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006079/0.859, allocations: 203.5 kB / 0.6215 GB, free: 4.133 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003845/0.8594, allocations: 169.3 kB / 0.6217 GB, free: 3.961 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001671/0.861, allocations: 0.7559 MB / 0.6224 GB, free: 3.207 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.8611, allocations: 0 / 0.6224 GB, free: 3.207 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.8611, allocations: 4 kB / 0.6224 GB, free: 3.203 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.194e-05/0.8611, allocations: 0 / 0.6224 GB, free: 3.203 MB / 442.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.003047/0.8642, allocations: 0.919 MB / 0.6233 GB, free: 2.238 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.8642, allocations: 15.97 kB / 0.6233 GB, free: 2.223 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002306/0.8645, allocations: 102.5 kB / 0.6234 GB, free: 2.113 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004965/0.865, allocations: 91.14 kB / 0.6235 GB, free: 2.023 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001231/0.8662, allocations: 496.5 kB / 0.624 GB, free: 1.496 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000152/0.8664, allocations: 104.4 kB / 0.6241 GB, free: 1.383 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001356/0.8665, allocations: 47.98 kB / 0.6241 GB, free: 1.336 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002086/0.8686, allocations: 0.8104 MB / 0.6249 GB, free: 464 kB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.114e-05/0.8687, allocations: 3.938 kB / 0.6249 GB, free: 460 kB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001159/0.8688, allocations: 27.98 kB / 0.625 GB, free: 432 kB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001016/0.869, allocations: 36.98 kB / 0.625 GB, free: 392 kB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001963/0.8709, allocations: 0.64 MB / 0.6256 GB, free: 15.74 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.008105/0.8791, allocations: 4.242 MB / 0.6298 GB, free: 11.21 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001513/0.8806, allocations: 419.9 kB / 0.6302 GB, free: 10.8 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000708/0.8814, allocations: 0.4951 MB / 0.6306 GB, free: 10.19 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.905e-05/0.8814, allocations: 42.88 kB / 0.6307 GB, free: 10.14 MB / 458.7 MB Notification: Performance of pre-optimization done (n=40): time 3.236e-06/0.8815, allocations: 0 / 0.6307 GB, free: 10.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=45): time 0.005447/0.8869, allocations: 1.528 MB / 0.6322 GB, free: 8.559 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.276e-05/0.887, allocations: 132.5 kB / 0.6323 GB, free: 8.398 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001031/0.8881, allocations: 0.5654 MB / 0.6329 GB, free: 7.824 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.471e-05/0.8882, allocations: 37.7 kB / 0.6329 GB, free: 7.781 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003725/0.8886, allocations: 389.4 kB / 0.6333 GB, free: 7.395 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002095/0.8888, allocations: 157.7 kB / 0.6334 GB, free: 7.238 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.464e-05/0.8889, allocations: 12 kB / 0.6334 GB, free: 7.227 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.8891, allocations: 342.8 kB / 0.6338 GB, free: 6.883 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006852/0.8898, allocations: 221.8 kB / 0.634 GB, free: 6.668 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009423/0.8907, allocations: 0.524 MB / 0.6345 GB, free: 6.008 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008671/0.8916, allocations: 312.6 kB / 0.6348 GB, free: 5.707 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/0.8916, allocations: 0 / 0.6348 GB, free: 5.707 MB / 458.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.003384/0.895, allocations: 0.9375 MB / 0.6357 GB, free: 4.758 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.393e-05/0.8951, allocations: 12.97 kB / 0.6357 GB, free: 4.746 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.996e-05/0.8951, allocations: 8 kB / 0.6357 GB, free: 4.738 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001947/0.8971, allocations: 268.6 kB / 0.636 GB, free: 4.473 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008929/0.898, allocations: 127.8 kB / 0.6361 GB, free: 4.348 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001634/0.8997, allocations: 0.8703 MB / 0.6369 GB, free: 3.457 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001058/0.9008, allocations: 44.05 kB / 0.637 GB, free: 3.414 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001171/0.9009, allocations: 39.98 kB / 0.637 GB, free: 3.375 MB / 458.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.0005434/0.9015, allocations: 245.5 kB / 0.6373 GB, free: 3.125 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000189/0.9017, allocations: 79.11 kB / 0.6373 GB, free: 3.047 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00231/0.904, allocations: 0.7032 MB / 0.638 GB, free: 2.336 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.966e-05/0.9041, allocations: 15.94 kB / 0.638 GB, free: 2.32 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.878e-06/0.9041, allocations: 0 / 0.638 GB, free: 2.32 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.108e-06/0.9041, allocations: 0 / 0.638 GB, free: 2.32 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003871/0.908, allocations: 1.41 MB / 0.6394 GB, free: 0.8281 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.22e-05/0.9081, allocations: 5.703 kB / 0.6394 GB, free: 0.8242 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002034/0.9101, allocations: 195.8 kB / 0.6396 GB, free: 0.6328 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005453/0.9107, allocations: 69.03 kB / 0.6397 GB, free: 0.5625 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.462e-05/0.9108, allocations: 12 kB / 0.6397 GB, free: 0.5508 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003628/0.9144, allocations: 2.8 MB / 0.6424 GB, free: 13.49 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.9145, allocations: 0 / 0.6424 GB, free: 13.49 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002855/0.9174, allocations: 1.074 MB / 0.6435 GB, free: 12.33 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005362/0.918, allocations: 208.2 kB / 0.6437 GB, free: 12.11 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001512/0.9181, allocations: 16 kB / 0.6437 GB, free: 12.09 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000741/0.9189, allocations: 28.03 kB / 0.6437 GB, free: 12.06 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001529/0.919, allocations: 43.84 kB / 0.6437 GB, free: 12.02 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.346e-05/0.9191, allocations: 19.98 kB / 0.6438 GB, free: 12 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0007752/0.9199, allocations: 394.8 kB / 0.6441 GB, free: 11.62 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.9199, allocations: 0 / 0.6441 GB, free: 11.62 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001285/0.9212, allocations: 203.9 kB / 0.6443 GB, free: 11.42 MB / 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.003908/0.9251, allocations: 2.235 MB / 0.6465 GB, free: 9.109 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002005/0.9272, allocations: 0.5928 MB / 0.6471 GB, free: 8.52 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/0.9272, allocations: 0 / 0.6471 GB, free: 8.52 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002079/0.9293, allocations: 482.8 kB / 0.6476 GB, free: 8.035 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002838/0.9322, allocations: 323 kB / 0.6479 GB, free: 7.73 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01412/0.9464, allocations: 10.54 MB / 0.6582 GB, free: 12.91 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007599/0.9472, allocations: 0.9464 MB / 0.6591 GB, free: 11.94 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006734/0.9479, allocations: 239.4 kB / 0.6593 GB, free: 11.7 MB / 490.7 MB Notification: Performance of SimCode: time 1.703e-06/0.9479, allocations: 0 / 0.6593 GB, free: 11.7 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.779/4.727, allocations: 17.89 MB / 0.6768 GB, free: 148.8 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