Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.TestValveLinear,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|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.TestValveLinear") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.003841/0.003847, allocations: 352.3 kB / 15.95 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.468/3.468, allocations: 341.5 MB / 358.2 MB, free: 12.64 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.003497/0.003497, allocations: 221.2 kB / 397.9 MB, free: 4.98 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.5196/0.5196, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006228/0.0006231, allocations: 16 kB / 0.5592 GB, free: 53.46 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08216/0.08281, allocations: 48.7 MB / 0.6067 GB, free: 4.656 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.3389/0.4217, allocations: 25.86 MB / 0.632 GB, free: 77.56 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01887/0.4407, allocations: 12.29 MB / 0.644 GB, free: 68.88 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004876/0.4412, allocations: 18.59 kB / 0.644 GB, free: 68.87 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008461/0.4421, allocations: 193.2 kB / 0.6442 GB, free: 68.77 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.01222/0.4543, allocations: 2.838 MB / 0.647 GB, free: 67.12 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007185/0.4615, allocations: 1.78 MB / 0.6487 GB, free: 65.82 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.00139/0.4629, allocations: 0.9863 MB / 0.6497 GB, free: 65.23 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003894/0.4633, allocations: 199.5 kB / 0.6499 GB, free: 65.11 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007987/0.4641, allocations: 374 kB / 0.6502 GB, free: 64.9 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003855/0.4645, allocations: 254.9 kB / 0.6505 GB, free: 64.76 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 6.169e-05/0.4646, allocations: 16.06 kB / 0.6505 GB, free: 64.76 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01943/0.4841, allocations: 6.708 MB / 0.657 GB, free: 61.52 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001766/0.4843, allocations: 76.16 kB / 0.6571 GB, free: 61.46 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001859/0.4845, allocations: 110.6 kB / 0.6572 GB, free: 61.39 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006709/0.4912, allocations: 2.915 MB / 0.66 GB, free: 58.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.4913, allocations: 0 / 0.66 GB, free: 58.52 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.865e-06/0.4913, allocations: 0.75 kB / 0.6601 GB, free: 58.52 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.4913, allocations: 0 / 0.6601 GB, free: 58.52 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.003593/0.4949, allocations: 1.161 MB / 0.6612 GB, free: 57.31 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.495, allocations: 12.03 kB / 0.6612 GB, free: 57.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002177/0.4971, allocations: 203.3 kB / 0.6614 GB, free: 57.1 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005755/0.4977, allocations: 370 kB / 0.6617 GB, free: 56.7 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.173e-05/0.4978, allocations: 28.61 kB / 0.6618 GB, free: 56.67 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.266e-05/0.4979, allocations: 28 kB / 0.6618 GB, free: 56.64 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002119/0.5, allocations: 0.6144 MB / 0.6624 GB, free: 56 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.5, allocations: 0 / 0.6624 GB, free: 56 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.861e-05/0.5001, allocations: 15.98 kB / 0.6624 GB, free: 55.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.5001, allocations: 11.94 kB / 0.6624 GB, free: 55.97 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002516/0.5026, allocations: 0.5836 MB / 0.663 GB, free: 55.38 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.003092/0.5057, allocations: 2.57 MB / 0.6655 GB, free: 52.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002252/0.508, allocations: 490.2 kB / 0.666 GB, free: 52.1 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007348/0.5088, allocations: 211.5 kB / 0.6662 GB, free: 51.89 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1815/0.6903, allocations: 51.96 MB / 0.7169 GB, free: 10.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.883e-05/0.6904, allocations: 34.5 kB / 0.717 GB, free: 10.43 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 2.856e-06/0.6904, allocations: 0 / 0.717 GB, free: 10.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=25): time 0.004626/0.695, allocations: 0.8659 MB / 0.7178 GB, free: 9.562 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.795e-05/0.6951, allocations: 110.8 kB / 0.7179 GB, free: 9.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004456/0.6956, allocations: 280.5 kB / 0.7182 GB, free: 9.145 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.646e-05/0.6957, allocations: 33.7 kB / 0.7182 GB, free: 9.105 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002016/0.6959, allocations: 223.7 kB / 0.7184 GB, free: 8.883 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001096/0.696, allocations: 86.78 kB / 0.7185 GB, free: 8.797 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.98e-05/0.6961, allocations: 12 kB / 0.7185 GB, free: 8.785 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.6962, allocations: 338.8 kB / 0.7188 GB, free: 8.445 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000785/0.697, allocations: 164.5 kB / 0.719 GB, free: 8.281 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008959/0.6979, allocations: 290.6 kB / 0.7193 GB, free: 7.945 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001069/0.699, allocations: 183.9 kB / 0.7194 GB, free: 7.766 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.6991, allocations: 0 / 0.7194 GB, free: 7.766 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.003175/0.7023, allocations: 0.494 MB / 0.7199 GB, free: 7.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.656e-05/0.7024, allocations: 4 kB / 0.7199 GB, free: 7.266 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.909e-05/0.7024, allocations: 4 kB / 0.7199 GB, free: 7.262 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.916e-05/0.7025, allocations: 12.41 kB / 0.7199 GB, free: 7.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001145/0.7037, allocations: 103.9 kB / 0.72 GB, free: 7.148 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.925e-05/0.7037, allocations: 10.25 kB / 0.7201 GB, free: 7.141 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009591/0.7047, allocations: 71.66 kB / 0.7201 GB, free: 7.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.756e-05/0.7048, allocations: 15.95 kB / 0.7201 GB, free: 7.055 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (40): * Single equations (assignments): 40 * 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.0005183/0.7054, allocations: 175.7 kB / 0.7203 GB, free: 6.875 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002032/0.7056, allocations: 31.62 kB / 0.7203 GB, free: 6.844 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006174/0.7118, allocations: 1.95 MB / 0.7222 GB, free: 4.891 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.583e-05/0.7118, allocations: 7.984 kB / 0.7222 GB, free: 4.883 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.7118, allocations: 0 / 0.7222 GB, free: 4.883 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002959/0.7122, allocations: 207.5 kB / 0.7224 GB, free: 4.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/0.7123, allocations: 11.95 kB / 0.7225 GB, free: 4.648 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006367/0.7129, allocations: 75.31 kB / 0.7225 GB, free: 4.578 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/0.7131, allocations: 31.89 kB / 0.7226 GB, free: 4.547 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002846/0.7159, allocations: 1.136 MB / 0.7237 GB, free: 3.402 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002666/0.7186, allocations: 1.176 MB / 0.7248 GB, free: 2.207 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001203/0.7199, allocations: 0.5095 MB / 0.7253 GB, free: 1.699 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004455/0.7203, allocations: 271.1 kB / 0.7256 GB, free: 1.441 MB / 378.7 MB Notification: Performance of Backend: time 7.82e-07/0.7204, allocations: 0 / 0.7256 GB, free: 1.441 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.009421/0.7298, allocations: 1.672 MB / 0.7272 GB, free: 15.8 MB / 394.7 MB Notification: Performance of SimCode: time 0.002986/0.7328, allocations: 1.771 MB / 0.7289 GB, free: 13.98 MB / 394.7 MB Notification: Performance of Templates: time 0.0965/0.8293, allocations: 42.65 MB / 0.7706 GB, free: 3.605 MB / 426.7 MB "Warning: Resultfile and Reference have different end time points! Reffile[5006]=3.000000 File[5677]=3.400200 " 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,SinkP1.ports[1].m_flow,SinkP1.ports[1].p,SinkP1.ports[1].h_outflow,Opening.y,downstreamPressure.y Variables in the result:Opening.duration,Opening.height,Opening.offset,Opening.startTime,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.allowFlowReversal,V1.dp_nominal,V1.dp_start,V1.k,V1.m_flow,V1.m_flow_nominal,V1.m_flow_small,V1.m_flow_start,V1.port_a_exposesState,V1.port_b.h_outflow,V1.port_b.m_flow,V1.port_b.p,V1.port_b_exposesState,V1.showDesignFlowDirection,V1.show_T,V1.show_V_flow,downstreamPressure.duration,downstreamPressure.height,downstreamPressure.offset,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