Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.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.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",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.01382/0.01382, allocations: 176.1 kB / 15.12 MB, free: 5.93 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.976/1.976, 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.002007/0.002007, allocations: 124.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.2504/0.2504, allocations: 40 MB / 340.8 MB, free: 11.4 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004727/0.0004725, allocations: 14.36 kB / 406.3 MB, free: 51.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1069, allocations: 54.87 MB / 461.1 MB, free: 3.215 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.786/7.893, allocations: 2.656 GB / 3.106 GB, free: 7.559 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003134/7.893, allocations: 78.78 kB / 3.106 GB, free: 7.52 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.797/12.69, allocations: 0.8038 GB / 3.91 GB, free: 38.17 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.266e-06/12.69, allocations: 0 / 3.91 GB, free: 38.17 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003715/12.69, allocations: 67.45 kB / 3.91 GB, free: 38.16 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.02265/12.71, allocations: 4.256 MB / 3.914 GB, free: 36.29 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/12.71, allocations: 7.812 kB / 3.914 GB, free: 36.29 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0017/12.71, allocations: 296.9 kB / 3.915 GB, free: 36.24 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009266/12.72, allocations: 0.8362 MB / 3.915 GB, free: 36.1 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009423/12.73, allocations: 2.189 MB / 3.918 GB, free: 35.64 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003798/12.73, allocations: 171.7 kB / 3.918 GB, free: 35.63 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001229/12.74, allocations: 203.3 kB / 3.918 GB, free: 35.63 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01487/12.75, allocations: 3.714 MB / 3.922 GB, free: 35.08 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001082/12.75, allocations: 8.625 kB / 3.922 GB, free: 35.08 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007047/12.75, allocations: 86.64 kB / 3.922 GB, free: 35.08 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003155/12.75, allocations: 168.2 kB / 3.922 GB, free: 35.07 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01409/12.77, allocations: 3.547 MB / 3.925 GB, free: 35.06 MB / 0.5105 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.03219/12.8, allocations: 14.77 MB / 3.94 GB, free: 26.45 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008427/12.81, allocations: 2.199 MB / 3.942 GB, free: 26.43 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05746/12.86, allocations: 18.88 MB / 3.96 GB, free: 14.59 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006795/12.87, allocations: 1.673 MB / 3.962 GB, free: 14.47 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001817/12.87, allocations: 197.7 kB / 3.962 GB, free: 14.38 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=162): time 7.344e-06/12.87, allocations: 0 / 3.962 GB, free: 14.38 MB / 0.5105 GB Notification: Performance of matching and sorting (n=174): time 0.04168/12.91, allocations: 9.13 MB / 3.971 GB, free: 13.09 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001497/12.91, allocations: 413.7 kB / 3.971 GB, free: 12.62 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003415/12.92, allocations: 1.505 MB / 3.973 GB, free: 12.44 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006134/12.92, allocations: 64.52 kB / 3.973 GB, free: 12.41 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001056/12.92, allocations: 0.9877 MB / 3.974 GB, free: 12.02 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009823/12.92, allocations: 0.5892 MB / 3.974 GB, free: 11.65 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002892/12.92, allocations: 38 kB / 3.974 GB, free: 11.65 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.00016/12.92, allocations: 388.9 kB / 3.975 GB, free: 11.34 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003737/12.92, allocations: 1.162 MB / 3.976 GB, free: 11.34 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004398/12.93, allocations: 1.629 MB / 3.978 GB, free: 10.83 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004448/12.93, allocations: 1.423 MB / 3.979 GB, free: 10.75 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.218e-05/12.93, allocations: 2.781 kB / 3.979 GB, free: 10.75 MB / 0.5105 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01301/12.95, allocations: 3.512 MB / 3.982 GB, free: 10.46 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.002273/12.95, allocations: 4.586 MB / 3.987 GB, free: 21.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.094e-05/12.95, allocations: 16.97 kB / 3.987 GB, free: 21.66 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008699/12.96, allocations: 0.9842 MB / 3.988 GB, free: 21.62 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003898/12.96, allocations: 478.2 kB / 3.988 GB, free: 21.62 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00422/12.97, allocations: 3.164 MB / 3.991 GB, free: 19.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0041/12.97, allocations: 241 kB / 3.992 GB, free: 19.52 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008299/12.97, allocations: 103.7 kB / 3.992 GB, free: 19.52 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/12.97, allocations: 3 kB / 3.992 GB, free: 19.52 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01153/12.98, allocations: 3.177 MB / 3.995 GB, free: 19.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.767e-05/12.98, allocations: 18.47 kB / 3.995 GB, free: 19.38 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002278/12.99, allocations: 362.5 kB / 3.995 GB, free: 19.35 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004113/12.99, allocations: 0.4906 MB / 3.996 GB, free: 19.35 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006246/13, allocations: 4.11 MB / 4 GB, free: 16.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004003/13, allocations: 234.4 kB / 4 GB, free: 16.51 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007181/13, allocations: 105.1 kB / 4 GB, free: 16.51 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.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,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.002577/13, allocations: 0.7621 MB / 4.001 GB, free: 16.25 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007513/13, allocations: 217.8 kB / 4.001 GB, free: 16.14 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0176/13.02, allocations: 7.837 MB / 4.009 GB, free: 15.39 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001073/13.02, allocations: 82.86 kB / 4.009 GB, free: 15.39 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/13.02, allocations: 3 kB / 4.009 GB, free: 15.39 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01442/13.04, allocations: 6.876 MB / 4.015 GB, free: 14.47 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02371/13.06, allocations: 10.9 MB / 4.026 GB, free: 13.67 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-05/13.06, allocations: 5.562 kB / 4.026 GB, free: 13.67 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002962/13.06, allocations: 345.9 kB / 4.026 GB, free: 13.67 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008209/13.07, allocations: 2.144 MB / 4.028 GB, free: 13.57 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005904/13.07, allocations: 68.52 kB / 4.029 GB, free: 13.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005055/13.08, allocations: 4.096 MB / 4.033 GB, free: 11.47 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/13.08, allocations: 3.5 kB / 4.033 GB, free: 11.47 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0174/13.09, allocations: 7.983 MB / 4.04 GB, free: 7.926 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002464/13.1, allocations: 0.7529 MB / 4.041 GB, free: 7.461 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008698/13.1, allocations: 57.97 kB / 4.041 GB, free: 7.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0032/13.1, allocations: 192.7 kB / 4.041 GB, free: 7.395 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005731/13.1, allocations: 135.7 kB / 4.041 GB, free: 7.379 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002592/13.1, allocations: 73.28 kB / 4.042 GB, free: 7.363 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002817/13.1, allocations: 1.255 MB / 4.043 GB, free: 6.887 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.12e-07/13.1, allocations: 0 / 4.043 GB, free: 6.887 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01388/13.12, allocations: 2.827 MB / 4.046 GB, free: 6.293 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.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) * 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 (168): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.03301/13.15, allocations: 10.54 MB / 4.056 GB, free: 2.027 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01657/13.17, allocations: 5.593 MB / 4.061 GB, free: 15.83 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.308e-06/13.17, allocations: 0 / 4.061 GB, free: 15.83 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006349/13.17, allocations: 2.433 MB / 4.064 GB, free: 14.76 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008237/13.18, allocations: 0.8907 MB / 4.065 GB, free: 14.57 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8158/14, allocations: 140.7 MB / 4.202 GB, free: 43.8 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00244/14, allocations: 2.298 MB / 4.204 GB, free: 43 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.006442/14.01, allocations: 2.197 MB / 4.206 GB, free: 42.91 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002743/14.01, allocations: 1.302 MB / 4.208 GB, free: 42.91 MB / 0.5417 GB Notification: Performance of SimCode: time 1.563e-06/14.01, allocations: 0 / 4.208 GB, free: 42.91 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.681/14.69, allocations: 115.6 MB / 4.32 GB, free: 75.8 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000286/14.69, allocations: 255.6 kB / 4.321 GB, free: 75.44 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.152/22.84, allocations: 3.312 kB / 4.321 GB, free: 75.44 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat