Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.TestValveDiscrete,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.TestValveDiscrete") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.003852/0.003851, 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.87/3.87, allocations: 341.5 MB / 358.2 MB, free: 12.55 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.003642/0.003642, allocations: 229.2 kB / 397.9 MB, free: 4.898 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.4987/0.4987, allocations: 76.1 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006221/0.0006223, allocations: 8 kB / 0.5592 GB, free: 53.44 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08811/0.08877, allocations: 48.71 MB / 0.6068 GB, free: 4.629 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.3498/0.4386, allocations: 25.84 MB / 0.632 GB, free: 77.57 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02003/0.4587, allocations: 12.28 MB / 0.644 GB, free: 68.91 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006625/0.4594, allocations: 10.06 kB / 0.644 GB, free: 68.9 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009155/0.4603, allocations: 190 kB / 0.6442 GB, free: 68.8 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.01362/0.474, allocations: 2.838 MB / 0.6469 GB, free: 67.11 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008174/0.4822, allocations: 1.789 MB / 0.6487 GB, free: 65.8 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001651/0.4838, allocations: 0.9786 MB / 0.6496 GB, free: 65.22 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005391/0.4844, allocations: 198.6 kB / 0.6498 GB, free: 65.09 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001107/0.4855, allocations: 365.3 kB / 0.6502 GB, free: 64.89 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006251/0.4862, allocations: 250.8 kB / 0.6504 GB, free: 64.75 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 8.916e-05/0.4863, allocations: 15.09 kB / 0.6504 GB, free: 64.75 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01976/0.5061, allocations: 6.712 MB / 0.657 GB, free: 61.51 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002182/0.5063, allocations: 75.44 kB / 0.6571 GB, free: 61.45 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002197/0.5066, allocations: 105.6 kB / 0.6572 GB, free: 61.39 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006933/0.5135, allocations: 2.918 MB / 0.66 GB, free: 58.54 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.5136, allocations: 0 / 0.66 GB, free: 58.54 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.494e-06/0.5136, allocations: 0 / 0.66 GB, free: 58.54 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.637e-06/0.5136, allocations: 0 / 0.66 GB, free: 58.54 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.003873/0.5175, allocations: 1.142 MB / 0.6611 GB, free: 57.35 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.5176, allocations: 12.03 kB / 0.6611 GB, free: 57.34 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002353/0.5199, allocations: 210 kB / 0.6613 GB, free: 57.13 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006666/0.5206, allocations: 366.1 kB / 0.6617 GB, free: 56.74 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.585e-05/0.5207, allocations: 32.59 kB / 0.6617 GB, free: 56.71 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.279e-05/0.5208, allocations: 31.94 kB / 0.6618 GB, free: 56.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002152/0.5229, allocations: 0.5901 MB / 0.6623 GB, free: 56.05 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.523, allocations: 4 kB / 0.6623 GB, free: 56.05 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.823e-05/0.5231, allocations: 20 kB / 0.6623 GB, free: 56.03 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.5231, allocations: 8 kB / 0.6624 GB, free: 56.02 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002394/0.5255, allocations: 0.5601 MB / 0.6629 GB, free: 55.46 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.003358/0.5289, allocations: 2.56 MB / 0.6654 GB, free: 52.67 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00228/0.5312, allocations: 475.2 kB / 0.6659 GB, free: 52.2 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006713/0.5319, allocations: 192.7 kB / 0.666 GB, free: 52 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1828/0.7148, allocations: 51.96 MB / 0.7168 GB, free: 10.59 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.659e-05/0.7149, allocations: 42.5 kB / 0.7168 GB, free: 10.54 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 3.176e-06/0.7149, allocations: 3.938 kB / 0.7168 GB, free: 10.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=25): time 0.004316/0.7192, allocations: 0.8113 MB / 0.7176 GB, free: 9.723 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.824e-05/0.7193, allocations: 114.8 kB / 0.7177 GB, free: 9.586 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004768/0.7198, allocations: 292.4 kB / 0.718 GB, free: 9.289 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.579e-05/0.7199, allocations: 29.7 kB / 0.718 GB, free: 9.254 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002098/0.7201, allocations: 219.9 kB / 0.7183 GB, free: 9.035 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001191/0.7202, allocations: 90.69 kB / 0.7183 GB, free: 8.945 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.739e-05/0.7203, allocations: 4 kB / 0.7183 GB, free: 8.941 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.7204, allocations: 338.8 kB / 0.7187 GB, free: 8.602 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007281/0.7212, allocations: 160.5 kB / 0.7188 GB, free: 8.441 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007831/0.722, allocations: 274.6 kB / 0.7191 GB, free: 8.121 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007517/0.7228, allocations: 175.9 kB / 0.7192 GB, free: 7.949 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.465e-06/0.7228, allocations: 4 kB / 0.7193 GB, free: 7.945 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001792/0.7246, allocations: 470.7 kB / 0.7197 GB, free: 7.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.984e-05/0.7246, allocations: 8 kB / 0.7197 GB, free: 7.473 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.7247, allocations: 4 kB / 0.7197 GB, free: 7.469 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.361e-05/0.7247, allocations: 4 kB / 0.7197 GB, free: 7.465 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006552/0.7254, allocations: 95.83 kB / 0.7198 GB, free: 7.371 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.68e-05/0.7254, allocations: 8.234 kB / 0.7198 GB, free: 7.363 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005337/0.7259, allocations: 59.72 kB / 0.7199 GB, free: 7.305 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.654e-05/0.726, allocations: 19.95 kB / 0.7199 GB, free: 7.285 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: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,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.0003206/0.7263, allocations: 179.7 kB / 0.7201 GB, free: 7.102 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.231e-05/0.7264, allocations: 31.62 kB / 0.7201 GB, free: 7.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004008/0.7305, allocations: 1.921 MB / 0.722 GB, free: 5.152 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.373e-05/0.7305, allocations: 3.984 kB / 0.722 GB, free: 5.148 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.7305, allocations: 0 / 0.722 GB, free: 5.148 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002909/0.7308, allocations: 207.5 kB / 0.7222 GB, free: 4.926 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001164/0.731, allocations: 11.94 kB / 0.7222 GB, free: 4.914 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005967/0.7316, allocations: 63.89 kB / 0.7222 GB, free: 4.852 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/0.7317, allocations: 27.95 kB / 0.7223 GB, free: 4.824 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002609/0.7343, allocations: 1.113 MB / 0.7234 GB, free: 3.703 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002459/0.7368, allocations: 1.153 MB / 0.7245 GB, free: 2.531 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001105/0.738, allocations: 0.4939 MB / 0.725 GB, free: 2.039 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004524/0.7384, allocations: 255.1 kB / 0.7252 GB, free: 1.797 MB / 378.7 MB Notification: Performance of Backend: time 5.21e-07/0.7385, allocations: 7.938 kB / 0.7252 GB, free: 1.789 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01016/0.7486, allocations: 1.663 MB / 0.7268 GB, free: 160 kB / 378.7 MB Notification: Performance of SimCode: time 0.003169/0.7518, allocations: 1.752 MB / 0.7285 GB, free: 14.36 MB / 394.7 MB Notification: Performance of Templates: time 0.09829/0.8502, allocations: 42.58 MB / 0.7701 GB, free: 4.047 MB / 426.7 MB "Warning: Resultfile and Reference have different end time points! Reffile[5006]=3.000000 File[5675]=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.startTime,Opening.startValue,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.opening_min,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