Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.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.Valves.TestValveCompressible,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|V1.minLimiter.y|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.003881/0.003887, allocations: 348.4 kB / 15.94 MB, free: 6.215 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.489/3.489, allocations: 341.5 MB / 358.2 MB, free: 12.55 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003782/0.003782, allocations: 229.2 kB / 397.9 MB, free: 4.902 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4898/0.4898, allocations: 76.1 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004691/0.0004692, allocations: 12 kB / 0.5592 GB, free: 53.46 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08493/0.08543, allocations: 48.7 MB / 0.6067 GB, free: 4.645 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible): time 0.3009/0.3864, allocations: 26.33 MB / 0.6325 GB, free: 77.16 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02887/0.4154, allocations: 15.74 MB / 0.6478 GB, free: 66.34 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009419/0.4164, allocations: 14.41 kB / 0.6478 GB, free: 66.33 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001308/0.4177, allocations: 236.2 kB / 0.6481 GB, free: 66.21 MB / 362.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.0132/0.4309, allocations: 2.974 MB / 0.651 GB, free: 64.03 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01278/0.4438, allocations: 2.974 MB / 0.6539 GB, free: 62 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001714/0.4455, allocations: 1.062 MB / 0.6549 GB, free: 61.37 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005323/0.446, allocations: 231.1 kB / 0.6551 GB, free: 61.23 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00111/0.4472, allocations: 396.3 kB / 0.6555 GB, free: 61.01 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005417/0.4477, allocations: 291 kB / 0.6558 GB, free: 60.85 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.644e-05/0.4478, allocations: 20.09 kB / 0.6558 GB, free: 60.84 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01867/0.4665, allocations: 6.852 MB / 0.6625 GB, free: 56.02 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002069/0.4668, allocations: 87.64 kB / 0.6626 GB, free: 55.93 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002802/0.4671, allocations: 117.5 kB / 0.6627 GB, free: 55.81 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006934/0.474, allocations: 3.033 MB / 0.6656 GB, free: 52.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.474, allocations: 4 kB / 0.6657 GB, free: 52.77 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4741, allocations: 0 / 0.6657 GB, free: 52.77 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.4741, allocations: 0 / 0.6657 GB, free: 52.77 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.003928/0.478, allocations: 1.223 MB / 0.6668 GB, free: 51.5 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/0.4781, allocations: 12.03 kB / 0.6669 GB, free: 51.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002409/0.4805, allocations: 227.1 kB / 0.6671 GB, free: 51.26 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007115/0.4812, allocations: 394.6 kB / 0.6675 GB, free: 50.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.592e-05/0.4813, allocations: 28.66 kB / 0.6675 GB, free: 50.81 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.805e-05/0.4814, allocations: 32 kB / 0.6675 GB, free: 50.78 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002201/0.4836, allocations: 0.6293 MB / 0.6681 GB, free: 50.11 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.14e-05/0.4836, allocations: 11.94 kB / 0.6681 GB, free: 50.1 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.39e-05/0.4837, allocations: 19.42 kB / 0.6682 GB, free: 50.08 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/0.4837, allocations: 11.81 kB / 0.6682 GB, free: 50.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002375/0.4861, allocations: 0.5879 MB / 0.6687 GB, free: 49.49 MB / 362.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.003644/0.4898, allocations: 2.686 MB / 0.6714 GB, free: 46.57 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002801/0.4926, allocations: 0.5698 MB / 0.6719 GB, free: 45.99 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005944/0.4932, allocations: 199.3 kB / 0.6721 GB, free: 45.79 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2027/0.696, allocations: 55.4 MB / 0.7262 GB, free: 496 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.372e-05/0.6961, allocations: 34.56 kB / 0.7262 GB, free: 452 kB / 378.7 MB Notification: Performance of pre-optimization done (n=28): time 3.637e-06/0.6961, allocations: 4 kB / 0.7262 GB, free: 448 kB / 378.7 MB Notification: Performance of matching and sorting (n=28): time 0.004181/0.7003, allocations: 0.8208 MB / 0.727 GB, free: 15.61 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.362e-05/0.7004, allocations: 114.7 kB / 0.7272 GB, free: 15.47 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006394/0.701, allocations: 369.5 kB / 0.7275 GB, free: 15.11 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.379e-05/0.7011, allocations: 29.7 kB / 0.7275 GB, free: 15.07 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000235/0.7014, allocations: 247.8 kB / 0.7278 GB, free: 14.82 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00013/0.7015, allocations: 98.58 kB / 0.7279 GB, free: 14.73 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.809e-05/0.7015, allocations: 12 kB / 0.7279 GB, free: 14.71 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.7017, allocations: 346.8 kB / 0.7282 GB, free: 14.37 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006785/0.7024, allocations: 160.8 kB / 0.7284 GB, free: 14.21 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008/0.7032, allocations: 308 kB / 0.7287 GB, free: 13.84 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007413/0.704, allocations: 203.8 kB / 0.7288 GB, free: 13.64 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.875e-06/0.704, allocations: 4 kB / 0.7289 GB, free: 13.64 MB / 394.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001874/0.7059, allocations: 0.5226 MB / 0.7294 GB, free: 13.11 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001729/0.7061, allocations: 226.4 kB / 0.7296 GB, free: 12.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.7061, allocations: 4 kB / 0.7296 GB, free: 12.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.706e-05/0.7061, allocations: 8 kB / 0.7296 GB, free: 12.81 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007926/0.7069, allocations: 119.8 kB / 0.7297 GB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.048e-05/0.707, allocations: 9.469 kB / 0.7297 GB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007294/0.7077, allocations: 71.56 kB / 0.7298 GB, free: 12.62 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.188e-05/0.7078, allocations: 27.98 kB / 0.7298 GB, free: 12.59 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.077e-05/0.7078, allocations: 3.281 kB / 0.7298 GB, free: 12.59 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001711/0.7096, allocations: 474.3 kB / 0.7303 GB, free: 12.13 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.7096, allocations: 4 kB / 0.7303 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.7096, allocations: 8 kB / 0.7303 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007453/0.7104, allocations: 112.2 kB / 0.7304 GB, free: 12.01 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.719e-05/0.7104, allocations: 15.98 kB / 0.7304 GB, free: 11.99 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006383/0.7111, allocations: 67.61 kB / 0.7305 GB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.964e-05/0.7111, allocations: 20 kB / 0.7305 GB, free: 11.91 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 4 (SourceP1.medium.phase,SinkP1.medium.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 49 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003616/0.7115, allocations: 252.9 kB / 0.7307 GB, free: 11.65 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000118/0.7116, allocations: 43.44 kB / 0.7308 GB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003966/0.7156, allocations: 1.971 MB / 0.7327 GB, free: 9.641 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.207e-05/0.7157, allocations: 0 / 0.7327 GB, free: 9.641 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.283e-06/0.7157, allocations: 3.938 kB / 0.7327 GB, free: 9.637 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004446/0.7161, allocations: 261.6 kB / 0.7329 GB, free: 9.363 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001281/0.7163, allocations: 15.23 kB / 0.733 GB, free: 9.352 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006458/0.7169, allocations: 63.8 kB / 0.733 GB, free: 9.289 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.7171, allocations: 32.28 kB / 0.733 GB, free: 9.258 MB / 394.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002427/0.7195, allocations: 1.119 MB / 0.7341 GB, free: 8.133 MB / 394.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0023/0.7219, allocations: 1.191 MB / 0.7353 GB, free: 6.922 MB / 394.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00101/0.7229, allocations: 0.4956 MB / 0.7358 GB, free: 6.43 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006138/0.7235, allocations: 318.8 kB / 0.7361 GB, free: 6.121 MB / 394.7 MB Notification: Performance of Backend: time 6.11e-07/0.7236, allocations: 0 / 0.7361 GB, free: 6.121 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01111/0.7347, allocations: 1.969 MB / 0.738 GB, free: 4.176 MB / 394.7 MB Notification: Performance of SimCode: time 0.003525/0.7382, allocations: 1.907 MB / 0.7399 GB, free: 2.215 MB / 394.7 MB Notification: Performance of Templates: time 0.3606/1.099, allocations: 45.24 MB / 0.7841 GB, free: 146 MB / 426.7 MB "" Variables in the reference:time,SourceP1.ports[1].m_flow,SourceP1.ports[1].p,SourceP1.ports[1].h_outflow,V1.port_b.m_flow,V1.port_b.p,V1.port_b.h_outflow,V1.minLimiter.y,SinkP1.ports[1].m_flow,SinkP1.ports[1].p,SinkP1.ports[1].h_outflow,Opening.y,downstreamPressure.y Variables in the result:Opening.k,Opening.y,SinkP1.T,SinkP1.X[1],SinkP1.flowDirection,SinkP1.medium.preferredMediumStates,SinkP1.medium.standardOrderComponents,SinkP1.nPorts,SinkP1.p,SinkP1.ports[1].h_outflow,SinkP1.ports[1].m_flow,SinkP1.ports[1].p,SourceP1.T,SourceP1.X[1],SourceP1.flowDirection,SourceP1.medium.preferredMediumStates,SourceP1.medium.standardOrderComponents,SourceP1.nPorts,SourceP1.p,SourceP1.p_in_internal,SourceP1.ports[1].h_outflow,SourceP1.ports[1].m_flow,SourceP1.ports[1].p,V1.Av,V1.Cv,V1.CvData,V1.Fxt_full,V1.Fxt_nominal,V1.Kv,V1.Y_nominal,V1.allowFlowReversal,V1.checkValve,V1.dp_nominal,V1.dp_small,V1.dp_start,V1.dp_turbulent,V1.filteredOpening,V1.leakageOpening,V1.m_flow,V1.m_flow_nominal,V1.m_flow_small,V1.m_flow_start,V1.minLimiter.u,V1.minLimiter.uMin,V1.minLimiter.y,V1.opening,V1.opening_actual,V1.opening_nominal,V1.p_nominal,V1.port_a_exposesState,V1.port_b.h_outflow,V1.port_b.m_flow,V1.port_b.p,V1.port_b_exposesState,V1.rho_nominal,V1.riseTime,V1.showDesignFlowDirection,V1.show_T,V1.show_V_flow,V1.use_Re,V1.x_nominal,V1.xs_nominal,downstreamPressure.amplitude,downstreamPressure.freqHz,downstreamPressure.offset,downstreamPressure.phase,downstreamPressure.startTime,downstreamPressure.y,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