Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.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.TestValveCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valve_linear.port_b.m_flow|valve_linear.port_b.p|valve_linear.port_b.h_outflow|valve_linear.minLimiter.y|sink1.ports.1..m_flow|sink1.ports.1..p|sink1.ports.1..h_outflow|opening.y|valve_constant.port_b.m_flow|valve_constant.port_b.p|valve_constant.port_b.h_outflow|valve_constant.minLimiter.y|valve_quadratic.port_b.m_flow|valve_quadratic.port_b.p|valve_quadratic.port_b.h_outflow|valve_quadratic.minLimiter.y|sink2.ports.1..m_flow|sink2.ports.1..p|sink2.ports.1..h_outflow|sink3.ports.1..m_flow|sink3.ports.1..p|sink3.ports.1..h_outflow|valve_equalPercentage.port_b.m_flow|valve_equalPercentage.port_b.p|valve_equalPercentage.port_b.h_outflow|valve_equalPercentage.minLimiter.y|sink4.ports.1..m_flow|sink4.ports.1..p|sink4.ports.1..h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valve_linear.port_b.m_flow|valve_linear.port_b.p|valve_linear.port_b.h_outflow|valve_linear.minLimiter.y|sink1.ports.1..m_flow|sink1.ports.1..p|sink1.ports.1..h_outflow|opening.y|valve_constant.port_b.m_flow|valve_constant.port_b.p|valve_constant.port_b.h_outflow|valve_constant.minLimiter.y|valve_quadratic.port_b.m_flow|valve_quadratic.port_b.p|valve_quadratic.port_b.h_outflow|valve_quadratic.minLimiter.y|sink2.ports.1..m_flow|sink2.ports.1..p|sink2.ports.1..h_outflow|sink3.ports.1..m_flow|sink3.ports.1..p|sink3.ports.1..h_outflow|valve_equalPercentage.port_b.m_flow|valve_equalPercentage.port_b.p|valve_equalPercentage.port_b.h_outflow|valve_equalPercentage.minLimiter.y|sink4.ports.1..m_flow|sink4.ports.1..p|sink4.ports.1..h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001098/0.001098, allocations: 110.9 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001348/0.001348, allocations: 214.8 kB / 19.41 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, 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.206/0.206, allocations: 46.1 MB / 345 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 75.88 kB / 482 MB, free: 4.078 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.305/0.3065, allocations: 62.43 MB / 0.5317 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics): time 0.07246/0.379, allocations: 82.47 MB / 0.6122 GB, free: 15 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03405/0.4131, allocations: 28.45 MB / 0.64 GB, free: 2.461 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002156/0.4153, allocations: 47.62 kB / 0.64 GB, free: 2.414 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002365/0.4177, allocations: 0.9781 MB / 0.641 GB, free: 1.43 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.013/0.4307, allocations: 5.105 MB / 0.646 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.01406/0.4448, allocations: 5.71 MB / 0.6515 GB, free: 6.617 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.004443/0.4493, allocations: 3.694 MB / 0.6552 GB, free: 2.91 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001597/0.4509, allocations: 1.001 MB / 0.6561 GB, free: 1.883 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002597/0.4535, allocations: 1.425 MB / 0.6575 GB, free: 464 kB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001753/0.4553, allocations: 1.058 MB / 0.6586 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0003421/0.4556, allocations: 135.9 kB / 0.6587 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01784/0.4735, allocations: 8.542 MB / 0.667 GB, free: 6.707 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0008616/0.4744, allocations: 406.6 kB / 0.6674 GB, free: 6.309 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001586/0.476, allocations: 0.8594 MB / 0.6683 GB, free: 5.445 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.01459/0.4906, allocations: 6.891 MB / 0.675 GB, free: 14.54 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.4906, allocations: 7.938 kB / 0.675 GB, free: 14.53 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.403e-06/0.4906, allocations: 0 / 0.675 GB, free: 14.53 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.776e-05/0.4907, allocations: 0 / 0.675 GB, free: 14.53 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.006703/0.4974, allocations: 2.736 MB / 0.6777 GB, free: 11.74 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.481e-05/0.4975, allocations: 8.031 kB / 0.6777 GB, free: 11.73 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007268/0.5047, allocations: 0.8497 MB / 0.6785 GB, free: 10.88 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001667/0.5064, allocations: 0.9748 MB / 0.6795 GB, free: 9.859 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000113/0.5065, allocations: 106.3 kB / 0.6796 GB, free: 9.754 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001888/0.5067, allocations: 112 kB / 0.6797 GB, free: 9.645 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005749/0.5125, allocations: 2.232 MB / 0.6818 GB, free: 7.254 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.788e-05/0.5125, allocations: 7.938 kB / 0.6818 GB, free: 7.246 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001441/0.5127, allocations: 56 kB / 0.6819 GB, free: 7.191 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.083e-05/0.5127, allocations: 32 kB / 0.6819 GB, free: 7.16 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005972/0.5187, allocations: 2.095 MB / 0.684 GB, free: 5.055 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01267/0.5314, allocations: 9.982 MB / 0.6937 GB, free: 10.32 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005541/0.537, allocations: 1.629 MB / 0.6953 GB, free: 8.68 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001369/0.5384, allocations: 0.5682 MB / 0.6959 GB, free: 8.113 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2901/0.8285, allocations: 28.8 MB / 0.724 GB, free: 144.8 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.25e-05/0.8286, allocations: 46.56 kB / 0.724 GB, free: 144.7 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=88): time 2.615e-06/0.8286, allocations: 0.8125 kB / 0.724 GB, free: 144.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=88): time 0.009246/0.8378, allocations: 2.742 MB / 0.7267 GB, free: 144.7 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.194e-05/0.8379, allocations: 275.3 kB / 0.727 GB, free: 144.4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001211/0.8392, allocations: 1.061 MB / 0.728 GB, free: 144.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001028/0.8393, allocations: 42.95 kB / 0.7281 GB, free: 144.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003237/0.8396, allocations: 0.614 MB / 0.7287 GB, free: 144 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001884/0.8398, allocations: 299.8 kB / 0.7289 GB, free: 143.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003067/0.8401, allocations: 259.3 kB / 0.7292 GB, free: 143.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.88e-05/0.8402, allocations: 348.6 kB / 0.7295 GB, free: 143.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001191/0.8414, allocations: 488.8 kB / 0.73 GB, free: 143.4 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001288/0.8427, allocations: 0.8765 MB / 0.7308 GB, free: 143 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002296/0.845, allocations: 1.303 MB / 0.7321 GB, free: 142.6 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.845, allocations: 2.25 kB / 0.7321 GB, free: 142.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003036/0.8481, allocations: 1.473 MB / 0.7336 GB, free: 142.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.8481, allocations: 19.41 kB / 0.7336 GB, free: 142.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.456e-05/0.8481, allocations: 11.94 kB / 0.7336 GB, free: 142.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.827e-05/0.8481, allocations: 18.38 kB / 0.7336 GB, free: 142.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001109/0.8493, allocations: 329.3 kB / 0.7339 GB, free: 142.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.613e-05/0.8493, allocations: 24.88 kB / 0.7339 GB, free: 142.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001072/0.8504, allocations: 189.5 kB / 0.7341 GB, free: 142.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.118e-05/0.8505, allocations: 69.84 kB / 0.7342 GB, free: 142.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001378/0.8519, allocations: 0.6664 MB / 0.7348 GB, free: 142.2 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00125/0.8531, allocations: 0.8648 MB / 0.7357 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002299/0.8554, allocations: 1.276 MB / 0.7369 GB, free: 141.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.881e-06/0.8555, allocations: 3.938 kB / 0.7369 GB, free: 141.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002979/0.8584, allocations: 1.44 MB / 0.7383 GB, free: 141.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.8585, allocations: 11.91 kB / 0.7384 GB, free: 141.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.8585, allocations: 13.36 kB / 0.7384 GB, free: 141.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.8585, allocations: 18.91 kB / 0.7384 GB, free: 141.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009983/0.8595, allocations: 323.6 kB / 0.7387 GB, free: 141.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.745e-05/0.8595, allocations: 28.58 kB / 0.7387 GB, free: 141.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009761/0.8605, allocations: 148.5 kB / 0.7389 GB, free: 141.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.952e-05/0.8606, allocations: 66.89 kB / 0.7389 GB, free: 141.1 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 16 (sink2.medium.phase,source2.medium.phase,sink4.medium.phase,source4.medium.phase,sink3.medium.phase,source3.medium.phase,sink1.medium.phase,source1.medium.phase,valve_equalPercentage.state_b.phase,valve_equalPercentage.state_a.phase,valve_quadratic.state_b.phase,valve_quadratic.state_a.phase,valve_constant.state_b.phase,valve_constant.state_a.phase,valve_linear.state_b.phase,valve_linear.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (141): * Single equations (assignments): 141 * 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.0003048/0.8609, allocations: 277.2 kB / 0.7392 GB, free: 140.9 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002229/0.8611, allocations: 137.3 kB / 0.7393 GB, free: 140.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006139/0.8673, allocations: 6.576 MB / 0.7457 GB, free: 138.2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.48e-05/0.8673, allocations: 10.73 kB / 0.7457 GB, free: 138.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.8673, allocations: 0 / 0.7457 GB, free: 138.2 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000577/0.8679, allocations: 470.2 kB / 0.7462 GB, free: 137.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000299/0.8682, allocations: 152.2 kB / 0.7463 GB, free: 137.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.8692, allocations: 134.6 kB / 0.7465 GB, free: 137.7 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001663/0.8694, allocations: 115.8 kB / 0.7466 GB, free: 137.7 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003499/0.8729, allocations: 2.965 MB / 0.7495 GB, free: 135.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003583/0.8765, allocations: 3.086 MB / 0.7525 GB, free: 132.7 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001457/0.878, allocations: 1.415 MB / 0.7539 GB, free: 131.5 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001615/0.8796, allocations: 1.562 MB / 0.7554 GB, free: 129.9 MB / 0.5606 GB Notification: Performance of Backend: time 4.81e-07/0.8796, allocations: 0 / 0.7554 GB, free: 129.9 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0103/0.8899, allocations: 3.599 MB / 0.7589 GB, free: 126.8 MB / 0.5606 GB Notification: Performance of SimCode: time 0.005709/0.8957, allocations: 4.806 MB / 0.7636 GB, free: 122 MB / 0.5606 GB Notification: Performance of Templates: time 0.08541/0.9811, allocations: 79.99 MB / 0.8417 GB, free: 42.48 MB / 0.5606 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveCharacteristics/TestValveCharacteristics.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches