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.001505/0.001505, allocations: 180.2 kB / 14.15 MB, free: 1.176 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.384/1.384, allocations: 221.4 MB / 236 MB, free: 2.93 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.0008783/0.000878, allocations: 88.02 kB / 287 MB, free: 248 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2025/0.2025, allocations: 44.15 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.08e-05/3.1e-05, allocations: 0 / 451.9 MB, free: 9.336 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1475/0.1476, allocations: 61.91 MB / 0.5018 GB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.38/8.528, allocations: 2.838 GB / 3.34 GB, free: 99.21 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000282/8.528, allocations: 81.09 kB / 3.34 GB, free: 99.13 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.207/10.74, allocations: 0.497 GB / 3.837 GB, free: 6.215 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.733e-06/10.74, allocations: 0 / 3.837 GB, free: 6.215 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001816/10.74, allocations: 43.59 kB / 3.837 GB, free: 6.176 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.01352/10.75, allocations: 2.981 MB / 3.84 GB, free: 3.152 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.772e-05/10.75, allocations: 8.031 kB / 3.84 GB, free: 3.145 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001463/10.75, allocations: 282.8 kB / 3.84 GB, free: 2.863 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005766/10.76, allocations: 0.7078 MB / 3.841 GB, free: 2.152 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005674/10.76, allocations: 1.585 MB / 3.842 GB, free: 0.543 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002743/10.76, allocations: 171.2 kB / 3.842 GB, free: 388 kB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001098/10.76, allocations: 171.7 kB / 3.843 GB, free: 220 kB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4906/11.25, allocations: 3.521 MB / 3.846 GB, free: 44.4 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.246e-05/11.25, allocations: 7.984 kB / 3.846 GB, free: 44.4 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003255/11.26, allocations: 77.53 kB / 3.846 GB, free: 44.4 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002737/11.26, allocations: 170.9 kB / 3.846 GB, free: 44.4 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01025/11.27, allocations: 3.337 MB / 3.85 GB, free: 44.38 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.02201/11.29, allocations: 14.13 MB / 3.863 GB, free: 36.77 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005752/11.29, allocations: 2.151 MB / 3.865 GB, free: 36.62 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00241/11.3, allocations: 1.072 MB / 3.867 GB, free: 36.58 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.128/11.42, allocations: 63.65 MB / 3.929 GB, free: 29.69 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004816/11.43, allocations: 1.691 MB / 3.93 GB, free: 29.55 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=154): time 7.715e-06/11.43, allocations: 0 / 3.93 GB, free: 29.55 MB / 0.5573 GB Notification: Performance of matching and sorting (n=174): time 0.02289/11.45, allocations: 8.16 MB / 3.938 GB, free: 28 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002006/11.45, allocations: 284.1 kB / 3.939 GB, free: 27.69 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002354/11.45, allocations: 1.177 MB / 3.94 GB, free: 27.52 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003757/11.45, allocations: 58.8 kB / 3.94 GB, free: 27.49 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000952/11.46, allocations: 0.8227 MB / 3.941 GB, free: 27.18 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008075/11.46, allocations: 0.5993 MB / 3.941 GB, free: 26.88 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002778/11.46, allocations: 44.59 kB / 3.941 GB, free: 26.88 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000285/11.46, allocations: 390.8 kB / 3.942 GB, free: 26.58 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001999/11.46, allocations: 1.145 MB / 3.943 GB, free: 26.57 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002458/11.46, allocations: 1.698 MB / 3.944 GB, free: 25.93 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002538/11.46, allocations: 1.379 MB / 3.946 GB, free: 25.88 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.973e-05/11.46, allocations: 3.969 kB / 3.946 GB, free: 25.88 MB / 0.5573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.00734/11.47, allocations: 3.983 MB / 3.95 GB, free: 25.69 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002787/11.47, allocations: 6.27 MB / 3.956 GB, free: 19.11 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.289e-05/11.47, allocations: 21.88 kB / 3.956 GB, free: 19.11 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01435/11.49, allocations: 3.462 MB / 3.959 GB, free: 19.01 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001659/11.49, allocations: 337.5 kB / 3.959 GB, free: 19.01 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007302/11.5, allocations: 3.817 MB / 3.963 GB, free: 18.43 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003404/11.5, allocations: 270.2 kB / 3.963 GB, free: 18.4 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005273/11.5, allocations: 109.2 kB / 3.964 GB, free: 18.4 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/11.5, allocations: 1.969 kB / 3.964 GB, free: 18.4 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006535/11.51, allocations: 3.587 MB / 3.967 GB, free: 18.32 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.272e-05/11.51, allocations: 15 kB / 3.967 GB, free: 18.32 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008063/11.52, allocations: 2.263 MB / 3.969 GB, free: 18.26 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001707/11.52, allocations: 366.1 kB / 3.97 GB, free: 18.25 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004307/11.52, allocations: 3.101 MB / 3.973 GB, free: 17.69 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003246/11.53, allocations: 268.9 kB / 3.973 GB, free: 17.66 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006303/11.53, allocations: 107.5 kB / 3.973 GB, free: 17.66 MB / 0.5573 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 (source.medium.phase,$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,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.001409/11.53, allocations: 229.9 kB / 3.973 GB, free: 17.55 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008359/11.53, allocations: 162.9 kB / 3.973 GB, free: 17.47 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01084/11.54, allocations: 6.755 MB / 3.98 GB, free: 16.9 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.737e-05/11.54, allocations: 81.41 kB / 3.98 GB, free: 16.9 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.769e-05/11.54, allocations: 7.922 kB / 3.98 GB, free: 16.9 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006934/11.55, allocations: 5.437 MB / 3.985 GB, free: 16.16 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01595/11.56, allocations: 9.475 MB / 3.995 GB, free: 29.71 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.123e-05/11.56, allocations: 0 / 3.995 GB, free: 29.71 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001871/11.57, allocations: 439.8 kB / 3.995 GB, free: 29.69 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001581/11.57, allocations: 437.5 kB / 3.995 GB, free: 29.55 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002719/11.57, allocations: 68.16 kB / 3.996 GB, free: 29.51 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002644/11.57, allocations: 3.21 MB / 3.999 GB, free: 26.66 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/11.57, allocations: 1.875 kB / 3.999 GB, free: 26.66 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01116/11.58, allocations: 6.749 MB / 4.005 GB, free: 23.7 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002497/11.58, allocations: 0.7698 MB / 4.006 GB, free: 23.23 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009095/11.58, allocations: 53.48 kB / 4.006 GB, free: 23.2 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002644/11.59, allocations: 211.2 kB / 4.006 GB, free: 23.15 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005074/11.59, allocations: 192.1 kB / 4.006 GB, free: 23.12 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000244/11.59, allocations: 65.39 kB / 4.007 GB, free: 23.11 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002769/11.59, allocations: 1.22 MB / 4.008 GB, free: 22.63 MB / 0.573 GB Notification: Performance of sort global known variables: time 6.32e-07/11.59, allocations: 0 / 4.008 GB, free: 22.63 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01544/11.61, allocations: 2.365 MB / 4.01 GB, free: 22.39 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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: 39 ($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,$cse16.region3boundary,$cse17.region3boundary,$cse18.phase,$cse18.region,$cse25.phase,$cse25.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.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,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * 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.02963/11.64, allocations: 9.558 MB / 4.019 GB, free: 18.33 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01251/11.65, allocations: 5.121 MB / 4.024 GB, free: 15.05 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.133e-05/11.65, allocations: 1.938 kB / 4.024 GB, free: 15.05 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004074/11.65, allocations: 2.281 MB / 4.027 GB, free: 13.02 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005199/11.66, allocations: 0.7771 MB / 4.027 GB, free: 12.46 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02191/11.68, allocations: 6.825 MB / 4.034 GB, free: 6.711 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00264/11.68, allocations: 2.052 MB / 4.036 GB, free: 5.074 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.005291/11.69, allocations: 1.623 MB / 4.038 GB, free: 4.086 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002392/11.69, allocations: 1.129 MB / 4.039 GB, free: 3.043 MB / 0.573 GB Notification: Performance of SimCode: time 1.873e-06/11.69, allocations: 0 / 4.039 GB, free: 3.043 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6387/12.33, allocations: 113 MB / 4.149 GB, free: 100.6 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002729/12.33, allocations: 238.8 kB / 4.149 GB, free: 100.3 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.871/18.2, allocations: 0 / 4.149 GB, free: 100.3 MB / 0.5886 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