Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.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.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.2_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002664/0.002664, allocations: 367.9 kB / 15.96 MB, free: 6.199 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 3.765/3.765, allocations: 388.9 MB / 405.6 MB, free: 10.23 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.003682/0.003682, allocations: 226.4 kB / 451 MB, free: 145.1 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.5386/0.5386, allocations: 80.03 MB / 0.5627 GB, free: 19.83 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001043/0.001043, allocations: 12 kB / 0.6265 GB, free: 96.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09522/0.09631, allocations: 54.87 MB / 0.6801 GB, free: 41.66 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve): time 0.03255/0.1289, allocations: 26.38 MB / 0.7059 GB, free: 15.19 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.3245/0.4535, allocations: 15.83 MB / 0.7213 GB, free: 13.57 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006965/0.4542, allocations: 18.31 kB / 0.7213 GB, free: 13.57 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00107/0.4553, allocations: 236.4 kB / 0.7216 GB, free: 13.56 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.01531/0.4706, allocations: 3.538 MB / 0.725 GB, free: 13.54 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01348/0.4841, allocations: 2.496 MB / 0.7275 GB, free: 13.48 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002407/0.4866, allocations: 1.047 MB / 0.7285 GB, free: 13.47 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007777/0.4874, allocations: 219.2 kB / 0.7287 GB, free: 13.46 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001717/0.4891, allocations: 415.6 kB / 0.7291 GB, free: 13.46 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01025/0.4994, allocations: 3.041 MB / 0.7321 GB, free: 13.42 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001642/0.4997, allocations: 17.53 kB / 0.7321 GB, free: 13.42 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02702/0.5267, allocations: 7.076 MB / 0.739 GB, free: 12.96 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002965/0.527, allocations: 88.44 kB / 0.7391 GB, free: 12.92 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003251/0.5274, allocations: 107.6 kB / 0.7392 GB, free: 12.88 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01019/0.5376, allocations: 3.111 MB / 0.7422 GB, free: 11.53 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.5377, allocations: 0 / 0.7422 GB, free: 11.53 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.246e-06/0.5377, allocations: 1.125 kB / 0.7422 GB, free: 11.53 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.776e-06/0.5377, allocations: 0 / 0.7422 GB, free: 11.53 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.006481/0.5442, allocations: 1.257 MB / 0.7434 GB, free: 10.68 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.103e-05/0.5443, allocations: 13.33 kB / 0.7435 GB, free: 10.68 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003858/0.5481, allocations: 247 kB / 0.7437 GB, free: 10.6 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007462/0.5489, allocations: 396.1 kB / 0.7441 GB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.08e-05/0.549, allocations: 29.19 kB / 0.7441 GB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.862e-05/0.5491, allocations: 30.88 kB / 0.7441 GB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002437/0.5515, allocations: 0.6216 MB / 0.7447 GB, free: 10.05 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.13e-05/0.5516, allocations: 1.125 kB / 0.7447 GB, free: 10.05 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.168e-05/0.5517, allocations: 26.34 kB / 0.7448 GB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.901e-05/0.5517, allocations: 8.5 kB / 0.7448 GB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003899/0.5556, allocations: 0.6006 MB / 0.7454 GB, free: 9.895 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.0056/0.5612, allocations: 2.585 MB / 0.7479 GB, free: 7.754 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003322/0.5646, allocations: 475 kB / 0.7483 GB, free: 7.621 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009455/0.5656, allocations: 205.7 kB / 0.7485 GB, free: 7.578 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2647/0.8303, allocations: 52.01 MB / 0.7993 GB, free: 1.301 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.117e-05/0.8304, allocations: 42.11 kB / 0.7994 GB, free: 1.254 MB / 394.7 MB Notification: Performance of pre-optimization done (n=25): time 3.186e-06/0.8304, allocations: 0 / 0.7994 GB, free: 1.254 MB / 394.7 MB Notification: Performance of matching and sorting (n=25): time 0.004456/0.8349, allocations: 0.8469 MB / 0.8002 GB, free: 0.5625 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.933e-05/0.835, allocations: 113.8 kB / 0.8003 GB, free: 440 kB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006255/0.8356, allocations: 349.8 kB / 0.8006 GB, free: 156 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.354e-05/0.8357, allocations: 33.52 kB / 0.8007 GB, free: 120 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002327/0.8359, allocations: 232.9 kB / 0.8009 GB, free: 15.93 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/0.8361, allocations: 89.09 kB / 0.801 GB, free: 15.86 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.332e-05/0.8361, allocations: 7 kB / 0.801 GB, free: 15.86 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.8363, allocations: 344.8 kB / 0.8013 GB, free: 15.53 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007748/0.8371, allocations: 175.4 kB / 0.8015 GB, free: 15.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008671/0.838, allocations: 306.5 kB / 0.8018 GB, free: 15.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008031/0.8388, allocations: 196 kB / 0.802 GB, free: 14.96 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.8388, allocations: 4 kB / 0.802 GB, free: 14.96 MB / 410.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002056/0.8409, allocations: 0.5083 MB / 0.8025 GB, free: 14.56 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002139/0.8411, allocations: 205 kB / 0.8026 GB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.561e-05/0.8412, allocations: 10.58 kB / 0.8027 GB, free: 14.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.856e-05/0.8412, allocations: 8 kB / 0.8027 GB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008599/0.8421, allocations: 114.4 kB / 0.8028 GB, free: 14.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.947e-05/0.8421, allocations: 15.92 kB / 0.8028 GB, free: 14.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007922/0.8429, allocations: 74.06 kB / 0.8029 GB, free: 14.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.855e-05/0.843, allocations: 23.23 kB / 0.8029 GB, free: 14.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.843, allocations: 4 kB / 0.8029 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001823/0.8449, allocations: 462.8 kB / 0.8033 GB, free: 13.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.8449, allocations: 4 kB / 0.8033 GB, free: 13.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.8449, allocations: 12.12 kB / 0.8033 GB, free: 13.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008316/0.8458, allocations: 111.4 kB / 0.8034 GB, free: 13.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.736e-05/0.8458, allocations: 11.94 kB / 0.8035 GB, free: 13.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006936/0.8465, allocations: 70.83 kB / 0.8035 GB, free: 13.56 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.369e-05/0.8466, allocations: 19.12 kB / 0.8035 GB, free: 13.55 MB / 410.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.0003637/0.847, allocations: 242.6 kB / 0.8038 GB, free: 13.33 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001202/0.8471, allocations: 35.62 kB / 0.8038 GB, free: 13.29 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004189/0.8513, allocations: 2.004 MB / 0.8058 GB, free: 11.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/0.8514, allocations: 0 / 0.8058 GB, free: 11.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/0.8514, allocations: 0 / 0.8058 GB, free: 11.95 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005027/0.8519, allocations: 247.4 kB / 0.806 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001269/0.852, allocations: 9.875 kB / 0.806 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006842/0.8527, allocations: 66.73 kB / 0.8061 GB, free: 11.65 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001425/0.8529, allocations: 39.58 kB / 0.8061 GB, free: 11.62 MB / 410.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002657/0.8556, allocations: 1.14 MB / 0.8072 GB, free: 10.79 MB / 410.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002711/0.8583, allocations: 1.198 MB / 0.8084 GB, free: 9.875 MB / 410.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001068/0.8594, allocations: 0.5098 MB / 0.8089 GB, free: 9.602 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005924/0.86, allocations: 312.9 kB / 0.8092 GB, free: 9.367 MB / 410.7 MB Notification: Performance of Backend: time 4.71e-07/0.86, allocations: 0 / 0.8092 GB, free: 9.367 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01337/0.8734, allocations: 2.046 MB / 0.8112 GB, free: 7.609 MB / 410.7 MB Notification: Performance of SimCode: time 0.003839/0.8773, allocations: 1.859 MB / 0.813 GB, free: 5.805 MB / 410.7 MB Notification: Performance of Templates: time 0.1048/0.9821, allocations: 46.31 MB / 0.8582 GB, free: 7.66 MB / 458.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