Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,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|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SourceP3.ports.1..m_flow|SourceP3.ports.1..p|SourceP3.ports.1..h_outflow|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow|SourceP4.ports.1..m_flow|SourceP4.ports.1..p|SourceP4.ports.1..h_outflow|V4.port_b.m_flow|V4.port_b.p|V4.port_b.h_outflow|V4.minLimiter.y|SinkP4.ports.1..m_flow|SinkP4.ports.1..p|SinkP4.ports.1..h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,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|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SourceP3.ports.1..m_flow|SourceP3.ports.1..p|SourceP3.ports.1..h_outflow|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow|SourceP4.ports.1..m_flow|SourceP4.ports.1..p|SourceP4.ports.1..h_outflow|V4.port_b.m_flow|V4.port_b.p|V4.port_b.h_outflow|V4.minLimiter.y|SinkP4.ports.1..m_flow|SinkP4.ports.1..p|SinkP4.ports.1..h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001057/0.001057, allocations: 114.2 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001215/0.001215, allocations: 210.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.216/0.216, allocations: 46.1 MB / 345 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00164/0.00164, allocations: 79.86 kB / 482 MB, free: 4.102 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3346/0.3363, allocations: 62.43 MB / 0.5317 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients): time 0.08369/0.42, allocations: 82.44 MB / 0.6122 GB, free: 15.06 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.04051/0.4605, allocations: 28.42 MB / 0.6399 GB, free: 2.547 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002243/0.4629, allocations: 47.62 kB / 0.64 GB, free: 2.5 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003345/0.4662, allocations: 0.9742 MB / 0.6409 GB, free: 1.52 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01671/0.483, allocations: 5.133 MB / 0.6459 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.01743/0.5004, allocations: 5.706 MB / 0.6515 GB, free: 6.684 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.005889/0.5063, allocations: 3.702 MB / 0.6551 GB, free: 2.969 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002073/0.5084, allocations: 0.9966 MB / 0.6561 GB, free: 1.945 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003173/0.5116, allocations: 1.425 MB / 0.6575 GB, free: 0.5156 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0019/0.5136, allocations: 1.062 MB / 0.6585 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0005/0.5141, allocations: 136 kB / 0.6587 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0232/0.5373, allocations: 8.562 MB / 0.667 GB, free: 6.746 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.001225/0.5386, allocations: 406.6 kB / 0.6674 GB, free: 6.348 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.002134/0.5407, allocations: 0.8633 MB / 0.6682 GB, free: 5.48 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0181/0.5589, allocations: 6.903 MB / 0.675 GB, free: 14.56 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.5589, allocations: 0 / 0.675 GB, free: 14.56 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.094e-06/0.5589, allocations: 0 / 0.675 GB, free: 14.56 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 9.15e-05/0.559, allocations: 0 / 0.675 GB, free: 14.56 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.008044/0.5671, allocations: 2.728 MB / 0.6777 GB, free: 11.78 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/0.5671, allocations: 8.031 kB / 0.6777 GB, free: 11.77 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007688/0.5748, allocations: 0.8497 MB / 0.6785 GB, free: 10.92 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002042/0.5769, allocations: 0.9788 MB / 0.6794 GB, free: 9.895 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001769/0.5771, allocations: 110.3 kB / 0.6796 GB, free: 9.785 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002931/0.5774, allocations: 112 kB / 0.6797 GB, free: 9.676 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006419/0.5838, allocations: 2.22 MB / 0.6818 GB, free: 7.297 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.311e-05/0.5839, allocations: 7.938 kB / 0.6818 GB, free: 7.289 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00021/0.5841, allocations: 56 kB / 0.6819 GB, free: 7.234 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.93e-05/0.5842, allocations: 32 kB / 0.6819 GB, free: 7.203 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006261/0.5904, allocations: 2.064 MB / 0.6839 GB, free: 5.129 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01452/0.605, allocations: 10.29 MB / 0.694 GB, free: 10 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005541/0.6106, allocations: 1.568 MB / 0.6955 GB, free: 8.43 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001289/0.6119, allocations: 0.5063 MB / 0.696 GB, free: 7.922 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3356/0.9475, allocations: 26.73 MB / 0.7221 GB, free: 145.5 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.911e-05/0.9476, allocations: 48.31 kB / 0.7222 GB, free: 145.4 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=80): time 3.767e-06/0.9476, allocations: 3.031 kB / 0.7222 GB, free: 145.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=80): time 0.009823/0.9574, allocations: 2.579 MB / 0.7247 GB, free: 145.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.525e-05/0.9575, allocations: 267.2 kB / 0.7249 GB, free: 145.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00145/0.959, allocations: 1.168 MB / 0.7261 GB, free: 144.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 7.904e-05/0.9591, allocations: 42.58 kB / 0.7261 GB, free: 144.9 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003524/0.9594, allocations: 0.6152 MB / 0.7267 GB, free: 144.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001748/0.9596, allocations: 280.4 kB / 0.727 GB, free: 144.6 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003352/0.96, allocations: 265.7 kB / 0.7272 GB, free: 144.5 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.927e-05/0.96, allocations: 349.5 kB / 0.7276 GB, free: 144.2 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001199/0.9613, allocations: 475.3 kB / 0.728 GB, free: 144.2 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001362/0.9626, allocations: 0.8966 MB / 0.7289 GB, free: 143.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00223/0.9649, allocations: 1.296 MB / 0.7302 GB, free: 143.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/0.9649, allocations: 3.969 kB / 0.7302 GB, free: 143.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.003029/0.9679, allocations: 1.475 MB / 0.7316 GB, free: 143.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.9679, allocations: 11.81 kB / 0.7316 GB, free: 143.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.588e-05/0.968, allocations: 13.77 kB / 0.7316 GB, free: 143.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.686e-05/0.968, allocations: 19.78 kB / 0.7317 GB, free: 143.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001091/0.9691, allocations: 340.6 kB / 0.732 GB, free: 143.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.095e-05/0.9691, allocations: 23.62 kB / 0.732 GB, free: 143.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001117/0.9703, allocations: 221.5 kB / 0.7322 GB, free: 143.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.52e-05/0.9704, allocations: 66.72 kB / 0.7323 GB, free: 143.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001308/0.9717, allocations: 0.6651 MB / 0.7329 GB, free: 143 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001202/0.9729, allocations: 0.8867 MB / 0.7338 GB, free: 142.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002111/0.975, allocations: 1.279 MB / 0.735 GB, free: 141.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.32e-06/0.975, allocations: 6.906 kB / 0.7351 GB, free: 141.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=143) (initialization_lambda0): time 0.002916/0.9779, allocations: 1.455 MB / 0.7365 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/0.978, allocations: 9.438 kB / 0.7365 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.978, allocations: 17.8 kB / 0.7365 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.978, allocations: 19.28 kB / 0.7365 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.979, allocations: 337.1 kB / 0.7368 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.706e-05/0.9791, allocations: 26.23 kB / 0.7369 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001027/0.9801, allocations: 156.9 kB / 0.737 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.926e-05/0.9802, allocations: 76.67 kB / 0.7371 GB, free: 141.8 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 16 (SinkP1.medium.phase,SourceP1.medium.phase,SinkP2.medium.phase,SourceP2.medium.phase,SinkP3.medium.phase,SourceP3.medium.phase,SinkP4.medium.phase,SourceP4.medium.phase,V4.state_b.phase,V4.state_a.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.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 (143): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002699/0.9805, allocations: 276.4 kB / 0.7374 GB, free: 141.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000211/0.9807, allocations: 141.5 kB / 0.7375 GB, free: 141.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005797/0.9865, allocations: 6.451 MB / 0.7438 GB, free: 139.3 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/0.9865, allocations: 7.031 kB / 0.7438 GB, free: 139.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.9865, allocations: 0 / 0.7438 GB, free: 139.3 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000507/0.987, allocations: 466.8 kB / 0.7442 GB, free: 138.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002944/0.9873, allocations: 155.6 kB / 0.7444 GB, free: 138.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00102/0.9883, allocations: 133.9 kB / 0.7445 GB, free: 138.8 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001543/0.9885, allocations: 101.8 kB / 0.7446 GB, free: 138.8 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003155/0.9917, allocations: 2.844 MB / 0.7474 GB, free: 137.3 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003173/0.9949, allocations: 2.986 MB / 0.7503 GB, free: 134.6 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001276/0.9961, allocations: 1.369 MB / 0.7516 GB, free: 133.3 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001739/0.9979, allocations: 1.632 MB / 0.7532 GB, free: 131.9 MB / 0.5606 GB Notification: Performance of Backend: time 3.51e-07/0.9979, allocations: 0 / 0.7532 GB, free: 131.9 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.009125/1.007, allocations: 3.596 MB / 0.7567 GB, free: 129.1 MB / 0.5606 GB Notification: Performance of SimCode: time 0.005181/1.012, allocations: 4.8 MB / 0.7614 GB, free: 124.2 MB / 0.5606 GB Notification: Performance of Templates: time 0.08834/1.101, allocations: 79.27 MB / 0.8389 GB, free: 45.36 MB / 0.5606 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveCoefficients/TestValveCoefficients.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches