Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.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.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",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.0009572/0.0009572, allocations: 169.7 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.562/1.562, allocations: 221.5 MB / 230.7 MB, free: 7.555 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009506/0.0009505, allocations: 87.3 kB / 281.6 MB, free: 5.301 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.1957/0.1957, allocations: 44.14 MB / 376.5 MB, free: 3.027 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.15e-05/2.147e-05, allocations: 4 kB / 444.7 MB, free: 15.11 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1209, allocations: 61.91 MB / 0.4948 GB, free: 1.141 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.922/9.043, allocations: 2.837 GB / 3.332 GB, free: 137.9 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003542/9.043, allocations: 74.53 kB / 3.332 GB, free: 137.9 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.986/11.03, allocations: 0.4921 GB / 3.824 GB, free: 45.04 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.054e-06/11.03, allocations: 0 / 3.824 GB, free: 45.04 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001122/11.03, allocations: 40 kB / 3.824 GB, free: 45 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01253/11.04, allocations: 2.99 MB / 3.827 GB, free: 42.33 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/11.04, allocations: 11.98 kB / 3.827 GB, free: 42.32 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00541/11.05, allocations: 0.7158 MB / 3.828 GB, free: 41.76 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004739/11.05, allocations: 1.578 MB / 3.829 GB, free: 40.35 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001859/11.05, allocations: 87.97 kB / 3.83 GB, free: 40.27 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006463/11.05, allocations: 108.7 kB / 3.83 GB, free: 40.16 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004675/11.06, allocations: 2.826 MB / 3.832 GB, free: 37.34 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004072/11.06, allocations: 2.877 MB / 3.835 GB, free: 34.32 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.077e-05/11.06, allocations: 12.22 kB / 3.835 GB, free: 34.31 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002171/11.06, allocations: 7.953 kB / 3.835 GB, free: 34.3 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001608/11.06, allocations: 179.5 kB / 3.835 GB, free: 34.12 MB / 0.5261 GB Warning: The model contains alias variables with conflicting start and/or 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.6852/11.75, allocations: 140.5 MB / 3.973 GB, free: 27.55 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002991/11.75, allocations: 1.577 MB / 3.974 GB, free: 27.51 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001534/11.75, allocations: 0.9787 MB / 3.975 GB, free: 27.49 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0329/11.79, allocations: 16.72 MB / 3.991 GB, free: 32.71 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002141/11.79, allocations: 1.147 MB / 3.993 GB, free: 32.6 MB / 0.573 GB Notification: Performance of pre-optimization done (n=139): time 3.256e-06/11.79, allocations: 3.625 kB / 3.993 GB, free: 32.6 MB / 0.573 GB Notification: Performance of matching and sorting (n=159): time 0.01735/11.8, allocations: 7.409 MB / 4 GB, free: 31.63 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001316/11.8, allocations: 224.5 kB / 4 GB, free: 31.38 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001282/11.81, allocations: 0.9235 MB / 4.001 GB, free: 31.22 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001513/11.81, allocations: 33.23 kB / 4.001 GB, free: 31.19 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007219/11.81, allocations: 0.8855 MB / 4.002 GB, free: 30.81 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004421/11.81, allocations: 0.5361 MB / 4.002 GB, free: 30.54 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/11.81, allocations: 0 / 4.002 GB, free: 30.54 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002247/11.81, allocations: 445.2 kB / 4.003 GB, free: 30.22 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001401/11.81, allocations: 1.125 MB / 4.004 GB, free: 30.21 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001667/11.81, allocations: 1.666 MB / 4.006 GB, free: 29.59 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003584/11.81, allocations: 1.671 MB / 4.007 GB, free: 29.54 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.195e-05/11.81, allocations: 5.469 kB / 4.007 GB, free: 29.54 MB / 0.573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.007286/11.82, allocations: 4.101 MB / 4.011 GB, free: 29.37 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002416/11.82, allocations: 6.272 MB / 4.017 GB, free: 22.79 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.316e-05/11.82, allocations: 16.12 kB / 4.017 GB, free: 22.79 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008782/11.83, allocations: 2.631 MB / 4.02 GB, free: 22.69 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001562/11.83, allocations: 334.6 kB / 4.02 GB, free: 22.69 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00703/11.84, allocations: 4.253 MB / 4.024 GB, free: 22.09 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003309/11.85, allocations: 246.8 kB / 4.025 GB, free: 22.06 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000312/11.85, allocations: 108.8 kB / 4.025 GB, free: 22.06 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/11.85, allocations: 3.906 kB / 4.025 GB, free: 22.06 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007026/11.85, allocations: 3.535 MB / 4.028 GB, free: 21.99 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.089e-05/11.85, allocations: 14.06 kB / 4.028 GB, free: 21.99 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007088/11.86, allocations: 2.125 MB / 4.03 GB, free: 21.91 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001567/11.86, allocations: 372 kB / 4.031 GB, free: 21.91 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004104/11.87, allocations: 3.233 MB / 4.034 GB, free: 21.35 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002513/11.87, allocations: 238.3 kB / 4.034 GB, free: 21.32 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002226/11.87, allocations: 105 kB / 4.034 GB, free: 21.32 MB / 0.573 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 17 ($PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,source.medium.phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 165 * 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 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.0007667/11.87, allocations: 167.8 kB / 4.034 GB, free: 21.21 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004974/11.87, allocations: 2.468 MB / 4.037 GB, free: 21.03 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003014/11.87, allocations: 143.2 kB / 4.037 GB, free: 20.96 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007752/11.88, allocations: 5.65 MB / 4.042 GB, free: 20.53 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.728e-05/11.88, allocations: 68.92 kB / 4.042 GB, free: 20.53 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/11.88, allocations: 0 / 4.042 GB, free: 20.53 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006267/11.89, allocations: 5.123 MB / 4.047 GB, free: 19.8 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01231/11.9, allocations: 8.412 MB / 4.056 GB, free: 19.12 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.324e-05/11.9, allocations: 0 / 4.056 GB, free: 19.12 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001638/11.9, allocations: 395.2 kB / 4.056 GB, free: 19.11 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001029/11.9, allocations: 421 kB / 4.056 GB, free: 19.05 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001471/11.9, allocations: 37.97 kB / 4.056 GB, free: 19.05 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002185/11.91, allocations: 3.359 MB / 4.06 GB, free: 16.43 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/11.91, allocations: 0 / 4.06 GB, free: 16.43 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008666/11.91, allocations: 6.252 MB / 4.066 GB, free: 13.88 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00148/11.92, allocations: 0.5739 MB / 4.066 GB, free: 13.46 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002942/11.92, allocations: 18.66 kB / 4.066 GB, free: 13.45 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001398/11.92, allocations: 168.3 kB / 4.067 GB, free: 13.34 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003145/11.92, allocations: 163 kB / 4.067 GB, free: 13.26 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001351/11.92, allocations: 67.7 kB / 4.067 GB, free: 13.22 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001044/11.92, allocations: 0.6583 MB / 4.067 GB, free: 12.81 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.1e-07/11.92, allocations: 0 / 4.067 GB, free: 12.81 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01157/11.93, allocations: 2.181 MB / 4.07 GB, free: 10.92 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 10 (pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 34 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.region3boundary,$cse14.region3boundary,$cse15.phase,$cse15.region,$cse21.phase,$cse21.region,$cse27.phase,$cse27.region,$cse31.phase,$cse31.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (184): * Single equations (assignments): 160 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02054/11.95, allocations: 8.933 MB / 4.078 GB, free: 3.887 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.3779/12.33, allocations: 4.865 MB / 4.083 GB, free: 101.7 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.087e-05/12.33, allocations: 1.062 kB / 4.083 GB, free: 101.7 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004388/12.33, allocations: 2.078 MB / 4.085 GB, free: 101.7 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003674/12.34, allocations: 0.5527 MB / 4.086 GB, free: 101.7 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01887/12.36, allocations: 6.104 MB / 4.092 GB, free: 100.8 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001469/12.36, allocations: 1.92 MB / 4.093 GB, free: 100 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.004426/12.36, allocations: 1.693 MB / 4.095 GB, free: 99.99 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001474/12.36, allocations: 0.9708 MB / 4.096 GB, free: 99.98 MB / 0.573 GB Notification: Performance of SimCode: time 9.92e-07/12.36, allocations: 0 / 4.096 GB, free: 99.98 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1713/12.54, allocations: 93.28 MB / 4.187 GB, free: 96.2 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002093/12.54, allocations: 193.7 kB / 4.187 GB, free: 96 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.014/17.55, allocations: 0 / 4.187 GB, free: 96 MB / 0.573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat does not exist to compare? outputFormat=mat