Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|N_pump.y|Source.ports.1..m_flow|Source.ports.1..p|Source.ports.1..h_outflow|Sink.ports.1..m_flow|Sink.ports.1..p|Sink.ports.1..h_outflow|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|valveOpening.y|Valve.port_b.m_flow|Valve.port_b.p|Valve.port_b.h_outflow|Valve.minLimiter.y",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.004048/0.004047, allocations: 345.9 kB / 15.93 MB, free: 6.223 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.158/3.158, allocations: 341.5 MB / 358.2 MB, free: 28.61 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003544/0.003543, allocations: 211.9 kB / 397.8 MB, free: 6.008 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.476/0.476, allocations: 76.1 MB / 0.5014 GB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006314/0.0006316, allocations: 12 kB / 0.5592 GB, free: 60.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08527/0.08594, allocations: 48.71 MB / 0.6067 GB, free: 11.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.681/7.767, allocations: 2.502 GB / 3.109 GB, free: 86.14 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002928/7.767, allocations: 98.69 kB / 3.109 GB, free: 86.08 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.117/9.884, allocations: 409.4 MB / 3.509 GB, free: 29.43 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.454e-06/9.884, allocations: 0 / 3.509 GB, free: 29.43 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.566e-05/9.884, allocations: 18.66 kB / 3.509 GB, free: 29.42 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.008159/9.893, allocations: 1.802 MB / 3.51 GB, free: 27.57 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/9.893, allocations: 8.031 kB / 3.51 GB, free: 27.56 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003821/9.896, allocations: 313.8 kB / 3.511 GB, free: 27.26 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001753/9.898, allocations: 0.5879 MB / 3.511 GB, free: 26.64 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.498e-05/9.898, allocations: 45.31 kB / 3.511 GB, free: 26.6 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/9.899, allocations: 52 kB / 3.511 GB, free: 26.55 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003825/9.902, allocations: 1.02 MB / 3.512 GB, free: 25.47 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.029e-05/9.902, allocations: 0 / 3.512 GB, free: 25.47 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001131/9.903, allocations: 28 kB / 3.512 GB, free: 25.44 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.001e-05/9.903, allocations: 25 kB / 3.512 GB, free: 25.42 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004265/9.907, allocations: 0.9365 MB / 3.513 GB, free: 24.48 MB / 442.7 MB 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.007475/9.914, allocations: 4.608 MB / 3.518 GB, free: 19.5 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00394/9.918, allocations: 0.7927 MB / 3.519 GB, free: 18.7 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001129/9.92, allocations: 293.4 kB / 3.519 GB, free: 18.41 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4504/10.37, allocations: 18.35 MB / 3.537 GB, free: 43.54 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.194e-05/10.37, allocations: 36.69 kB / 3.537 GB, free: 43.5 MB / 442.7 MB Notification: Performance of pre-optimization done (n=45): time 3.537e-06/10.37, allocations: 0 / 3.537 GB, free: 43.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=65): time 0.05385/10.42, allocations: 4.926 MB / 3.542 GB, free: 42.98 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.949e-05/10.42, allocations: 117.2 kB / 3.542 GB, free: 42.85 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009361/10.43, allocations: 470.1 kB / 3.542 GB, free: 42.73 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001993/10.43, allocations: 42.97 kB / 3.542 GB, free: 42.7 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003162/10.43, allocations: 351.9 kB / 3.543 GB, free: 42.54 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002731/10.43, allocations: 225 kB / 3.543 GB, free: 42.43 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.731e-05/10.43, allocations: 12.62 kB / 3.543 GB, free: 42.43 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000127/10.43, allocations: 373.1 kB / 3.543 GB, free: 42.12 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001827/10.43, allocations: 427.4 kB / 3.544 GB, free: 42.12 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002072/10.43, allocations: 0.6432 MB / 3.544 GB, free: 41.86 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002183/10.43, allocations: 482.2 kB / 3.545 GB, free: 41.85 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.076e-05/10.43, allocations: 2.438 kB / 3.545 GB, free: 41.85 MB / 442.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.005832/10.44, allocations: 1.381 MB / 3.546 GB, free: 41.75 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001911/10.44, allocations: 288.1 kB / 3.546 GB, free: 41.44 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.888e-05/10.44, allocations: 10.86 kB / 3.546 GB, free: 41.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01076/10.45, allocations: 1.135 MB / 3.547 GB, free: 41.42 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001323/10.45, allocations: 183.9 kB / 3.548 GB, free: 41.42 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00461/10.46, allocations: 1.774 MB / 3.549 GB, free: 40.38 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00181/10.46, allocations: 114.6 kB / 3.549 GB, free: 40.37 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001513/10.46, allocations: 48.09 kB / 3.549 GB, free: 40.37 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/10.46, allocations: 3.906 kB / 3.549 GB, free: 40.37 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006031/10.46, allocations: 1.335 MB / 3.551 GB, free: 40.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/10.46, allocations: 11.66 kB / 3.551 GB, free: 40.34 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006144/10.47, allocations: 0.7541 MB / 3.552 GB, free: 40.32 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001307/10.47, allocations: 192 kB / 3.552 GB, free: 40.32 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004153/10.48, allocations: 1.726 MB / 3.553 GB, free: 39.28 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001725/10.48, allocations: 118.6 kB / 3.553 GB, free: 39.28 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001595/10.48, allocations: 53.98 kB / 3.554 GB, free: 39.27 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 6 (Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase,Valve.state_b.phase,Valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 10,2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0007275/10.48, allocations: 298.9 kB / 3.554 GB, free: 39.09 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002469/10.48, allocations: 67.12 kB / 3.554 GB, free: 39.05 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01083/10.49, allocations: 3.719 MB / 3.558 GB, free: 38.8 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.333e-05/10.49, allocations: 40.72 kB / 3.558 GB, free: 38.8 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/10.49, allocations: 1.938 kB / 3.558 GB, free: 38.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.418e-05/10.49, allocations: 5.219 kB / 3.558 GB, free: 38.8 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01177/10.5, allocations: 4.926 MB / 3.562 GB, free: 38.36 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/10.5, allocations: 0 / 3.562 GB, free: 38.36 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009911/10.5, allocations: 139.3 kB / 3.563 GB, free: 38.36 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008883/10.51, allocations: 1.768 MB / 3.564 GB, free: 38.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001871/10.51, allocations: 24.42 kB / 3.564 GB, free: 38.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004778/10.52, allocations: 2.416 MB / 3.567 GB, free: 37.23 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/10.52, allocations: 4.906 kB / 3.567 GB, free: 37.23 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006491/10.52, allocations: 2.515 MB / 3.569 GB, free: 36.93 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008101/10.52, allocations: 332.3 kB / 3.569 GB, free: 36.78 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001855/10.52, allocations: 10.94 kB / 3.569 GB, free: 36.78 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001373/10.52, allocations: 116.2 kB / 3.57 GB, free: 36.77 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002138/10.53, allocations: 63.94 kB / 3.57 GB, free: 36.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.908e-05/10.53, allocations: 29.34 kB / 3.57 GB, free: 36.77 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007318/10.53, allocations: 415.4 kB / 3.57 GB, free: 36.68 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.81e-07/10.53, allocations: 0 / 3.57 GB, free: 36.68 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007637/10.53, allocations: 1.557 MB / 3.572 GB, free: 36.68 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 21 ($cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,2 18} Notification: Performance of Backend phase and start with SimCode phase: time 0.01201/10.55, allocations: 1.833 MB / 3.573 GB, free: 36.5 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009258/10.55, allocations: 2.098 MB / 3.575 GB, free: 36.46 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.604e-06/10.55, allocations: 0 / 3.575 GB, free: 36.46 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003375/10.56, allocations: 1.049 MB / 3.576 GB, free: 36.45 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003/10.56, allocations: 304.6 kB / 3.577 GB, free: 36.43 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09526/10.66, allocations: 40.35 MB / 3.616 GB, free: 34.62 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006412/10.66, allocations: 1.145 MB / 3.617 GB, free: 33.9 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001953/10.66, allocations: 0.6426 MB / 3.618 GB, free: 33.86 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002732/10.66, allocations: 60.62 kB / 3.618 GB, free: 33.86 MB / 442.7 MB Notification: Performance of SimCode: time 1.192e-06/10.66, allocations: 0 / 3.618 GB, free: 33.86 MB / 442.7 MB Notification: Performance of Templates: time 0.1112/10.77, allocations: 55.06 MB / 3.672 GB, free: 18.06 MB / 442.7 MB "" Variables in the reference:time,N_pump.y,Source.ports[1].m_flow,Source.ports[1].p,Source.ports[1].h_outflow,Sink.ports[1].m_flow,Sink.ports[1].p,Sink.ports[1].h_outflow,pump.port_b.m_flow,pump.port_b.p,pump.port_b.h_outflow,valveOpening.y,Valve.port_b.m_flow,Valve.port_b.p,Valve.port_b.h_outflow,Valve.minLimiter.y Variables in the result:N_pump.duration,N_pump.height,N_pump.offset,N_pump.startTime,N_pump.y,Sink.T,Sink.X[1],Sink.flowDirection,Sink.medium.preferredMediumStates,Sink.medium.standardOrderComponents,Sink.nPorts,Sink.p,Sink.p_in_internal,Sink.ports[1].h_outflow,Sink.ports[1].m_flow,Sink.ports[1].p,Source.T,Source.X[1],Source.flowDirection,Source.medium.preferredMediumStates,Source.medium.standardOrderComponents,Source.nPorts,Source.p,Source.p_in_internal,Source.ports[1].h_outflow,Source.ports[1].m_flow,Source.ports[1].p,Valve.Av,Valve.Cv,Valve.CvData,Valve.Kv,Valve.allowFlowReversal,Valve.checkValve,Valve.dp_nominal,Valve.dp_small,Valve.dp_start,Valve.dp_turbulent,Valve.filteredOpening,Valve.leakageOpening,Valve.m_flow_nominal,Valve.m_flow_small,Valve.m_flow_start,Valve.minLimiter.uMin,Valve.minLimiter.y,Valve.opening,Valve.opening_nominal,Valve.port_a_exposesState,Valve.port_b.h_outflow,Valve.port_b.m_flow,Valve.port_b.p,Valve.port_b_exposesState,Valve.rho_nominal,Valve.riseTime,Valve.showDesignFlowDirection,Valve.show_T,Valve.show_V_flow,Valve.use_Re,pump.N_const,pump.N_nominal,pump.T_start,pump.V,pump.V_flow_single_init,pump.X_start[1],pump.allowFlowReversal,pump.checkValve,pump.delta_head_init,pump.energyDynamics,pump.g,pump.h_start,pump.heatTransfer.T_ambient,pump.heatTransfer.k,pump.heatTransfer.n,pump.heatTransfer.use_k,pump.initialize_p,pump.m_flow,pump.m_flow_start,pump.massDynamics,pump.medium.h,pump.medium.p,pump.medium.preferredMediumStates,pump.medium.standardOrderComponents,pump.nParallel,pump.p_a_start,pump.p_b_start,pump.p_start,pump.port_a_exposesState,pump.port_b.h_outflow,pump.port_b.m_flow,pump.port_b.p,pump.port_b_exposesState,pump.rho_nominal,pump.showDesignFlowDirection,pump.show_NPSHa,pump.substanceDynamics,pump.traceDynamics,pump.use_HeatTransfer,pump.use_N_in,pump.use_T_start,pump.use_powerCharacteristic,system.T_ambient,system.T_start,system.allowFlowReversal,system.dp_small,system.energyDynamics,system.eps_m_flow,system.g,system.m_flow_nominal,system.m_flow_small,system.m_flow_start,system.massDynamics,system.momentumDynamics,system.p_ambient,system.p_start,system.substanceDynamics,system.traceDynamics,system.use_eps_Re,time,valveOpening.duration,valveOpening.height,valveOpening.offset,valveOpening.startTime,valveOpening.y