Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001787/0.001787, allocations: 176.5 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.46/1.46, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009828/0.0009827, allocations: 102.8 kB / 292.1 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3416/0.3416, allocations: 44.22 MB / 387.5 MB, free: 38.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003673/0.0003674, allocations: 8 kB / 460 MB, free: 1.441 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3587/0.3591, allocations: 61.89 MB / 0.5096 GB, free: 37.93 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.879/6.239, allocations: 2.827 GB / 3.336 GB, free: 23.25 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002428/6.239, allocations: 88.53 kB / 3.336 GB, free: 23.17 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.021/9.26, allocations: 0.7538 GB / 4.09 GB, free: 45.75 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.693e-06/9.26, allocations: 0 / 4.09 GB, free: 45.75 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.000107/9.26, allocations: 29.44 kB / 4.09 GB, free: 45.75 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.01175/9.272, allocations: 2.918 MB / 4.093 GB, free: 44.25 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/9.272, allocations: 11.59 kB / 4.093 GB, free: 44.25 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005392/9.273, allocations: 162.5 kB / 4.093 GB, free: 44.21 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003186/9.276, allocations: 487.9 kB / 4.094 GB, free: 44.14 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002758/9.279, allocations: 1.142 MB / 4.095 GB, free: 43.81 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001358/9.279, allocations: 144.8 kB / 4.095 GB, free: 43.75 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001577/9.279, allocations: 94.58 kB / 4.095 GB, free: 43.75 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003547/9.283, allocations: 1.889 MB / 4.097 GB, free: 43.4 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.595e-05/9.283, allocations: 3.281 kB / 4.097 GB, free: 43.4 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001253/9.283, allocations: 45.48 kB / 4.097 GB, free: 43.4 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.232e-05/9.283, allocations: 88.42 kB / 4.097 GB, free: 43.38 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003331/9.286, allocations: 1.779 MB / 4.099 GB, free: 43.36 MB / 0.5417 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.01009/9.296, allocations: 8.531 MB / 4.107 GB, free: 37.08 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002795/9.299, allocations: 1.4 MB / 4.108 GB, free: 36.42 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1104/9.409, allocations: 63.28 MB / 4.17 GB, free: 25.4 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002502/9.412, allocations: 0.902 MB / 4.171 GB, free: 24.67 MB / 0.573 GB Notification: Performance of pre-optimization done (n=82): time 3.216e-06/9.412, allocations: 0 / 4.171 GB, free: 24.67 MB / 0.573 GB Notification: Performance of matching and sorting (n=86): time 0.01166/9.424, allocations: 4.612 MB / 4.176 GB, free: 20.5 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000301/9.424, allocations: 402.1 kB / 4.176 GB, free: 20.02 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001469/9.426, allocations: 0.9366 MB / 4.177 GB, free: 19.2 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 9.263e-05/9.426, allocations: 45.83 kB / 4.177 GB, free: 19.14 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004205/9.426, allocations: 0.5643 MB / 4.178 GB, free: 18.63 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002286/9.426, allocations: 307.2 kB / 4.178 GB, free: 18.36 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.938e-05/9.426, allocations: 28 kB / 4.178 GB, free: 18.33 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001623/9.427, allocations: 357.1 kB / 4.178 GB, free: 17.99 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000951/9.428, allocations: 0.5354 MB / 4.179 GB, free: 17.53 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001203/9.429, allocations: 1.014 MB / 4.18 GB, free: 16.4 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00115/9.43, allocations: 0.6969 MB / 4.18 GB, free: 15.75 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/9.43, allocations: 4 kB / 4.18 GB, free: 15.75 MB / 0.573 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.003111/9.433, allocations: 1.927 MB / 4.182 GB, free: 14.01 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002274/9.435, allocations: 5.408 MB / 4.188 GB, free: 8.195 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.371e-05/9.435, allocations: 15.69 kB / 4.188 GB, free: 8.184 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00596/9.441, allocations: 1.126 MB / 4.189 GB, free: 7.336 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001041/9.442, allocations: 255.9 kB / 4.189 GB, free: 7.121 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002243/9.445, allocations: 1.493 MB / 4.19 GB, free: 5.719 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/9.446, allocations: 128.7 kB / 4.191 GB, free: 5.617 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001305/9.446, allocations: 67.75 kB / 4.191 GB, free: 5.555 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/9.446, allocations: 7.953 kB / 4.191 GB, free: 5.547 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003462/9.45, allocations: 1.679 MB / 4.192 GB, free: 4.059 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.822e-05/9.45, allocations: 12 kB / 4.192 GB, free: 4.047 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001554/9.452, allocations: 385.4 kB / 4.193 GB, free: 3.746 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009908/9.453, allocations: 288.5 kB / 4.193 GB, free: 3.508 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001441/9.454, allocations: 1.065 MB / 4.194 GB, free: 2.484 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001486/9.455, allocations: 128.8 kB / 4.194 GB, free: 2.379 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000123/9.456, allocations: 71.22 kB / 4.194 GB, free: 2.316 MB / 0.573 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 19 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.staticPipe2.flowModel.states[2].phase,pipe.staticPipe2.flowModel.states[1].phase,pipe.staticPipe1.flowModel.states[2].phase,pipe.staticPipe1.flowModel.states[1].phase,pipe.volume.regularFlow[1],pipe.volume.regularFlow[2],pipe.volume.inFlow[2],pipe.volume.inFlow[1],pipe.volume.heatTransfer.states[1].phase,sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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 {3 35} Notification: Performance of prepare postOptimizeDAE: time 0.0009874/9.457, allocations: 466.1 kB / 4.195 GB, free: 1.875 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002171/9.457, allocations: 129.8 kB / 4.195 GB, free: 1.75 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4098/9.867, allocations: 4.078 MB / 4.199 GB, free: 75.89 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.21e-05/9.867, allocations: 46.27 kB / 4.199 GB, free: 75.89 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.614e-05/9.867, allocations: 2.469 kB / 4.199 GB, free: 75.89 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.195e-05/9.867, allocations: 6.516 kB / 4.199 GB, free: 75.89 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01196/9.879, allocations: 5.551 MB / 4.204 GB, free: 75.38 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.169e-05/9.879, allocations: 0 / 4.204 GB, free: 75.38 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001074/9.88, allocations: 177.7 kB / 4.204 GB, free: 75.38 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009715/9.89, allocations: 1.558 MB / 4.206 GB, free: 75.33 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003314/9.89, allocations: 26.47 kB / 4.206 GB, free: 75.33 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002735/9.893, allocations: 2.093 MB / 4.208 GB, free: 74.28 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/9.893, allocations: 8.156 kB / 4.208 GB, free: 74.28 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009203/9.902, allocations: 3.987 MB / 4.212 GB, free: 73.81 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002012/9.904, allocations: 0.5348 MB / 4.212 GB, free: 73.72 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004601/9.905, allocations: 27.42 kB / 4.212 GB, free: 73.72 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001809/9.907, allocations: 98.67 kB / 4.212 GB, free: 73.72 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002416/9.907, allocations: 80.5 kB / 4.213 GB, free: 73.71 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001211/9.907, allocations: 36.97 kB / 4.213 GB, free: 73.71 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002583/9.91, allocations: 1.052 MB / 4.214 GB, free: 73.61 MB / 0.573 GB Notification: Performance of sort global known variables: time 4.61e-07/9.91, allocations: 0 / 4.214 GB, free: 73.61 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01465/9.924, allocations: 2.064 MB / 4.216 GB, free: 73.61 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 25 ($cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].phase,m_flow_initial,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.02557/9.95, allocations: 6.795 MB / 4.222 GB, free: 72.02 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.005743/9.956, allocations: 2.473 MB / 4.225 GB, free: 71.98 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.231e-05/9.956, allocations: 3.781 kB / 4.225 GB, free: 71.98 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001742/9.957, allocations: 1.042 MB / 4.226 GB, free: 71.97 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003483/9.961, allocations: 0.6334 MB / 4.226 GB, free: 71.96 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01687/9.978, allocations: 15.41 MB / 4.241 GB, free: 60.03 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0015/9.979, allocations: 1.479 MB / 4.243 GB, free: 59.31 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.003197/9.983, allocations: 0.9818 MB / 4.244 GB, free: 59.29 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009996/9.984, allocations: 0.718 MB / 4.244 GB, free: 59.29 MB / 0.573 GB Notification: Performance of SimCode: time 7.02e-07/9.984, allocations: 0.875 kB / 4.244 GB, free: 59.29 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1544/10.14, allocations: 83.58 MB / 4.326 GB, free: 56.29 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001976/10.14, allocations: 268.5 kB / 4.326 GB, free: 55.93 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.076/15.21, allocations: 0 / 4.326 GB, free: 55.93 MB / 0.573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization_res.mat does not exist to compare? outputFormat=mat