Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.01442/0.01442, allocations: 174.1 kB / 15.12 MB, free: 5.934 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.007/2.007, allocations: 194.5 MB / 210.3 MB, free: 7.613 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002026/0.002026, allocations: 120.6 kB / 255.6 MB, free: 10.23 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2537/0.2537, allocations: 40.01 MB / 340.8 MB, free: 11.4 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004756/0.0004756, allocations: 16.2 kB / 406.3 MB, free: 51.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1058, allocations: 54.87 MB / 461.1 MB, free: 3.215 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.861/7.967, allocations: 2.664 GB / 3.114 GB, free: 172 kB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/7.967, allocations: 82.59 kB / 3.114 GB, free: 128 kB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.815/10.78, allocations: 0.49 GB / 3.604 GB, free: 47.83 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.959e-06/10.78, allocations: 0 / 3.604 GB, free: 47.83 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001534/10.78, allocations: 49.41 kB / 3.604 GB, free: 47.82 MB / 490.7 MB 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.01611/10.8, allocations: 3.184 MB / 3.607 GB, free: 46.26 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.461e-05/10.8, allocations: 11.69 kB / 3.607 GB, free: 46.26 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001441/10.8, allocations: 287.1 kB / 3.608 GB, free: 46.1 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007872/10.81, allocations: 0.7062 MB / 3.608 GB, free: 45.93 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006475/10.81, allocations: 1.596 MB / 3.61 GB, free: 45.16 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003094/10.82, allocations: 170.5 kB / 3.61 GB, free: 45.1 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009469/10.82, allocations: 174.7 kB / 3.61 GB, free: 45.04 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01231/10.83, allocations: 3.586 MB / 3.614 GB, free: 43.6 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.923e-05/10.83, allocations: 3.094 kB / 3.614 GB, free: 43.6 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004145/10.83, allocations: 76.44 kB / 3.614 GB, free: 43.55 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002497/10.83, allocations: 175 kB / 3.614 GB, free: 43.52 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01351/10.84, allocations: 3.514 MB / 3.617 GB, free: 42.48 MB / 490.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.02967/10.87, allocations: 14.12 MB / 3.631 GB, free: 32.44 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008899/10.88, allocations: 2.274 MB / 3.633 GB, free: 31.68 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5753/11.46, allocations: 63.55 MB / 3.696 GB, free: 59.64 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007435/11.46, allocations: 1.719 MB / 3.697 GB, free: 59.52 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=154): time 6.062e-06/11.46, allocations: 2.75 kB / 3.697 GB, free: 59.52 MB / 0.4948 GB Notification: Performance of matching and sorting (n=174): time 0.03851/11.5, allocations: 9.465 MB / 3.706 GB, free: 58.16 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/11.5, allocations: 281.3 kB / 3.707 GB, free: 57.84 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002743/11.51, allocations: 1.191 MB / 3.708 GB, free: 57.69 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007401/11.51, allocations: 55.64 kB / 3.708 GB, free: 57.66 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009838/11.51, allocations: 0.8212 MB / 3.709 GB, free: 57.34 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001181/11.51, allocations: 0.6031 MB / 3.709 GB, free: 57.04 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000368/11.51, allocations: 43.41 kB / 3.709 GB, free: 57.04 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002043/11.51, allocations: 392.8 kB / 3.71 GB, free: 56.74 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004395/11.51, allocations: 1.279 MB / 3.711 GB, free: 56.73 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005034/11.52, allocations: 1.836 MB / 3.713 GB, free: 56.11 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005058/11.52, allocations: 1.505 MB / 3.714 GB, free: 56.09 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.553e-05/11.52, allocations: 10.52 kB / 3.714 GB, free: 56.09 MB / 0.4948 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01496/11.54, allocations: 4.333 MB / 3.718 GB, free: 55.92 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001497/11.54, allocations: 6.279 MB / 3.725 GB, free: 49.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-05/11.54, allocations: 18.3 kB / 3.725 GB, free: 49.39 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02723/11.57, allocations: 3.641 MB / 3.728 GB, free: 49.36 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002382/11.57, allocations: 336.9 kB / 3.729 GB, free: 49.36 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.011/11.58, allocations: 4.05 MB / 3.732 GB, free: 48.78 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004087/11.59, allocations: 274 kB / 3.733 GB, free: 48.77 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004793/11.59, allocations: 112.7 kB / 3.733 GB, free: 48.77 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/11.59, allocations: 1.969 kB / 3.733 GB, free: 48.77 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01272/11.6, allocations: 3.932 MB / 3.737 GB, free: 48.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.718e-05/11.6, allocations: 20.06 kB / 3.737 GB, free: 48.71 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01644/11.62, allocations: 2.427 MB / 3.739 GB, free: 48.68 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002704/11.62, allocations: 372.5 kB / 3.739 GB, free: 48.68 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008238/11.63, allocations: 3.342 MB / 3.743 GB, free: 48.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003677/11.63, allocations: 273.5 kB / 3.743 GB, free: 48.09 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003568/11.63, allocations: 105.3 kB / 3.743 GB, free: 48.09 MB / 0.4948 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.001849/11.63, allocations: 0.6987 MB / 3.744 GB, free: 47.91 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005477/11.63, allocations: 167 kB / 3.744 GB, free: 47.82 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01505/11.65, allocations: 6.85 MB / 3.751 GB, free: 47.34 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.181e-05/11.65, allocations: 75.08 kB / 3.751 GB, free: 47.34 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-05/11.65, allocations: 3.875 kB / 3.751 GB, free: 47.34 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01132/11.66, allocations: 5.508 MB / 3.756 GB, free: 46.63 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0207/11.68, allocations: 9.552 MB / 3.765 GB, free: 46.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.208e-05/11.68, allocations: 3.781 kB / 3.765 GB, free: 46.04 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003662/11.68, allocations: 438.6 kB / 3.766 GB, free: 46.04 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002898/11.69, allocations: 481 kB / 3.766 GB, free: 45.98 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005271/11.69, allocations: 59.42 kB / 3.766 GB, free: 45.98 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002142/11.69, allocations: 3.224 MB / 3.769 GB, free: 43.39 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/11.69, allocations: 0 / 3.769 GB, free: 43.39 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0169/11.71, allocations: 7.132 MB / 3.776 GB, free: 41.19 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002605/11.71, allocations: 0.7679 MB / 3.777 GB, free: 40.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007841/11.71, allocations: 54.23 kB / 3.777 GB, free: 40.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003392/11.71, allocations: 209.8 kB / 3.777 GB, free: 40.66 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008267/11.71, allocations: 184.3 kB / 3.778 GB, free: 40.64 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002453/11.71, allocations: 70.59 kB / 3.778 GB, free: 40.62 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002582/11.72, allocations: 1.24 MB / 3.779 GB, free: 40.15 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.32e-07/11.72, allocations: 3.969 kB / 3.779 GB, free: 40.15 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01095/11.73, allocations: 2.366 MB / 3.781 GB, free: 39.91 MB / 0.4948 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.02795/11.76, allocations: 9.923 MB / 3.791 GB, free: 35.88 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01814/11.77, allocations: 5.487 MB / 3.796 GB, free: 34.18 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.352e-05/11.77, allocations: 4.5 kB / 3.796 GB, free: 34.18 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006152/11.78, allocations: 2.367 MB / 3.799 GB, free: 33.28 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007392/11.79, allocations: 0.7885 MB / 3.799 GB, free: 33.12 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02752/11.82, allocations: 21.19 MB / 3.82 GB, free: 16.58 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001965/11.82, allocations: 2.055 MB / 3.822 GB, free: 15.7 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005423/11.82, allocations: 1.446 MB / 3.823 GB, free: 15.61 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002865/11.83, allocations: 1.146 MB / 3.825 GB, free: 14.68 MB / 0.4948 GB Notification: Performance of SimCode: time 1.082e-06/11.83, allocations: 0 / 3.825 GB, free: 14.68 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6719/12.5, allocations: 108.5 MB / 3.93 GB, free: 73.63 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003072/12.5, allocations: 262.5 kB / 3.931 GB, free: 73.28 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.211/19.71, allocations: 0 / 3.931 GB, free: 73.28 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat does not exist to compare? outputFormat=mat