Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.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.SeriesPipes12,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",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.01064/0.01064, allocations: 176.1 kB / 15.12 MB, free: 5.973 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.087/2.087, allocations: 194.5 MB / 210.3 MB, free: 7.617 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.002028/0.002026, allocations: 116.7 kB / 255.6 MB, free: 10.24 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.26/0.26, allocations: 40.01 MB / 340.8 MB, free: 11.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004814/0.0004813, allocations: 10.62 kB / 406.3 MB, free: 51.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1013, allocations: 54.88 MB / 461.1 MB, free: 3.207 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.131/8.232, allocations: 2.658 GB / 3.108 GB, free: 3.688 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002726/8.232, allocations: 81.47 kB / 3.109 GB, free: 3.648 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.686/12.92, allocations: 0.8006 GB / 3.909 GB, free: 37.07 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.485e-06/12.92, allocations: 3 kB / 3.909 GB, free: 37.07 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003327/12.92, allocations: 60.67 kB / 3.909 GB, free: 37.07 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.01984/12.94, allocations: 4.138 MB / 3.913 GB, free: 35.21 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/12.94, allocations: 11.75 kB / 3.913 GB, free: 35.21 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00148/12.94, allocations: 292.5 kB / 3.914 GB, free: 35.16 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009065/12.95, allocations: 0.8481 MB / 3.914 GB, free: 35.03 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00829/12.96, allocations: 2.113 MB / 3.916 GB, free: 34.57 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003327/12.96, allocations: 181.4 kB / 3.917 GB, free: 34.56 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009742/12.96, allocations: 198.7 kB / 3.917 GB, free: 34.56 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0122/12.97, allocations: 3.583 MB / 3.92 GB, free: 34.01 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001021/12.97, allocations: 7.562 kB / 3.92 GB, free: 34.01 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00043/12.97, allocations: 86.81 kB / 3.92 GB, free: 34.01 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003009/12.97, allocations: 158 kB / 3.921 GB, free: 34 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01282/12.98, allocations: 3.291 MB / 3.924 GB, free: 33.99 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.0289/13.01, allocations: 15.05 MB / 3.938 GB, free: 24.97 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008914/13.02, allocations: 2.297 MB / 3.941 GB, free: 24.94 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05662/13.08, allocations: 18.82 MB / 3.959 GB, free: 13.19 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007661/13.09, allocations: 1.633 MB / 3.961 GB, free: 29.09 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=155): time 5.491e-06/13.09, allocations: 0 / 3.961 GB, free: 29.09 MB / 0.5261 GB Notification: Performance of matching and sorting (n=171): time 0.03484/13.12, allocations: 8.185 MB / 3.969 GB, free: 28.06 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001841/13.12, allocations: 284.9 kB / 3.969 GB, free: 27.75 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003378/13.13, allocations: 1.408 MB / 3.97 GB, free: 27.58 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005904/13.13, allocations: 58.52 kB / 3.97 GB, free: 27.55 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001205/13.13, allocations: 0.9854 MB / 3.971 GB, free: 27.14 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001038/13.13, allocations: 0.5838 MB / 3.972 GB, free: 26.77 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003202/13.13, allocations: 40.31 kB / 3.972 GB, free: 26.77 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002599/13.13, allocations: 391.5 kB / 3.972 GB, free: 26.46 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003897/13.13, allocations: 1.153 MB / 3.973 GB, free: 26.45 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004613/13.14, allocations: 1.647 MB / 3.975 GB, free: 25.9 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004616/13.14, allocations: 1.38 MB / 3.976 GB, free: 25.84 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.211e-05/13.14, allocations: 6.562 kB / 3.976 GB, free: 25.84 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01367/13.16, allocations: 3.934 MB / 3.98 GB, free: 25.62 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002161/13.16, allocations: 5.323 MB / 3.985 GB, free: 20.01 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.189e-05/13.16, allocations: 18.66 kB / 3.985 GB, free: 20.01 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02522/13.18, allocations: 2.927 MB / 3.988 GB, free: 19.98 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002322/13.19, allocations: 315.4 kB / 3.989 GB, free: 19.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01024/13.2, allocations: 3.492 MB / 3.992 GB, free: 19.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004105/13.2, allocations: 265.7 kB / 3.992 GB, free: 19.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006943/13.2, allocations: 106.2 kB / 3.992 GB, free: 19.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/13.2, allocations: 5.062 kB / 3.992 GB, free: 19.4 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01214/13.21, allocations: 3.529 MB / 3.996 GB, free: 19.31 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.862e-05/13.21, allocations: 15.09 kB / 3.996 GB, free: 19.31 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01254/13.23, allocations: 1.761 MB / 3.998 GB, free: 19.29 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002673/13.23, allocations: 360.1 kB / 3.998 GB, free: 19.29 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007202/13.24, allocations: 2.75 MB / 4.001 GB, free: 18.74 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00383/13.24, allocations: 264 kB / 4.001 GB, free: 18.73 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006298/13.24, allocations: 103.3 kB / 4.001 GB, free: 18.73 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.002662/13.24, allocations: 0.7165 MB / 4.002 GB, free: 18.49 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009126/13.24, allocations: 200.4 kB / 4.002 GB, free: 18.39 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01769/13.26, allocations: 7.773 MB / 4.009 GB, free: 17.62 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001025/13.26, allocations: 90.08 kB / 4.009 GB, free: 17.62 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/13.26, allocations: 1.219 kB / 4.009 GB, free: 17.62 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0137/13.28, allocations: 6.669 MB / 4.016 GB, free: 16.8 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02323/13.3, allocations: 10.91 MB / 4.027 GB, free: 16.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.838e-05/13.3, allocations: 7.062 kB / 4.027 GB, free: 16.04 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003374/13.3, allocations: 397.5 kB / 4.027 GB, free: 16.04 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002398/13.3, allocations: 378.1 kB / 4.027 GB, free: 16 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005294/13.31, allocations: 64.97 kB / 4.027 GB, free: 16 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002164/13.31, allocations: 2.572 MB / 4.03 GB, free: 13.93 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/13.31, allocations: 3.875 kB / 4.03 GB, free: 13.93 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01655/13.32, allocations: 7.236 MB / 4.037 GB, free: 11.91 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00232/13.33, allocations: 0.7472 MB / 4.038 GB, free: 11.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000832/13.33, allocations: 59.12 kB / 4.038 GB, free: 11.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003212/13.33, allocations: 198.9 kB / 4.038 GB, free: 11.38 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006897/13.33, allocations: 143.2 kB / 4.038 GB, free: 11.36 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002428/13.33, allocations: 70.8 kB / 4.038 GB, free: 11.34 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002743/13.33, allocations: 1.19 MB / 4.039 GB, free: 10.89 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.31e-07/13.33, allocations: 0 / 4.039 GB, free: 10.89 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01284/13.35, allocations: 2.762 MB / 4.042 GB, free: 10.3 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.03169/13.38, allocations: 10.49 MB / 4.052 GB, free: 6.078 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01664/13.4, allocations: 5.381 MB / 4.058 GB, free: 4.152 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.165e-05/13.4, allocations: 6.75 kB / 4.058 GB, free: 4.148 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005835/13.4, allocations: 2.445 MB / 4.06 GB, free: 3.105 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007963/13.41, allocations: 0.8646 MB / 4.061 GB, free: 2.676 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8812/14.29, allocations: 142.3 MB / 4.2 GB, free: 41.55 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002716/14.29, allocations: 2.309 MB / 4.202 GB, free: 40.75 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.005653/14.3, allocations: 1.719 MB / 4.204 GB, free: 40.67 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002942/14.3, allocations: 1.309 MB / 4.205 GB, free: 40.67 MB / 0.5417 GB Notification: Performance of SimCode: time 1.513e-06/14.3, allocations: 0 / 4.205 GB, free: 40.67 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7191/15.02, allocations: 121.3 MB / 4.323 GB, free: 75.03 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002435/15.02, allocations: 252.5 kB / 4.324 GB, free: 74.7 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.542/23.56, allocations: 6.406 kB / 4.324 GB, free: 74.69 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12_res.mat does not exist to compare? outputFormat=mat