Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 110.9 kB / 17.09 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001157/0.001158, allocations: 199.3 kB / 18.02 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.259/1.259, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2003/0.2003, allocations: 43.52 MB / 314.8 MB, free: 456 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 63.91 kB / 442.5 MB, free: 5.648 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1061, allocations: 57.78 MB / 0.4885 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics): time 0.2971/0.4033, allocations: 82.23 MB / 0.5689 GB, free: 12.89 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.03256/0.4358, allocations: 28.44 MB / 0.5966 GB, free: 8.594 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001803/0.4377, allocations: 51.62 kB / 0.5967 GB, free: 8.566 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002283/0.44, allocations: 0.9691 MB / 0.5976 GB, free: 7.734 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01302/0.453, allocations: 5.093 MB / 0.6026 GB, free: 4 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01491/0.468, allocations: 5.684 MB / 0.6081 GB, free: 15.75 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.005408/0.4734, allocations: 3.679 MB / 0.6117 GB, free: 12.38 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001864/0.4753, allocations: 1.009 MB / 0.6127 GB, free: 11.36 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002736/0.478, allocations: 1.421 MB / 0.6141 GB, free: 9.934 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001786/0.4798, allocations: 1.05 MB / 0.6151 GB, free: 8.879 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004182/0.4802, allocations: 140 kB / 0.6153 GB, free: 8.742 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01738/0.4976, allocations: 8.527 MB / 0.6236 GB, free: 212 kB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006884/0.4983, allocations: 406.7 kB / 0.624 GB, free: 15.81 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001663/0.5, allocations: 0.8594 MB / 0.6248 GB, free: 14.95 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01501/0.515, allocations: 6.876 MB / 0.6315 GB, free: 8.055 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.5151, allocations: 4 kB / 0.6315 GB, free: 8.051 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.5151, allocations: 0 / 0.6315 GB, free: 8.051 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.734e-05/0.5152, allocations: 0 / 0.6315 GB, free: 8.051 MB / 478.1 MB 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.006882/0.522, allocations: 2.728 MB / 0.6342 GB, free: 5.266 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.5221, allocations: 19.89 kB / 0.6342 GB, free: 5.246 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007069/0.5292, allocations: 0.8458 MB / 0.635 GB, free: 4.398 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001659/0.5308, allocations: 0.9789 MB / 0.636 GB, free: 3.379 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001187/0.531, allocations: 110.3 kB / 0.6361 GB, free: 3.27 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002011/0.5312, allocations: 112 kB / 0.6362 GB, free: 3.16 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005708/0.5369, allocations: 2.236 MB / 0.6384 GB, free: 0.7656 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.096e-05/0.5369, allocations: 11.92 kB / 0.6384 GB, free: 0.7539 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000155/0.5371, allocations: 52 kB / 0.6385 GB, free: 0.7031 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.703e-05/0.5371, allocations: 32 kB / 0.6385 GB, free: 0.6719 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005889/0.543, allocations: 2.092 MB / 0.6405 GB, free: 14.57 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01226/0.5553, allocations: 9.971 MB / 0.6503 GB, free: 3.84 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005104/0.5604, allocations: 1.633 MB / 0.6519 GB, free: 2.195 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001277/0.5617, allocations: 0.562 MB / 0.6524 GB, free: 1.633 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05047/0.6122, allocations: 26.24 MB / 0.678 GB, free: 4.418 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.458e-05/0.6123, allocations: 47.5 kB / 0.6781 GB, free: 4.363 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=88): time 3.076e-06/0.6123, allocations: 0 / 0.6781 GB, free: 4.363 MB / 0.5137 GB Notification: Performance of matching and sorting (n=88): time 0.009701/0.622, allocations: 2.747 MB / 0.6808 GB, free: 1.613 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/0.6221, allocations: 270 kB / 0.681 GB, free: 1.289 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001482/0.6236, allocations: 1.06 MB / 0.6821 GB, free: 224 kB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001146/0.6238, allocations: 41.7 kB / 0.6821 GB, free: 176 kB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005333/0.6243, allocations: 0.6087 MB / 0.6827 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003015/0.6246, allocations: 311.5 kB / 0.683 GB, free: 15.25 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004029/0.625, allocations: 250.7 kB / 0.6832 GB, free: 15 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001472/0.6252, allocations: 349.9 kB / 0.6836 GB, free: 14.65 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/0.6264, allocations: 485.8 kB / 0.684 GB, free: 14.17 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001513/0.628, allocations: 0.8771 MB / 0.6849 GB, free: 13.11 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002722/0.6307, allocations: 1.308 MB / 0.6862 GB, free: 11.65 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.211e-05/0.6307, allocations: 4 kB / 0.6862 GB, free: 11.64 MB / 0.5294 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003631/0.6344, allocations: 1.472 MB / 0.6876 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.488e-05/0.6344, allocations: 12 kB / 0.6876 GB, free: 10.15 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.671e-05/0.6344, allocations: 12 kB / 0.6876 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.861e-05/0.6345, allocations: 16 kB / 0.6876 GB, free: 10.12 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001261/0.6358, allocations: 336.7 kB / 0.688 GB, free: 9.797 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.294e-05/0.6358, allocations: 27.98 kB / 0.688 GB, free: 9.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001469/0.6373, allocations: 186.3 kB / 0.6882 GB, free: 9.586 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001553/0.6375, allocations: 71.97 kB / 0.6882 GB, free: 9.516 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001775/0.6393, allocations: 0.6664 MB / 0.6889 GB, free: 8.848 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00154/0.6408, allocations: 0.8655 MB / 0.6897 GB, free: 7.797 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00266/0.6435, allocations: 1.277 MB / 0.691 GB, free: 6.363 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.205e-06/0.6435, allocations: 0 / 0.691 GB, free: 6.363 MB / 0.5294 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.003456/0.647, allocations: 1.445 MB / 0.6924 GB, free: 4.91 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.647, allocations: 12 kB / 0.6924 GB, free: 4.898 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.513e-05/0.647, allocations: 16.44 kB / 0.6924 GB, free: 4.883 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.6471, allocations: 16 kB / 0.6924 GB, free: 4.867 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001109/0.6482, allocations: 323.5 kB / 0.6927 GB, free: 4.551 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.679e-05/0.6482, allocations: 20 kB / 0.6928 GB, free: 4.531 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001086/0.6493, allocations: 151.9 kB / 0.6929 GB, free: 4.383 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/0.6494, allocations: 63.98 kB / 0.693 GB, free: 4.32 MB / 0.5294 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.000367/0.6498, allocations: 277.5 kB / 0.6932 GB, free: 4.043 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003485/0.6501, allocations: 138.3 kB / 0.6934 GB, free: 3.906 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008291/0.6584, allocations: 6.573 MB / 0.6998 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.806e-05/0.6585, allocations: 3.984 kB / 0.6998 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.295e-06/0.6585, allocations: 0 / 0.6998 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008935/0.6594, allocations: 468.9 kB / 0.7002 GB, free: 12.81 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004721/0.6599, allocations: 161.9 kB / 0.7004 GB, free: 12.65 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001237/0.6611, allocations: 139.8 kB / 0.7005 GB, free: 12.51 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002334/0.6614, allocations: 108.9 kB / 0.7006 GB, free: 12.41 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004849/0.6662, allocations: 2.972 MB / 0.7035 GB, free: 9.422 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005214/0.6715, allocations: 3.081 MB / 0.7065 GB, free: 6.312 MB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002109/0.6736, allocations: 1.42 MB / 0.7079 GB, free: 4.895 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00271/0.6763, allocations: 1.553 MB / 0.7094 GB, free: 3.332 MB / 0.545 GB Notification: Performance of Backend: time 3.41e-07/0.6763, allocations: 4 kB / 0.7094 GB, free: 3.328 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01329/0.6896, allocations: 3.586 MB / 0.7129 GB, free: 15.74 MB / 0.5606 GB Notification: Performance of SimCode: time 0.008065/0.6977, allocations: 4.81 MB / 0.7176 GB, free: 10.87 MB / 0.5606 GB Notification: Performance of Templates: time 0.3412/1.039, allocations: 79.86 MB / 0.7956 GB, free: 205.2 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveCharacteristics/TestValveCharacteristics.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches