Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.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.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",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.01014/0.01014, allocations: 174.3 kB / 15.12 MB, free: 6 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 1.87/1.87, allocations: 194.5 MB / 210.3 MB, free: 11.39 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.002003/0.002002, allocations: 116.6 kB / 255.6 MB, free: 14.52 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.4425/0.4426, allocations: 40 MB / 340.8 MB, free: 14.99 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004678/0.0004675, allocations: 16 kB / 406.3 MB, free: 13.44 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.35/0.3506, allocations: 54.86 MB / 461.1 MB, free: 24.57 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.047/8.398, allocations: 2.678 GB / 3.128 GB, free: 12 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002715/8.398, allocations: 84.2 kB / 3.128 GB, free: 11.96 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.93/14.33, allocations: 1.01 GB / 4.138 GB, free: 38.04 MB / 0.5261 GB Notification: Performance of FrontEnd: time 4.128e-06/14.33, allocations: 3.672 kB / 4.138 GB, free: 38.04 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003884/14.33, allocations: 71.42 kB / 4.138 GB, free: 38.03 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: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.02437/14.35, allocations: 4.538 MB / 4.143 GB, free: 36.05 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.787e-05/14.35, allocations: 7.406 kB / 4.143 GB, free: 36.05 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001965/14.36, allocations: 328.3 kB / 4.143 GB, free: 36 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01071/14.37, allocations: 0.9463 MB / 4.144 GB, free: 35.85 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009709/14.38, allocations: 2.218 MB / 4.146 GB, free: 35.39 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003679/14.38, allocations: 196.5 kB / 4.146 GB, free: 35.38 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001115/14.38, allocations: 223.3 kB / 4.147 GB, free: 35.38 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01407/14.39, allocations: 3.902 MB / 4.15 GB, free: 34.77 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001067/14.39, allocations: 5.75 kB / 4.15 GB, free: 34.77 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000489/14.39, allocations: 101 kB / 4.151 GB, free: 34.77 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003282/14.39, allocations: 170.5 kB / 4.151 GB, free: 34.76 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01493/14.41, allocations: 3.617 MB / 4.154 GB, free: 34.73 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.03675/14.44, allocations: 16.73 MB / 4.171 GB, free: 24.63 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01195/14.46, allocations: 3.147 MB / 4.174 GB, free: 24.02 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05797/14.51, allocations: 18.57 MB / 4.192 GB, free: 28.46 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008076/14.52, allocations: 1.866 MB / 4.194 GB, free: 28.33 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=192): time 6.863e-06/14.52, allocations: 0 / 4.194 GB, free: 28.33 MB / 0.5417 GB Notification: Performance of matching and sorting (n=212): time 0.0494/14.57, allocations: 10.28 MB / 4.204 GB, free: 27.01 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001856/14.57, allocations: 265.9 kB / 4.204 GB, free: 26.72 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003319/14.58, allocations: 1.448 MB / 4.205 GB, free: 26.49 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.000785/14.58, allocations: 64.61 kB / 4.205 GB, free: 26.46 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001158/14.58, allocations: 1.046 MB / 4.206 GB, free: 26.04 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001148/14.58, allocations: 0.7115 MB / 4.207 GB, free: 25.59 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000302/14.58, allocations: 50.81 kB / 4.207 GB, free: 25.59 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002402/14.58, allocations: 395.9 kB / 4.208 GB, free: 25.28 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004173/14.58, allocations: 1.268 MB / 4.209 GB, free: 25.27 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00488/14.59, allocations: 1.816 MB / 4.211 GB, free: 24.72 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004971/14.59, allocations: 1.538 MB / 4.212 GB, free: 24.64 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.269e-05/14.59, allocations: 3.375 kB / 4.212 GB, free: 24.64 MB / 0.5417 GB Notification: Performance of matching and sorting (n=309) (initialization): time 0.01362/14.61, allocations: 3.712 MB / 4.216 GB, free: 24.34 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002445/14.61, allocations: 5.658 MB / 4.221 GB, free: 18.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-05/14.61, allocations: 15.25 kB / 4.221 GB, free: 18.41 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002197/14.61, allocations: 347.7 kB / 4.222 GB, free: 18.37 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005257/14.62, allocations: 0.6007 MB / 4.222 GB, free: 18.37 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003198/14.62, allocations: 3.095 MB / 4.225 GB, free: 15.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005883/14.63, allocations: 346.2 kB / 4.226 GB, free: 15.76 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001157/14.63, allocations: 125.7 kB / 4.226 GB, free: 15.76 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/14.63, allocations: 2.719 kB / 4.226 GB, free: 15.76 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0131/14.64, allocations: 3.443 MB / 4.229 GB, free: 15.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.307e-05/14.64, allocations: 12.03 kB / 4.229 GB, free: 15.61 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001875/14.64, allocations: 353.6 kB / 4.229 GB, free: 15.57 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004973/14.65, allocations: 0.5905 MB / 4.23 GB, free: 15.57 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003058/14.65, allocations: 3.098 MB / 4.233 GB, free: 12.97 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005318/14.66, allocations: 330.9 kB / 4.233 GB, free: 12.96 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009138/14.66, allocations: 123.5 kB / 4.233 GB, free: 12.96 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 31 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.medium.phase,junctionVolume.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (287): * Single equations (assignments): 280 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * 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 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002861/14.66, allocations: 0.7863 MB / 4.234 GB, free: 12.7 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008163/14.66, allocations: 227.3 kB / 4.234 GB, free: 12.58 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02057/14.68, allocations: 8.226 MB / 4.242 GB, free: 11.8 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001169/14.68, allocations: 92.92 kB / 4.242 GB, free: 11.8 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.652e-05/14.68, allocations: 3.469 kB / 4.242 GB, free: 11.8 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01687/14.7, allocations: 7.141 MB / 4.249 GB, free: 10.87 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03337/14.73, allocations: 13.16 MB / 4.262 GB, free: 9.219 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.954e-05/14.73, allocations: 7.281 kB / 4.262 GB, free: 9.219 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003924/14.74, allocations: 484.1 kB / 4.263 GB, free: 9.219 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002957/14.74, allocations: 486.1 kB / 4.263 GB, free: 9.168 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007561/14.74, allocations: 77.73 kB / 4.263 GB, free: 9.168 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003189/14.74, allocations: 3.226 MB / 4.266 GB, free: 6.566 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.959e-06/14.74, allocations: 5.406 kB / 4.266 GB, free: 6.566 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02025/14.76, allocations: 8.492 MB / 4.275 GB, free: 5.09 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00325/14.77, allocations: 0.797 MB / 4.276 GB, free: 4.746 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001097/14.77, allocations: 68.14 kB / 4.276 GB, free: 4.742 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004076/14.77, allocations: 239.9 kB / 4.276 GB, free: 4.711 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000816/14.77, allocations: 188.5 kB / 4.276 GB, free: 4.707 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003292/14.77, allocations: 97.31 kB / 4.276 GB, free: 4.703 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002948/14.78, allocations: 1.199 MB / 4.277 GB, free: 4.559 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.313e-06/14.78, allocations: 0 / 4.277 GB, free: 4.559 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0183/14.79, allocations: 2.913 MB / 4.28 GB, free: 4.199 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h,junctionVolume.medium.h) * Number of discrete variables: 59 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.medium.phase,junctionVolume.medium.phase) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (237): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 24 * When equations: 0 * 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,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.05718/14.85, allocations: 13.31 MB / 4.293 GB, free: 13.92 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02823/14.88, allocations: 5.948 MB / 4.299 GB, free: 11.79 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.115e-05/14.88, allocations: 4.5 kB / 4.299 GB, free: 11.79 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.012/14.89, allocations: 3.035 MB / 4.302 GB, free: 10.5 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01503/14.91, allocations: 1.129 MB / 4.303 GB, free: 10.24 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8802/15.79, allocations: 143.7 MB / 4.443 GB, free: 40.12 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00347/15.79, allocations: 2.388 MB / 4.446 GB, free: 39.31 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.008825/15.8, allocations: 2.523 MB / 4.448 GB, free: 39.21 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003689/15.8, allocations: 1.432 MB / 4.45 GB, free: 39.21 MB / 0.5573 GB Notification: Performance of SimCode: time 3.346e-06/15.8, allocations: 3.719 kB / 4.45 GB, free: 39.21 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7756/16.58, allocations: 124.2 MB / 4.571 GB, free: 68.15 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003021/16.58, allocations: 261.8 kB / 4.571 GB, free: 67.82 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.609/25.19, allocations: 0 / 4.571 GB, free: 67.82 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat does not exist to compare? outputFormat=mat