Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.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.SeriesPipes13,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13",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.01564/0.01564, allocations: 174.2 kB / 15.12 MB, free: 5.977 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.011/2.011, 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.002141/0.002141, 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.2559/0.2559, allocations: 40 MB / 340.8 MB, free: 11.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004757/0.0004757, allocations: 15.03 kB / 406.3 MB, free: 51.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1084, allocations: 54.86 MB / 461.1 MB, free: 3.211 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.019/8.128, allocations: 2.658 GB / 3.109 GB, free: 4.871 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002658/8.128, allocations: 83.14 kB / 3.109 GB, free: 4.828 MB / 490.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Interfaces.mo:327:3-329:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd - DAE generated: time 4.857/12.99, allocations: 0.8626 GB / 3.971 GB, free: 37.49 MB / 0.5105 GB Notification: Performance of FrontEnd: time 4.779e-06/12.99, allocations: 0 / 3.971 GB, free: 37.49 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002921/12.99, allocations: 67.45 kB / 3.971 GB, free: 37.48 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: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01914/13.01, allocations: 4.136 MB / 3.975 GB, free: 35.44 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/13.01, allocations: 11.38 kB / 3.975 GB, free: 35.44 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001489/13.01, allocations: 296.8 kB / 3.976 GB, free: 35.39 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009164/13.02, allocations: 0.8401 MB / 3.976 GB, free: 35.25 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008516/13.02, allocations: 2.116 MB / 3.978 GB, free: 34.8 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003363/13.02, allocations: 176.6 kB / 3.979 GB, free: 34.79 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001021/13.03, allocations: 200.8 kB / 3.979 GB, free: 34.79 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01283/13.04, allocations: 3.581 MB / 3.982 GB, free: 34.23 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.455e-05/13.04, allocations: 10.19 kB / 3.982 GB, free: 34.23 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004192/13.04, allocations: 87.81 kB / 3.982 GB, free: 34.23 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003168/13.04, allocations: 165 kB / 3.983 GB, free: 34.23 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01286/13.05, allocations: 3.287 MB / 3.986 GB, free: 34.21 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.02948/13.08, allocations: 15.05 MB / 4 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008625/13.09, allocations: 2.302 MB / 4.003 GB, free: 25.15 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05675/13.15, allocations: 18.82 MB / 4.021 GB, free: 29.13 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006911/13.15, allocations: 1.634 MB / 4.023 GB, free: 29.02 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=155): time 5.741e-06/13.15, allocations: 0 / 4.023 GB, free: 29.02 MB / 0.5261 GB Notification: Performance of matching and sorting (n=171): time 0.0329/13.19, allocations: 8.181 MB / 4.031 GB, free: 27.95 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001966/13.19, allocations: 281.7 kB / 4.031 GB, free: 27.64 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003078/13.19, allocations: 1.415 MB / 4.032 GB, free: 27.46 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005911/13.19, allocations: 58.92 kB / 4.032 GB, free: 27.43 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001017/13.19, allocations: 0.977 MB / 4.033 GB, free: 27.02 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009365/13.19, allocations: 0.5849 MB / 4.034 GB, free: 26.65 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002726/13.19, allocations: 40.25 kB / 4.034 GB, free: 26.65 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002589/13.19, allocations: 388.9 kB / 4.034 GB, free: 26.34 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003782/13.2, allocations: 1.15 MB / 4.035 GB, free: 26.33 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004394/13.2, allocations: 1.642 MB / 4.037 GB, free: 25.76 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004381/13.21, allocations: 1.39 MB / 4.038 GB, free: 25.68 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.625e-05/13.21, allocations: 3.969 kB / 4.038 GB, free: 25.68 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01434/13.22, allocations: 3.933 MB / 4.042 GB, free: 25.44 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002322/13.22, allocations: 5.328 MB / 4.047 GB, free: 19.78 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.273e-05/13.22, allocations: 11.5 kB / 4.047 GB, free: 19.78 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02565/13.25, allocations: 2.93 MB / 4.05 GB, free: 19.68 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002193/13.25, allocations: 316.6 kB / 4.051 GB, free: 19.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008893/13.26, allocations: 3.501 MB / 4.054 GB, free: 18.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003645/13.26, allocations: 260.6 kB / 4.054 GB, free: 18.72 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003119/13.26, allocations: 100.7 kB / 4.054 GB, free: 18.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/13.26, allocations: 5.688 kB / 4.054 GB, free: 18.7 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01037/13.27, allocations: 3.527 MB / 4.058 GB, free: 17.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.128e-05/13.28, allocations: 16.92 kB / 4.058 GB, free: 17.44 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01183/13.29, allocations: 1.769 MB / 4.06 GB, free: 16.92 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002517/13.29, allocations: 358.5 kB / 4.06 GB, free: 16.62 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006666/13.3, allocations: 2.763 MB / 4.063 GB, free: 14.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003474/13.3, allocations: 259.8 kB / 4.063 GB, free: 14.03 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002869/13.3, allocations: 99.45 kB / 4.063 GB, free: 13.94 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 23 (pipe3.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 158 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * 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 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.001888/13.3, allocations: 0.7126 MB / 4.064 GB, free: 13.28 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005266/13.3, allocations: 208.8 kB / 4.064 GB, free: 13.07 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01589/13.32, allocations: 7.768 MB / 4.071 GB, free: 6.176 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001086/13.32, allocations: 88.67 kB / 4.072 GB, free: 6.121 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/13.32, allocations: 0 / 4.072 GB, free: 6.121 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.4565/13.77, allocations: 6.671 MB / 4.078 GB, free: 50.75 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02579/13.8, allocations: 10.91 MB / 4.089 GB, free: 50.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.921e-05/13.8, allocations: 0.8438 kB / 4.089 GB, free: 50.18 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003452/13.8, allocations: 403.4 kB / 4.089 GB, free: 50.18 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002513/13.81, allocations: 379.3 kB / 4.089 GB, free: 50.14 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004544/13.81, allocations: 64.53 kB / 4.09 GB, free: 50.14 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001872/13.81, allocations: 2.573 MB / 4.092 GB, free: 48.08 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/13.81, allocations: 1 kB / 4.092 GB, free: 48.08 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01669/13.83, allocations: 7.224 MB / 4.099 GB, free: 47.64 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002545/13.83, allocations: 0.7524 MB / 4.1 GB, free: 47.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007235/13.83, allocations: 59.62 kB / 4.1 GB, free: 47.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002842/13.83, allocations: 192 kB / 4.1 GB, free: 47.49 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004693/13.83, allocations: 149.7 kB / 4.1 GB, free: 47.49 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002214/13.83, allocations: 62.75 kB / 4.1 GB, free: 47.49 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00259/13.84, allocations: 1.193 MB / 4.101 GB, free: 47.34 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.5e-07/13.84, allocations: 0.5469 kB / 4.101 GB, free: 47.34 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01244/13.85, allocations: 2.768 MB / 4.104 GB, free: 47.34 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,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse27.region3boundary,$cse28.region3boundary,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse39.region3boundary,$cse40.region3boundary,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * Number of discrete states: 6 (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 (197): * Single equations (assignments): 167 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 25 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0308/13.88, allocations: 10.49 MB / 4.114 GB, free: 46.12 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01531/13.89, allocations: 5.374 MB / 4.12 GB, free: 45.81 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.848e-06/13.89, allocations: 3.5 kB / 4.12 GB, free: 45.81 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005476/13.9, allocations: 2.442 MB / 4.122 GB, free: 45.73 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007597/13.91, allocations: 0.8649 MB / 4.123 GB, free: 45.72 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3971/14.3, allocations: 142 MB / 4.262 GB, free: 4.02 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002255/14.31, allocations: 2.31 MB / 4.264 GB, free: 2.211 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005385/14.31, allocations: 1.724 MB / 4.265 GB, free: 1.176 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002754/14.32, allocations: 1.322 MB / 4.267 GB, free: 15.99 MB / 0.5417 GB Notification: Performance of SimCode: time 1.693e-06/14.32, allocations: 0 / 4.267 GB, free: 15.99 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7313/15.05, allocations: 121.3 MB / 4.385 GB, free: 55.48 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002731/15.05, allocations: 259.4 kB / 4.385 GB, free: 55.14 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.652/23.7, allocations: 0 / 4.385 GB, free: 55.14 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13_res.mat does not exist to compare? outputFormat=mat