Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_1_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.1+maint.om/package.mo): time 0.009913/0.009913, allocations: 166.2 kB / 15.11 MB, free: 5.934 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.596/1.596, allocations: 170.8 MB / 186.6 MB, free: 1.133 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.002017/0.002017, allocations: 111 kB / 226.2 MB, free: 10.1 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4287/0.4287, allocations: 38.05 MB / 303.7 MB, free: 42.44 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000514/0.0005139, allocations: 12 kB / 363 MB, free: 5.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.104, allocations: 48.71 MB / 411.7 MB, free: 4.723 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.668/7.772, allocations: 2.553 GB / 2.955 GB, free: 56.07 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002433/7.773, allocations: 78.89 kB / 2.955 GB, free: 56.03 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.661/10.43, allocations: 490.9 MB / 3.435 GB, free: 34.33 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.487e-06/10.43, allocations: 0 / 3.435 GB, free: 34.33 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001555/10.43, allocations: 40.42 kB / 3.435 GB, free: 34.32 MB / 442.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.01665/10.45, allocations: 3.139 MB / 3.438 GB, free: 32.96 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/10.45, allocations: 11.91 kB / 3.438 GB, free: 32.96 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00142/10.45, allocations: 284.6 kB / 3.438 GB, free: 32.92 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007948/10.46, allocations: 0.7032 MB / 3.439 GB, free: 32.81 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006735/10.47, allocations: 1.576 MB / 3.44 GB, free: 32.44 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003029/10.47, allocations: 168.4 kB / 3.441 GB, free: 32.44 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008495/10.47, allocations: 179.6 kB / 3.441 GB, free: 32.43 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01225/10.48, allocations: 3.586 MB / 3.444 GB, free: 31.98 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.903e-05/10.48, allocations: 4.688 kB / 3.444 GB, free: 31.98 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004229/10.48, allocations: 76.66 kB / 3.444 GB, free: 31.98 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002382/10.48, allocations: 172.9 kB / 3.444 GB, free: 31.97 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01344/10.49, allocations: 3.519 MB / 3.448 GB, free: 31.71 MB / 442.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.52, allocations: 14.12 MB / 3.462 GB, free: 21.76 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009111/10.53, allocations: 2.288 MB / 3.464 GB, free: 20.98 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2028/10.74, allocations: 63.36 MB / 3.526 GB, free: 24.55 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007085/10.74, allocations: 1.721 MB / 3.527 GB, free: 23.23 MB / 490.7 MB Notification: Performance of pre-optimization done (n=154): time 6.171e-06/10.74, allocations: 4 kB / 3.527 GB, free: 23.22 MB / 490.7 MB Notification: Performance of matching and sorting (n=174): time 0.03599/10.78, allocations: 9.443 MB / 3.537 GB, free: 15.02 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001754/10.78, allocations: 290.2 kB / 3.537 GB, free: 14.67 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002347/10.78, allocations: 1.183 MB / 3.538 GB, free: 13.66 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004749/10.78, allocations: 57.7 kB / 3.538 GB, free: 13.59 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009705/10.78, allocations: 0.8275 MB / 3.539 GB, free: 12.84 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001063/10.78, allocations: 0.5977 MB / 3.54 GB, free: 12.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003064/10.78, allocations: 44 kB / 3.54 GB, free: 12.26 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002269/10.79, allocations: 392.9 kB / 3.54 GB, free: 11.89 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004425/10.79, allocations: 1.283 MB / 3.541 GB, free: 10.83 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005096/10.79, allocations: 1.839 MB / 3.543 GB, free: 9.008 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005098/10.8, allocations: 1.504 MB / 3.544 GB, free: 7.695 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.77e-05/10.8, allocations: 8 kB / 3.545 GB, free: 7.688 MB / 490.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01467/10.81, allocations: 4.327 MB / 3.549 GB, free: 3.953 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.3642/11.18, allocations: 6.277 MB / 3.555 GB, free: 77.88 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-05/11.18, allocations: 16.16 kB / 3.555 GB, free: 77.88 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05836/11.24, allocations: 3.648 MB / 3.558 GB, free: 77.84 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002437/11.24, allocations: 328.4 kB / 3.559 GB, free: 77.84 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01125/11.25, allocations: 4.06 MB / 3.563 GB, free: 77.29 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004087/11.26, allocations: 267.9 kB / 3.563 GB, free: 77.29 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004408/11.26, allocations: 109.6 kB / 3.563 GB, free: 77.29 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/11.26, allocations: 4.031 kB / 3.563 GB, free: 77.29 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01449/11.27, allocations: 3.937 MB / 3.567 GB, free: 77.25 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.733e-05/11.27, allocations: 16.38 kB / 3.567 GB, free: 77.25 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01708/11.29, allocations: 2.433 MB / 3.569 GB, free: 77.22 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002808/11.29, allocations: 370.6 kB / 3.57 GB, free: 77.21 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009637/11.3, allocations: 3.337 MB / 3.573 GB, free: 76.67 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004138/11.3, allocations: 267.3 kB / 3.573 GB, free: 76.67 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007901/11.3, allocations: 105.8 kB / 3.573 GB, free: 76.67 MB / 490.7 MB 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.002211/11.31, allocations: 0.6938 MB / 3.574 GB, free: 76.48 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005724/11.31, allocations: 169.3 kB / 3.574 GB, free: 76.48 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01602/11.32, allocations: 6.855 MB / 3.581 GB, free: 76.13 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.512e-05/11.32, allocations: 72.08 kB / 3.581 GB, free: 76.13 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.375e-05/11.32, allocations: 5.484 kB / 3.581 GB, free: 76.13 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01176/11.34, allocations: 5.51 MB / 3.586 GB, free: 75.43 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02256/11.36, allocations: 9.562 MB / 3.596 GB, free: 74.92 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.373e-05/11.36, allocations: 0.9375 kB / 3.596 GB, free: 74.92 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003802/11.36, allocations: 445.4 kB / 3.596 GB, free: 74.92 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00304/11.37, allocations: 476.3 kB / 3.596 GB, free: 74.87 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005569/11.37, allocations: 66.92 kB / 3.597 GB, free: 74.87 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002248/11.37, allocations: 3.214 MB / 3.6 GB, free: 72.27 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/11.37, allocations: 1.938 kB / 3.6 GB, free: 72.27 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01802/11.39, allocations: 7.13 MB / 3.607 GB, free: 71.65 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002559/11.39, allocations: 0.7715 MB / 3.607 GB, free: 71.41 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007553/11.39, allocations: 49.8 kB / 3.607 GB, free: 71.41 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003304/11.39, allocations: 217 kB / 3.608 GB, free: 71.41 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006014/11.39, allocations: 179.9 kB / 3.608 GB, free: 71.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002342/11.39, allocations: 70.41 kB / 3.608 GB, free: 71.4 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00262/11.4, allocations: 1.245 MB / 3.609 GB, free: 71.29 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.81e-07/11.4, allocations: 3.172 kB / 3.609 GB, free: 71.29 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01103/11.41, allocations: 2.348 MB / 3.611 GB, free: 71.29 MB / 490.7 MB 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.02952/11.44, allocations: 9.932 MB / 3.621 GB, free: 68.87 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01739/11.45, allocations: 5.488 MB / 3.626 GB, free: 67.18 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.202e-05/11.45, allocations: 0.8438 kB / 3.626 GB, free: 67.18 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006029/11.46, allocations: 2.366 MB / 3.629 GB, free: 66.28 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007195/11.47, allocations: 0.7868 MB / 3.63 GB, free: 66.12 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02811/11.5, allocations: 21.18 MB / 3.65 GB, free: 49.7 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002291/11.5, allocations: 2.056 MB / 3.652 GB, free: 48.85 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.005689/11.5, allocations: 1.456 MB / 3.654 GB, free: 48.82 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002917/11.51, allocations: 1.139 MB / 3.655 GB, free: 47.89 MB / 490.7 MB Notification: Performance of SimCode: time 1.092e-06/11.51, allocations: 0 / 3.655 GB, free: 47.89 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6294/12.14, allocations: 106.8 MB / 3.759 GB, free: 71.67 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002926/12.14, allocations: 271 kB / 3.759 GB, free: 71.31 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.205/19.34, allocations: 0 / 3.759 GB, free: 71.31 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat does not exist to compare? outputFormat=mat