Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.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.SeriesPipes1,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1",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.009846/0.009846, allocations: 174.7 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.989/1.989, allocations: 194.5 MB / 210.3 MB, free: 7.809 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.002103/0.002103, allocations: 116.7 kB / 255.6 MB, free: 10.43 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.2969/0.2969, allocations: 40.01 MB / 340.8 MB, free: 11.43 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004898/0.0004899, allocations: 10.34 kB / 406.3 MB, free: 51.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1015, allocations: 54.88 MB / 461.1 MB, free: 3.234 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.929/8.031, allocations: 2.658 GB / 3.108 GB, free: 3.977 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003633/8.031, allocations: 84.39 kB / 3.109 GB, free: 3.934 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.635/12.67, allocations: 0.7993 GB / 3.908 GB, free: 36.58 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.805e-06/12.67, allocations: 0 / 3.908 GB, free: 36.58 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003247/12.67, allocations: 63.69 kB / 3.908 GB, free: 36.57 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.01997/12.69, allocations: 4.139 MB / 3.912 GB, free: 34.77 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/12.69, allocations: 10.97 kB / 3.912 GB, free: 34.77 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001551/12.69, allocations: 294.9 kB / 3.912 GB, free: 34.72 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00934/12.7, allocations: 0.8379 MB / 3.913 GB, free: 34.59 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009224/12.71, allocations: 2.116 MB / 3.915 GB, free: 34.14 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003937/12.71, allocations: 180.9 kB / 3.915 GB, free: 34.13 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001128/12.71, allocations: 195.8 kB / 3.915 GB, free: 34.13 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01337/12.72, allocations: 3.579 MB / 3.919 GB, free: 33.58 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001213/12.72, allocations: 7.375 kB / 3.919 GB, free: 33.58 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006304/12.72, allocations: 87.62 kB / 3.919 GB, free: 33.58 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003439/12.72, allocations: 164.2 kB / 3.919 GB, free: 33.58 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01312/12.74, allocations: 3.286 MB / 3.922 GB, free: 33.56 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.02997/12.77, allocations: 15.07 MB / 3.937 GB, free: 24.55 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009335/12.78, allocations: 2.312 MB / 3.939 GB, free: 24.51 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07205/12.85, allocations: 18.8 MB / 3.958 GB, free: 12.77 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00691/12.86, allocations: 1.636 MB / 3.959 GB, free: 12.68 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 5.59e-06/12.86, allocations: 0 / 3.959 GB, free: 12.68 MB / 0.5105 GB Notification: Performance of matching and sorting (n=171): time 0.04181/12.9, allocations: 8.885 MB / 3.968 GB, free: 11.64 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006456/12.9, allocations: 280.4 kB / 3.968 GB, free: 27.33 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003249/12.9, allocations: 1.416 MB / 3.97 GB, free: 27.15 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000599/12.9, allocations: 58.11 kB / 3.97 GB, free: 27.12 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001189/12.9, allocations: 0.9831 MB / 3.971 GB, free: 26.71 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001067/12.9, allocations: 0.5891 MB / 3.971 GB, free: 26.34 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003084/12.9, allocations: 38.12 kB / 3.971 GB, free: 26.34 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002421/12.9, allocations: 389.2 kB / 3.972 GB, free: 26.03 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003754/12.91, allocations: 1.151 MB / 3.973 GB, free: 26.02 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004333/12.91, allocations: 1.643 MB / 3.974 GB, free: 25.48 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004456/12.92, allocations: 1.381 MB / 3.976 GB, free: 25.42 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.153e-05/12.92, allocations: 6.594 kB / 3.976 GB, free: 25.42 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01153/12.93, allocations: 3.321 MB / 3.979 GB, free: 25.18 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002074/12.93, allocations: 5.331 MB / 3.984 GB, free: 19.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.391e-05/12.93, allocations: 17.55 kB / 3.984 GB, free: 19.56 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001613/12.93, allocations: 269.6 kB / 3.984 GB, free: 19.53 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004327/12.94, allocations: 0.5194 MB / 3.985 GB, free: 19.53 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002455/12.94, allocations: 2.5 MB / 3.987 GB, free: 17.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004092/12.94, allocations: 253.8 kB / 3.988 GB, free: 17.45 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007262/12.94, allocations: 109.1 kB / 3.988 GB, free: 17.45 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/12.94, allocations: 4.188 kB / 3.988 GB, free: 17.45 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01043/12.95, allocations: 3.06 MB / 3.991 GB, free: 17.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.977e-05/12.95, allocations: 13.5 kB / 3.991 GB, free: 17.34 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001507/12.96, allocations: 278 kB / 3.991 GB, free: 17.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004261/12.96, allocations: 0.5081 MB / 3.992 GB, free: 17.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002222/12.96, allocations: 2.508 MB / 3.994 GB, free: 15.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003801/12.97, allocations: 260.5 kB / 3.994 GB, free: 15.21 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006636/12.97, allocations: 103.8 kB / 3.994 GB, free: 15.21 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 (251): * Single equations (assignments): 244 * 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: 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 prepare postOptimizeDAE: time 0.002405/12.97, allocations: 0.7274 MB / 3.995 GB, free: 14.98 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006735/12.97, allocations: 201.9 kB / 3.995 GB, free: 14.88 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01708/12.99, allocations: 7.764 MB / 4.003 GB, free: 14.12 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000116/12.99, allocations: 85.45 kB / 4.003 GB, free: 14.12 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.307e-05/12.99, allocations: 0 / 4.003 GB, free: 14.12 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0142/13, allocations: 6.674 MB / 4.009 GB, free: 13.29 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.024/13.03, allocations: 10.91 MB / 4.02 GB, free: 12.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.995e-05/13.03, allocations: 0 / 4.02 GB, free: 12.53 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003371/13.03, allocations: 406.1 kB / 4.02 GB, free: 12.53 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002431/13.03, allocations: 387 kB / 4.021 GB, free: 12.49 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005453/13.03, allocations: 61.3 kB / 4.021 GB, free: 12.49 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002198/13.04, allocations: 2.571 MB / 4.023 GB, free: 10.41 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/13.04, allocations: 1.594 kB / 4.023 GB, free: 10.41 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01664/13.05, allocations: 7.232 MB / 4.03 GB, free: 9.773 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002354/13.05, allocations: 0.7508 MB / 4.031 GB, free: 9.438 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008696/13.06, allocations: 49.77 kB / 4.031 GB, free: 9.438 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003268/13.06, allocations: 194.4 kB / 4.031 GB, free: 9.43 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006485/13.06, allocations: 148.1 kB / 4.032 GB, free: 9.43 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000266/13.06, allocations: 74.36 kB / 4.032 GB, free: 9.43 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002682/13.06, allocations: 1.183 MB / 4.033 GB, free: 9.285 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.72e-07/13.06, allocations: 2.406 kB / 4.033 GB, free: 9.285 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01446/13.08, allocations: 2.765 MB / 4.035 GB, free: 8.887 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.03214/13.11, allocations: 10.49 MB / 4.046 GB, free: 4.859 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01506/13.12, allocations: 5.289 MB / 4.051 GB, free: 3.012 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.856e-06/13.12, allocations: 0 / 4.051 GB, free: 3.012 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00591/13.13, allocations: 2.439 MB / 4.053 GB, free: 1.977 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007981/13.14, allocations: 0.8725 MB / 4.054 GB, free: 1.785 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7991/13.94, allocations: 142 MB / 4.193 GB, free: 43.43 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002353/13.94, allocations: 2.308 MB / 4.195 GB, free: 42.62 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.007359/13.95, allocations: 2.646 MB / 4.198 GB, free: 42.53 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002874/13.95, allocations: 1.325 MB / 4.199 GB, free: 42.53 MB / 0.5417 GB Notification: Performance of SimCode: time 9.62e-07/13.95, allocations: 0 / 4.199 GB, free: 42.53 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7032/14.65, allocations: 111.3 MB / 4.308 GB, free: 71.36 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003323/14.65, allocations: 252.6 kB / 4.308 GB, free: 71.03 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.658/23.31, allocations: 1.312 kB / 4.308 GB, free: 71.03 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1_res.mat does not exist to compare? outputFormat=mat