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.001902/0.001902, allocations: 183.8 kB / 17.06 MB, free: 5.074 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.628/1.628, allocations: 223.2 MB / 241 MB, free: 11.88 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.001017/0.001017, allocations: 97.5 kB / 292.1 MB, free: 10.89 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.5256/0.5256, allocations: 44.22 MB / 387.5 MB, free: 38.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004655/0.0004659, allocations: 8 kB / 460 MB, free: 1.398 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4867/0.4872, allocations: 61.89 MB / 0.5096 GB, free: 38.11 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.359/7.846, allocations: 2.838 GB / 3.348 GB, free: 119.9 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003473/7.846, allocations: 85.52 kB / 3.348 GB, free: 119.9 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.912/9.758, allocations: 0.498 GB / 3.846 GB, free: 40.35 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.727e-06/9.758, allocations: 0 / 3.846 GB, free: 40.35 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002188/9.759, allocations: 47.42 kB / 3.846 GB, free: 40.34 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.01743/9.776, allocations: 3.193 MB / 3.849 GB, free: 38.66 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 7.174e-05/9.776, allocations: 10.66 kB / 3.849 GB, free: 38.66 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001941/9.778, allocations: 283 kB / 3.849 GB, free: 38.5 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006608/9.785, allocations: 0.7125 MB / 3.85 GB, free: 38.32 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006457/9.791, allocations: 1.584 MB / 3.851 GB, free: 37.55 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003133/9.792, allocations: 170.7 kB / 3.852 GB, free: 37.48 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001082/9.793, allocations: 184.7 kB / 3.852 GB, free: 37.42 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01051/9.803, allocations: 3.577 MB / 3.855 GB, free: 35.96 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001094/9.803, allocations: 10.88 kB / 3.855 GB, free: 35.96 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007845/9.804, allocations: 72.64 kB / 3.855 GB, free: 35.91 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002142/9.804, allocations: 178.4 kB / 3.856 GB, free: 35.88 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00856/9.813, allocations: 3.518 MB / 3.859 GB, free: 33.46 MB / 0.5261 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.02504/9.838, allocations: 14.13 MB / 3.873 GB, free: 20.28 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005536/9.844, allocations: 2.28 MB / 3.875 GB, free: 18.36 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5503/10.39, allocations: 63.43 MB / 3.937 GB, free: 47.76 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004855/10.4, allocations: 1.724 MB / 3.939 GB, free: 47.64 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=154): time 6.933e-06/10.4, allocations: 1.719 kB / 3.939 GB, free: 47.64 MB / 0.5417 GB Notification: Performance of matching and sorting (n=174): time 0.02239/10.42, allocations: 9.454 MB / 3.948 GB, free: 46.27 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001411/10.42, allocations: 282.8 kB / 3.948 GB, free: 45.96 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002069/10.42, allocations: 1.192 MB / 3.949 GB, free: 45.8 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002794/10.42, allocations: 59.7 kB / 3.949 GB, free: 45.77 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008879/10.42, allocations: 0.8219 MB / 3.95 GB, free: 45.46 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007348/10.43, allocations: 0.6007 MB / 3.951 GB, free: 45.16 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001388/10.43, allocations: 39.94 kB / 3.951 GB, free: 45.16 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001628/10.43, allocations: 395.4 kB / 3.951 GB, free: 44.86 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002327/10.43, allocations: 1.28 MB / 3.952 GB, free: 44.85 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00288/10.43, allocations: 1.831 MB / 3.954 GB, free: 44.22 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002361/10.43, allocations: 1.516 MB / 3.956 GB, free: 44.2 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.736e-06/10.43, allocations: 3.969 kB / 3.956 GB, free: 44.2 MB / 0.5417 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.009145/10.44, allocations: 4.336 MB / 3.96 GB, free: 44.03 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001666/10.44, allocations: 6.275 MB / 3.966 GB, free: 37.51 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.345e-05/10.44, allocations: 15.97 kB / 3.966 GB, free: 37.51 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01741/10.46, allocations: 3.674 MB / 3.97 GB, free: 37.47 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001816/10.46, allocations: 332.5 kB / 3.97 GB, free: 37.47 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009932/10.47, allocations: 4.06 MB / 3.974 GB, free: 36.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003334/10.48, allocations: 265.6 kB / 3.974 GB, free: 36.89 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002852/10.48, allocations: 107.7 kB / 3.974 GB, free: 36.89 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/10.48, allocations: 5.906 kB / 3.974 GB, free: 36.89 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007879/10.49, allocations: 3.941 MB / 3.978 GB, free: 36.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.644e-05/10.49, allocations: 14.97 kB / 3.978 GB, free: 36.82 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009539/10.49, allocations: 2.434 MB / 3.981 GB, free: 36.79 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001976/10.5, allocations: 367.6 kB / 3.981 GB, free: 36.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005746/10.5, allocations: 3.339 MB / 3.984 GB, free: 36.22 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003425/10.51, allocations: 268.9 kB / 3.984 GB, free: 36.21 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000352/10.51, allocations: 101.9 kB / 3.985 GB, free: 36.21 MB / 0.5417 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: 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 () * Number of clocked 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.001936/10.51, allocations: 0.7024 MB / 3.985 GB, free: 36.02 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005207/10.51, allocations: 162.2 kB / 3.985 GB, free: 35.94 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008959/10.52, allocations: 6.861 MB / 3.992 GB, free: 35.46 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.336e-05/10.52, allocations: 70.02 kB / 3.992 GB, free: 35.46 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.539e-05/10.52, allocations: 10.91 kB / 3.992 GB, free: 35.46 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006709/10.52, allocations: 5.502 MB / 3.997 GB, free: 34.76 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01436/10.54, allocations: 9.572 MB / 4.007 GB, free: 34.14 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.8e-05/10.54, allocations: 0 / 4.007 GB, free: 34.14 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001777/10.54, allocations: 439 kB / 4.007 GB, free: 34.14 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001671/10.54, allocations: 474.6 kB / 4.008 GB, free: 34.09 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002093/10.54, allocations: 70.77 kB / 4.008 GB, free: 34.08 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001422/10.54, allocations: 3.215 MB / 4.011 GB, free: 31.49 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/10.54, allocations: 2.969 kB / 4.011 GB, free: 31.49 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009549/10.55, allocations: 7.119 MB / 4.018 GB, free: 30.61 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001991/10.56, allocations: 0.778 MB / 4.019 GB, free: 30.14 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003767/10.56, allocations: 51.02 kB / 4.019 GB, free: 30.11 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001564/10.56, allocations: 211 kB / 4.019 GB, free: 30.07 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000345/10.56, allocations: 188.3 kB / 4.019 GB, free: 30.05 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001373/10.56, allocations: 62.42 kB / 4.019 GB, free: 30.04 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001626/10.56, allocations: 1.248 MB / 4.02 GB, free: 29.56 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.8e-07/10.56, allocations: 1.031 kB / 4.02 GB, free: 29.56 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0106/10.57, allocations: 2.362 MB / 4.023 GB, free: 29.32 MB / 0.5417 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 () * Number of clocked 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.02032/10.59, allocations: 9.944 MB / 4.032 GB, free: 25.23 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01046/10.6, allocations: 5.495 MB / 4.038 GB, free: 23.5 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.508e-06/10.6, allocations: 0 / 4.038 GB, free: 23.5 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003418/10.61, allocations: 2.368 MB / 4.04 GB, free: 22.59 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004086/10.61, allocations: 0.7932 MB / 4.041 GB, free: 22.39 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02142/10.63, allocations: 21.19 MB / 4.062 GB, free: 5.547 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001531/10.63, allocations: 2.051 MB / 4.064 GB, free: 4.668 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.003456/10.64, allocations: 1.448 MB / 4.065 GB, free: 4.59 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001409/10.64, allocations: 1.147 MB / 4.066 GB, free: 3.656 MB / 0.5417 GB Notification: Performance of SimCode: time 1.223e-06/10.64, allocations: 0 / 4.066 GB, free: 3.656 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6133/11.25, allocations: 107.4 MB / 4.171 GB, free: 89.09 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002105/11.25, allocations: 267.3 kB / 4.171 GB, free: 88.74 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.086/17.34, allocations: 0 / 4.171 GB, free: 88.74 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