Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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: 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.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002669/0.002669, allocations: 366.8 kB / 15.96 MB, free: 6.18 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 4.004/4.004, allocations: 388.9 MB / 405.6 MB, free: 9.566 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003715/0.003715, allocations: 235.2 kB / 451 MB, free: 145 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.4971/0.4971, allocations: 80.02 MB / 0.5627 GB, free: 19.75 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006299/0.0006302, allocations: 15.98 kB / 0.6265 GB, free: 96.51 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.092/0.09267, allocations: 54.88 MB / 0.6801 GB, free: 41.63 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.04268/0.1354, allocations: 26.03 MB / 0.7055 GB, free: 15.52 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02902/0.1645, allocations: 12.38 MB / 0.7176 GB, free: 3.109 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006681/0.1652, allocations: 15.88 kB / 0.7176 GB, free: 3.094 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001219/0.1665, allocations: 186.9 kB / 0.7178 GB, free: 2.91 MB / 346.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+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.2+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.2+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.2+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.3477/0.5142, allocations: 2.846 MB / 0.7206 GB, free: 14.87 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007377/0.5216, allocations: 1.832 MB / 0.7224 GB, free: 14.86 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001596/0.5232, allocations: 0.9865 MB / 0.7233 GB, free: 14.86 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004618/0.5237, allocations: 196 kB / 0.7235 GB, free: 14.84 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009308/0.5246, allocations: 377.4 kB / 0.7239 GB, free: 14.84 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004268/0.5251, allocations: 262.3 kB / 0.7241 GB, free: 14.84 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.7e-05/0.5251, allocations: 15.31 kB / 0.7242 GB, free: 14.84 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01939/0.5445, allocations: 6.814 MB / 0.7308 GB, free: 14.82 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002294/0.5448, allocations: 84.23 kB / 0.7309 GB, free: 14.82 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002417/0.5451, allocations: 100.6 kB / 0.731 GB, free: 14.79 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00836/0.5535, allocations: 2.956 MB / 0.7339 GB, free: 14.69 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.5535, allocations: 0 / 0.7339 GB, free: 14.69 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.5536, allocations: 0 / 0.7339 GB, free: 14.69 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.026e-05/0.5536, allocations: 7 kB / 0.7339 GB, free: 14.68 MB / 346.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.008768/0.5624, allocations: 1.173 MB / 0.735 GB, free: 13.99 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.906e-05/0.5625, allocations: 9.078 kB / 0.735 GB, free: 13.99 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004575/0.5671, allocations: 219.1 kB / 0.7352 GB, free: 13.92 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001067/0.5682, allocations: 376.7 kB / 0.7356 GB, free: 13.64 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.226e-05/0.5683, allocations: 28.59 kB / 0.7356 GB, free: 13.64 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.5684, allocations: 31.12 kB / 0.7357 GB, free: 13.64 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003935/0.5724, allocations: 0.6026 MB / 0.7362 GB, free: 13.38 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.818e-05/0.5725, allocations: 6.75 kB / 0.7363 GB, free: 13.38 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.19e-05/0.5726, allocations: 18.12 kB / 0.7363 GB, free: 13.38 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.997e-05/0.5726, allocations: 9.328 kB / 0.7363 GB, free: 13.38 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004441/0.5771, allocations: 0.5871 MB / 0.7369 GB, free: 13.24 MB / 346.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.005874/0.583, allocations: 2.571 MB / 0.7394 GB, free: 11.08 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00389/0.5869, allocations: 487.6 kB / 0.7398 GB, free: 10.94 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001198/0.5882, allocations: 210.8 kB / 0.74 GB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2488/0.837, allocations: 52.04 MB / 0.7908 GB, free: 8.559 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.845e-05/0.8371, allocations: 38.5 kB / 0.7909 GB, free: 8.512 MB / 394.7 MB Notification: Performance of pre-optimization done (n=25): time 2.815e-06/0.8371, allocations: 0 / 0.7909 GB, free: 8.512 MB / 394.7 MB Notification: Performance of matching and sorting (n=25): time 0.004747/0.8419, allocations: 0.8664 MB / 0.7917 GB, free: 7.793 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.667e-05/0.842, allocations: 106.8 kB / 0.7918 GB, free: 7.664 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005085/0.8426, allocations: 287.2 kB / 0.7921 GB, free: 7.43 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.845e-05/0.8426, allocations: 30.08 kB / 0.7921 GB, free: 7.398 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002079/0.8429, allocations: 216.5 kB / 0.7923 GB, free: 7.227 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001253/0.843, allocations: 90.05 kB / 0.7924 GB, free: 7.152 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.708e-05/0.843, allocations: 3.688 kB / 0.7924 GB, free: 7.152 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.8432, allocations: 340.6 kB / 0.7928 GB, free: 6.824 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008137/0.844, allocations: 168 kB / 0.7929 GB, free: 6.695 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009076/0.845, allocations: 289.6 kB / 0.7932 GB, free: 6.406 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008637/0.8459, allocations: 189.7 kB / 0.7934 GB, free: 6.273 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.241e-06/0.8459, allocations: 0 / 0.7934 GB, free: 6.273 MB / 394.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002062/0.848, allocations: 0.4941 MB / 0.7939 GB, free: 5.887 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.081e-05/0.8481, allocations: 8 kB / 0.7939 GB, free: 5.879 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/0.8481, allocations: 4 kB / 0.7939 GB, free: 5.875 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.936e-05/0.8481, allocations: 4 kB / 0.7939 GB, free: 5.871 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007594/0.8489, allocations: 108.5 kB / 0.794 GB, free: 5.777 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.137e-05/0.8489, allocations: 14.52 kB / 0.794 GB, free: 5.766 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006447/0.8496, allocations: 68.53 kB / 0.7941 GB, free: 5.703 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.331e-05/0.8497, allocations: 18.25 kB / 0.7941 GB, free: 5.691 MB / 394.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.0003064/0.85, allocations: 158.7 kB / 0.7942 GB, free: 5.555 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001563/0.8502, allocations: 40.8 kB / 0.7943 GB, free: 5.52 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004237/0.8544, allocations: 1.96 MB / 0.7962 GB, free: 4.199 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.701e-05/0.8545, allocations: 3.984 kB / 0.7962 GB, free: 4.195 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/0.8545, allocations: 0 / 0.7962 GB, free: 4.195 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003408/0.8548, allocations: 207.7 kB / 0.7964 GB, free: 3.988 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001272/0.855, allocations: 3.25 kB / 0.7964 GB, free: 3.988 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006653/0.8557, allocations: 64.75 kB / 0.7964 GB, free: 3.93 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001411/0.8558, allocations: 32.27 kB / 0.7965 GB, free: 3.902 MB / 394.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003021/0.8589, allocations: 1.138 MB / 0.7976 GB, free: 3.059 MB / 394.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002713/0.8616, allocations: 1.183 MB / 0.7987 GB, free: 2.152 MB / 394.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001234/0.8629, allocations: 0.5182 MB / 0.7992 GB, free: 1.871 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004832/0.8634, allocations: 258.5 kB / 0.7995 GB, free: 1.668 MB / 394.7 MB Notification: Performance of Backend: time 6.62e-07/0.8635, allocations: 2.406 kB / 0.7995 GB, free: 1.668 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01362/0.8771, allocations: 1.709 MB / 0.8012 GB, free: 196 kB / 394.7 MB Notification: Performance of SimCode: time 0.00354/0.8807, allocations: 1.759 MB / 0.8029 GB, free: 14.48 MB / 410.7 MB Notification: Performance of Templates: time 0.1064/0.9872, allocations: 43.06 MB / 0.8449 GB, free: 3.617 MB / 442.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