Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveVaporizing.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.TestValveVaporizing,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.TestValveVaporizing") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.004261/0.004268, 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.947/3.947, allocations: 341.5 MB / 358.2 MB, free: 12.63 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.003533/0.003533, allocations: 225.1 kB / 397.9 MB, free: 4.977 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.5916/0.5916, allocations: 76.08 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007475/0.0007479, allocations: 8 kB / 0.5592 GB, free: 53.45 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1195, allocations: 48.71 MB / 0.6067 GB, free: 4.641 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveVaporizing): time 0.35/0.4696, allocations: 26.34 MB / 0.6325 GB, free: 77.19 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02786/0.4975, allocations: 15.78 MB / 0.6479 GB, free: 66.33 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008374/0.4984, allocations: 16.47 kB / 0.6479 GB, free: 66.32 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001167/0.4996, allocations: 242.1 kB / 0.6481 GB, free: 66.19 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.01404/0.5137, allocations: 2.967 MB / 0.651 GB, free: 64 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01414/0.5279, allocations: 3.056 MB / 0.654 GB, free: 61.91 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001863/0.5297, allocations: 1.077 MB / 0.6551 GB, free: 61.27 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000594/0.5304, allocations: 223.1 kB / 0.6553 GB, free: 61.14 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001157/0.5316, allocations: 399.6 kB / 0.6557 GB, free: 60.92 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006326/0.5322, allocations: 284.5 kB / 0.6559 GB, free: 60.76 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 9.031e-05/0.5324, allocations: 21.56 kB / 0.6559 GB, free: 60.76 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01971/0.5521, allocations: 6.863 MB / 0.6626 GB, free: 55.87 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002424/0.5524, allocations: 91.64 kB / 0.6627 GB, free: 55.78 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002735/0.5527, allocations: 113.5 kB / 0.6628 GB, free: 55.66 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007286/0.56, allocations: 3.033 MB / 0.6658 GB, free: 52.62 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.56, allocations: 0 / 0.6658 GB, free: 52.62 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.627e-06/0.56, allocations: 0 / 0.6658 GB, free: 52.62 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.176e-05/0.5601, allocations: 4 kB / 0.6658 GB, free: 52.62 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.004595/0.5647, allocations: 1.251 MB / 0.667 GB, free: 51.32 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.5647, allocations: 8.031 kB / 0.667 GB, free: 51.31 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002505/0.5673, allocations: 231.1 kB / 0.6673 GB, free: 51.09 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007843/0.5681, allocations: 394.6 kB / 0.6676 GB, free: 50.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.327e-05/0.5681, allocations: 29 kB / 0.6677 GB, free: 50.64 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.664e-05/0.5682, allocations: 39.44 kB / 0.6677 GB, free: 50.6 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002606/0.5709, allocations: 0.6688 MB / 0.6684 GB, free: 49.89 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.265e-05/0.5709, allocations: 0 / 0.6684 GB, free: 49.89 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.57e-05/0.571, allocations: 12 kB / 0.6684 GB, free: 49.88 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/0.571, allocations: 16 kB / 0.6684 GB, free: 49.86 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003192/0.5742, allocations: 0.6542 MB / 0.669 GB, free: 49.21 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.004037/0.5783, allocations: 2.772 MB / 0.6717 GB, free: 46.19 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00268/0.581, allocations: 0.5117 MB / 0.6722 GB, free: 45.67 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009094/0.582, allocations: 205.9 kB / 0.6724 GB, free: 45.46 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2378/0.8198, allocations: 52.08 MB / 0.7233 GB, free: 3.918 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.255e-05/0.8199, allocations: 34.5 kB / 0.7233 GB, free: 3.875 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 2.605e-06/0.8199, allocations: 0 / 0.7233 GB, free: 3.875 MB / 378.7 MB Notification: Performance of matching and sorting (n=27): time 0.005056/0.825, allocations: 0.8676 MB / 0.7242 GB, free: 3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.583e-05/0.8251, allocations: 110.8 kB / 0.7243 GB, free: 2.867 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006051/0.8257, allocations: 353.5 kB / 0.7246 GB, free: 2.512 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.023e-05/0.8257, allocations: 29.7 kB / 0.7246 GB, free: 2.477 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002323/0.826, allocations: 239.7 kB / 0.7249 GB, free: 2.238 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000118/0.8261, allocations: 94.64 kB / 0.725 GB, free: 2.145 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.136e-05/0.8262, allocations: 8 kB / 0.725 GB, free: 2.137 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.8263, allocations: 346.8 kB / 0.7253 GB, free: 1.789 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009679/0.8273, allocations: 179.1 kB / 0.7255 GB, free: 1.617 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00111/0.8284, allocations: 308.1 kB / 0.7258 GB, free: 1.258 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001024/0.8295, allocations: 203.9 kB / 0.726 GB, free: 1.059 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.8295, allocations: 0 / 0.726 GB, free: 1.059 MB / 378.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.002374/0.8319, allocations: 0.528 MB / 0.7265 GB, free: 0.5234 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001501/0.832, allocations: 200.2 kB / 0.7267 GB, free: 280 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.8321, allocations: 4 kB / 0.7267 GB, free: 276 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.101e-05/0.8321, allocations: 4 kB / 0.7267 GB, free: 272 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009074/0.833, allocations: 123.9 kB / 0.7268 GB, free: 148 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/0.8331, allocations: 7.938 kB / 0.7268 GB, free: 140 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007798/0.8338, allocations: 87.62 kB / 0.7269 GB, free: 52 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-05/0.8339, allocations: 16 kB / 0.7269 GB, free: 36 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/0.8339, allocations: 7.953 kB / 0.7269 GB, free: 28 kB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00224/0.8362, allocations: 483.5 kB / 0.7274 GB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.917e-05/0.8362, allocations: 7.188 kB / 0.7274 GB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.8362, allocations: 4.344 kB / 0.7274 GB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008576/0.8371, allocations: 123.8 kB / 0.7275 GB, free: 15.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/0.8371, allocations: 4 kB / 0.7275 GB, free: 15.42 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007084/0.8379, allocations: 83.58 kB / 0.7276 GB, free: 15.34 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.391e-05/0.8379, allocations: 23.98 kB / 0.7276 GB, free: 15.32 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (44): * Single equations (assignments): 44 * 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.0003282/0.8383, allocations: 241 kB / 0.7278 GB, free: 15.07 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001124/0.8384, allocations: 43.48 kB / 0.7279 GB, free: 15.03 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004499/0.8429, allocations: 1.995 MB / 0.7298 GB, free: 13.04 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.8429, allocations: 4 kB / 0.7298 GB, free: 13.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.632e-06/0.843, allocations: 0 / 0.7298 GB, free: 13.04 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003931/0.8434, allocations: 247.4 kB / 0.7301 GB, free: 12.77 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001258/0.8435, allocations: 11.98 kB / 0.7301 GB, free: 12.76 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000795/0.8443, allocations: 67.94 kB / 0.7301 GB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.8444, allocations: 27.95 kB / 0.7302 GB, free: 12.67 MB / 394.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00317/0.8476, allocations: 1.172 MB / 0.7313 GB, free: 11.49 MB / 394.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002945/0.8506, allocations: 1.222 MB / 0.7325 GB, free: 10.24 MB / 394.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001349/0.852, allocations: 0.5174 MB / 0.733 GB, free: 9.727 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006137/0.8526, allocations: 306.9 kB / 0.7333 GB, free: 9.43 MB / 394.7 MB Notification: Performance of Backend: time 6.11e-07/0.8526, allocations: 0 / 0.7333 GB, free: 9.43 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01172/0.8643, allocations: 1.995 MB / 0.7352 GB, free: 7.461 MB / 394.7 MB Notification: Performance of SimCode: time 0.00356/0.8679, allocations: 1.877 MB / 0.7371 GB, free: 5.539 MB / 394.7 MB Notification: Performance of Templates: time 0.3786/1.247, allocations: 45.31 MB / 0.7813 GB, free: 146 MB / 426.7 MB "Warning: Resultfile and Reference have different end time points! Reffile[5007]=1.010000 File[5947]=1.200082 " 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.Fl_nominal,V1.Kv,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_out,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,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