Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.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.TestCheckValve,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|downstreamPressure.y|const.y",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.004154/0.004158, 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.482/3.482, 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.003589/0.003589, allocations: 221.1 kB / 397.9 MB, free: 4.988 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.4586/0.4586, allocations: 76.1 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006188/0.000619, allocations: 19.98 kB / 0.5592 GB, free: 53.46 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09713/0.09778, allocations: 48.7 MB / 0.6067 GB, free: 4.645 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve): time 0.2998/0.3976, allocations: 26.22 MB / 0.6324 GB, free: 77.25 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.03193/0.4296, allocations: 15.76 MB / 0.6477 GB, free: 66.41 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007388/0.4304, allocations: 18.69 kB / 0.6478 GB, free: 66.4 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001043/0.4314, allocations: 238.4 kB / 0.648 GB, free: 66.27 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.01555/0.447, allocations: 3.516 MB / 0.6514 GB, free: 63.71 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01059/0.4576, allocations: 2.465 MB / 0.6538 GB, free: 62.06 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001805/0.4594, allocations: 1.043 MB / 0.6549 GB, free: 61.44 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005108/0.46, allocations: 213.3 kB / 0.6551 GB, free: 61.31 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00115/0.4612, allocations: 414.1 kB / 0.6554 GB, free: 61.07 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007391/0.4686, allocations: 3.018 MB / 0.6584 GB, free: 60.25 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001323/0.4688, allocations: 16 kB / 0.6584 GB, free: 60.23 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01822/0.487, allocations: 6.957 MB / 0.6652 GB, free: 53.27 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000164/0.4872, allocations: 91.62 kB / 0.6653 GB, free: 53.18 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001996/0.4874, allocations: 109.5 kB / 0.6654 GB, free: 53.07 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006757/0.4942, allocations: 3.072 MB / 0.6684 GB, free: 49.99 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.4943, allocations: 0 / 0.6684 GB, free: 49.99 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.316e-06/0.4943, allocations: 0 / 0.6684 GB, free: 49.99 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.4943, allocations: 3.938 kB / 0.6684 GB, free: 49.98 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.003719/0.498, allocations: 1.231 MB / 0.6696 GB, free: 48.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.4981, allocations: 8.031 kB / 0.6696 GB, free: 48.7 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002467/0.5006, allocations: 239.2 kB / 0.6698 GB, free: 48.46 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006221/0.5012, allocations: 398.6 kB / 0.6702 GB, free: 48.04 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.142e-05/0.5013, allocations: 24.66 kB / 0.6702 GB, free: 48.02 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.627e-05/0.5013, allocations: 28 kB / 0.6703 GB, free: 47.99 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00216/0.5035, allocations: 0.6274 MB / 0.6709 GB, free: 47.32 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.5035, allocations: 4 kB / 0.6709 GB, free: 47.32 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.908e-05/0.5036, allocations: 16 kB / 0.6709 GB, free: 47.3 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.5036, allocations: 8 kB / 0.6709 GB, free: 47.3 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00249/0.5061, allocations: 0.5992 MB / 0.6715 GB, free: 46.7 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.0035/0.5096, allocations: 2.589 MB / 0.674 GB, free: 43.87 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002172/0.5118, allocations: 470.2 kB / 0.6745 GB, free: 43.4 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006451/0.5125, allocations: 200.7 kB / 0.6747 GB, free: 43.2 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2091/0.7216, allocations: 51.97 MB / 0.7254 GB, free: 1.785 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.464e-05/0.7217, allocations: 38.45 kB / 0.7254 GB, free: 1.738 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 5.129e-06/0.7217, allocations: 3.422 kB / 0.7254 GB, free: 1.738 MB / 378.7 MB Notification: Performance of matching and sorting (n=25): time 0.006066/0.7278, allocations: 0.8464 MB / 0.7263 GB, free: 0.8867 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.361e-05/0.7279, allocations: 106.8 kB / 0.7264 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007921/0.7287, allocations: 353.5 kB / 0.7267 GB, free: 420 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.427e-05/0.7288, allocations: 37.7 kB / 0.7268 GB, free: 376 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002661/0.7291, allocations: 231.8 kB / 0.727 GB, free: 140 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.007747/0.7369, allocations: 86.73 kB / 0.7271 GB, free: 52 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.162e-05/0.737, allocations: 12 kB / 0.7271 GB, free: 40 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002541/0.7372, allocations: 346.8 kB / 0.7274 GB, free: 15.69 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001052/0.7383, allocations: 175.1 kB / 0.7276 GB, free: 15.52 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001198/0.7395, allocations: 300.1 kB / 0.7278 GB, free: 15.17 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001102/0.7406, allocations: 201 kB / 0.728 GB, free: 14.98 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.7407, allocations: 0 / 0.728 GB, free: 14.98 MB / 394.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.007051/0.7477, allocations: 0.5164 MB / 0.7285 GB, free: 14.45 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002019/0.7479, allocations: 203 kB / 0.7287 GB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/0.748, allocations: 4 kB / 0.7287 GB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.984e-05/0.748, allocations: 8 kB / 0.7288 GB, free: 14.19 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001077/0.7491, allocations: 119.2 kB / 0.7289 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.777e-05/0.7491, allocations: 7.938 kB / 0.7289 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009516/0.7501, allocations: 83.48 kB / 0.729 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.827e-05/0.7502, allocations: 23.98 kB / 0.729 GB, free: 13.96 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.7502, allocations: 4 kB / 0.729 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002386/0.7526, allocations: 459.6 kB / 0.7294 GB, free: 13.51 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.7527, allocations: 4 kB / 0.7294 GB, free: 13.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.7527, allocations: 8 kB / 0.7294 GB, free: 13.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00108/0.7538, allocations: 116.1 kB / 0.7295 GB, free: 13.38 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.877e-05/0.7538, allocations: 11.95 kB / 0.7295 GB, free: 13.37 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008765/0.7547, allocations: 67.7 kB / 0.7296 GB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.751e-05/0.7548, allocations: 20 kB / 0.7296 GB, free: 13.29 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 (V1.state_b.phase,V1.state_a.phase,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.0004758/0.7553, allocations: 244.9 kB / 0.7299 GB, free: 13.04 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001615/0.7555, allocations: 39.53 kB / 0.7299 GB, free: 13 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005886/0.7614, allocations: 1.986 MB / 0.7318 GB, free: 11.01 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.699e-05/0.7615, allocations: 3.984 kB / 0.7318 GB, free: 11.01 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.074e-05/0.7615, allocations: 3.953 kB / 0.7319 GB, free: 11 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005969/0.7621, allocations: 255.4 kB / 0.7321 GB, free: 10.73 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001734/0.7623, allocations: 8 kB / 0.7321 GB, free: 10.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009591/0.7633, allocations: 62.81 kB / 0.7322 GB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001532/0.7634, allocations: 27.95 kB / 0.7322 GB, free: 10.64 MB / 394.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003578/0.767, allocations: 1.152 MB / 0.7333 GB, free: 9.48 MB / 394.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.003465/0.7705, allocations: 1.195 MB / 0.7345 GB, free: 8.266 MB / 394.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001622/0.7722, allocations: 0.5096 MB / 0.735 GB, free: 7.758 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0008787/0.7731, allocations: 310.9 kB / 0.7353 GB, free: 7.457 MB / 394.7 MB Notification: Performance of Backend: time 1.322e-06/0.7732, allocations: 0 / 0.7353 GB, free: 7.457 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0126/0.7858, allocations: 2.032 MB / 0.7373 GB, free: 5.449 MB / 394.7 MB Notification: Performance of SimCode: time 0.003654/0.7895, allocations: 1.852 MB / 0.7391 GB, free: 3.551 MB / 394.7 MB Notification: Performance of Templates: time 0.3752/1.165, allocations: 45.91 MB / 0.7839 GB, free: 146.2 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,downstreamPressure.y,const.y Variables in the result: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.Kv,V1.allowFlowReversal,V1.checkValve,V1.dp_nominal,V1.dp_small,V1.dp_start,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.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,const.k,const.y,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