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.001153/0.001153, allocations: 114 kB / 17.09 MB, free: 5.957 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.001171/0.001171, allocations: 194.9 kB / 18.02 MB, free: 5.047 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.326/1.326, allocations: 205.1 MB / 223.9 MB, free: 12.22 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.2626/0.2626, allocations: 43.53 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.001534/0.001534, allocations: 69.47 kB / 442.5 MB, free: 5.656 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1054, allocations: 57.79 MB / 0.4886 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics): time 0.3178/0.4233, allocations: 82.24 MB / 0.5689 GB, free: 12.9 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.03473/0.458, allocations: 28.43 MB / 0.5966 GB, free: 8.613 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001878/0.4599, allocations: 46.53 kB / 0.5967 GB, free: 8.59 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002444/0.4624, allocations: 0.9745 MB / 0.5976 GB, free: 7.754 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01417/0.4766, allocations: 5.118 MB / 0.6026 GB, free: 4.008 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01783/0.4945, allocations: 5.698 MB / 0.6082 GB, free: 15.75 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.004783/0.4993, allocations: 3.686 MB / 0.6118 GB, free: 12.38 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001703/0.501, allocations: 1.011 MB / 0.6128 GB, free: 11.35 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002967/0.504, allocations: 1.429 MB / 0.6142 GB, free: 9.914 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001767/0.5058, allocations: 1.058 MB / 0.6152 GB, free: 8.852 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004013/0.5062, allocations: 136 kB / 0.6153 GB, free: 8.719 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01748/0.5237, allocations: 8.53 MB / 0.6237 GB, free: 184 kB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006575/0.5244, allocations: 402.7 kB / 0.624 GB, free: 15.79 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001497/0.5259, allocations: 0.8633 MB / 0.6249 GB, free: 14.92 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01488/0.5408, allocations: 6.876 MB / 0.6316 GB, free: 8.027 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.712e-06/0.5408, allocations: 0 / 0.6316 GB, free: 8.027 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.5408, allocations: 4 kB / 0.6316 GB, free: 8.023 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.915e-05/0.5409, allocations: 0 / 0.6316 GB, free: 8.023 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.007381/0.5483, allocations: 2.732 MB / 0.6343 GB, free: 5.234 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/0.5484, allocations: 15.89 kB / 0.6343 GB, free: 5.219 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00768/0.556, allocations: 0.8458 MB / 0.6351 GB, free: 4.371 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002147/0.5582, allocations: 0.9711 MB / 0.6361 GB, free: 3.359 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001588/0.5584, allocations: 110.3 kB / 0.6362 GB, free: 3.25 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002715/0.5587, allocations: 116 kB / 0.6363 GB, free: 3.137 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006422/0.5651, allocations: 2.232 MB / 0.6385 GB, free: 0.7461 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.292e-05/0.5652, allocations: 7.938 kB / 0.6385 GB, free: 0.7383 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001838/0.5654, allocations: 56 kB / 0.6385 GB, free: 0.6836 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.85e-05/0.5654, allocations: 32 kB / 0.6386 GB, free: 0.6523 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006469/0.5719, allocations: 2.092 MB / 0.6406 GB, free: 14.55 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01283/0.5847, allocations: 9.974 MB / 0.6503 GB, free: 3.816 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005507/0.5903, allocations: 1.637 MB / 0.6519 GB, free: 2.168 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001381/0.5917, allocations: 0.5674 MB / 0.6525 GB, free: 1.602 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05307/0.6447, allocations: 26.22 MB / 0.6781 GB, free: 4.406 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.805e-05/0.6448, allocations: 51.5 kB / 0.6781 GB, free: 4.348 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=88): time 1.261e-05/0.6449, allocations: 0 / 0.6781 GB, free: 4.348 MB / 0.5137 GB Notification: Performance of matching and sorting (n=88): time 0.01017/0.655, allocations: 2.747 MB / 0.6808 GB, free: 1.598 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001435/0.6552, allocations: 274 kB / 0.6811 GB, free: 1.27 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001701/0.6569, allocations: 1.06 MB / 0.6821 GB, free: 204 kB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001062/0.6571, allocations: 45.64 kB / 0.6822 GB, free: 152 kB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004796/0.6576, allocations: 0.6048 MB / 0.6828 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002743/0.6578, allocations: 307.5 kB / 0.683 GB, free: 15.23 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003801/0.6582, allocations: 258.7 kB / 0.6833 GB, free: 14.97 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001535/0.6584, allocations: 349.9 kB / 0.6836 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001385/0.6598, allocations: 481.8 kB / 0.6841 GB, free: 14.15 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001682/0.6615, allocations: 0.881 MB / 0.6849 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002996/0.6645, allocations: 1.304 MB / 0.6862 GB, free: 11.63 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-05/0.6645, allocations: 4 kB / 0.6862 GB, free: 11.62 MB / 0.5294 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003893/0.6684, allocations: 1.471 MB / 0.6877 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.861e-05/0.6685, allocations: 12 kB / 0.6877 GB, free: 10.13 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.99e-05/0.6685, allocations: 8 kB / 0.6877 GB, free: 10.12 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.271e-05/0.6685, allocations: 20 kB / 0.6877 GB, free: 10.11 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001298/0.6698, allocations: 336.1 kB / 0.688 GB, free: 9.777 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.139e-05/0.6699, allocations: 23.92 kB / 0.688 GB, free: 9.754 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00152/0.6714, allocations: 194.3 kB / 0.6882 GB, free: 9.562 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001404/0.6716, allocations: 67.97 kB / 0.6883 GB, free: 9.496 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001748/0.6733, allocations: 0.6703 MB / 0.6889 GB, free: 8.824 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001568/0.6749, allocations: 0.8578 MB / 0.6898 GB, free: 7.781 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002739/0.6777, allocations: 1.281 MB / 0.691 GB, free: 6.344 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.131e-05/0.6777, allocations: 3.984 kB / 0.691 GB, free: 6.34 MB / 0.5294 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.003671/0.6814, allocations: 1.441 MB / 0.6924 GB, free: 4.891 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.6814, allocations: 12 kB / 0.6925 GB, free: 4.879 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/0.6814, allocations: 12 kB / 0.6925 GB, free: 4.867 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.6814, allocations: 20 kB / 0.6925 GB, free: 4.848 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001171/0.6826, allocations: 331.8 kB / 0.6928 GB, free: 4.523 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.502e-05/0.6827, allocations: 23.92 kB / 0.6928 GB, free: 4.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001152/0.6838, allocations: 147.1 kB / 0.693 GB, free: 4.355 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001002/0.6839, allocations: 63.97 kB / 0.693 GB, free: 4.293 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.0003458/0.6843, allocations: 277.5 kB / 0.6933 GB, free: 4.016 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003525/0.6846, allocations: 142.3 kB / 0.6934 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009108/0.6938, allocations: 6.569 MB / 0.6998 GB, free: 13.26 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.801e-05/0.6938, allocations: 3.984 kB / 0.6999 GB, free: 13.26 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.173e-06/0.6938, allocations: 0 / 0.6999 GB, free: 13.26 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009976/0.6948, allocations: 472.9 kB / 0.7003 GB, free: 12.77 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005092/0.6954, allocations: 157.9 kB / 0.7005 GB, free: 12.62 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001328/0.6967, allocations: 139.8 kB / 0.7006 GB, free: 12.48 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002406/0.697, allocations: 104.9 kB / 0.7007 GB, free: 12.38 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005116/0.7021, allocations: 2.972 MB / 0.7036 GB, free: 9.398 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005107/0.7072, allocations: 3.077 MB / 0.7066 GB, free: 6.293 MB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002122/0.7094, allocations: 1.428 MB / 0.708 GB, free: 4.867 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00252/0.7119, allocations: 1.557 MB / 0.7095 GB, free: 3.301 MB / 0.545 GB Notification: Performance of Backend: time 9.41e-07/0.7119, allocations: 0 / 0.7095 GB, free: 3.301 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01434/0.7262, allocations: 3.581 MB / 0.713 GB, free: 15.72 MB / 0.5606 GB Notification: Performance of SimCode: time 0.009656/0.7359, allocations: 4.802 MB / 0.7177 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of Templates: time 0.3541/1.09, allocations: 78.71 MB / 0.7946 GB, free: 206.4 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