Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00126/0.00126, allocations: 187.3 kB / 8.517 MB, free: 496 kB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 221.4 MB / 230.3 MB, free: 13.55 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001703/0.001703, allocations: 94.48 kB / 281.2 MB, free: 10.51 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1846/0.1846, allocations: 44.15 MB / 376.1 MB, free: 11.65 MB / 322.8 MB Notification: Performance of FrontEnd - loaded program: time 7.865e-06/7.905e-06, allocations: 0 / 444 MB, free: 54.38 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1188, allocations: 61.91 MB / 0.4941 GB, free: 8.391 MB / 338.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.839/4.958, allocations: 2.777 GB / 3.271 GB, free: 88.04 MB / 0.5183 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001977/4.958, allocations: 91.3 kB / 3.271 GB, free: 87.96 MB / 0.5183 GB Notification: Performance of FrontEnd: time 1.854/6.812, allocations: 0.64 GB / 3.911 GB, free: 39.66 MB / 0.5339 GB Notification: Performance of Transformations before backend: time 0.0001398/6.812, allocations: 40.48 kB / 3.911 GB, free: 39.65 MB / 0.5339 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.01191/6.824, allocations: 2.479 MB / 3.914 GB, free: 38.32 MB / 0.5339 GB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/6.824, allocations: 12.81 kB / 3.914 GB, free: 38.32 MB / 0.5339 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009091/6.833, allocations: 1.019 MB / 3.915 GB, free: 38.17 MB / 0.5339 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002625/6.836, allocations: 1.003 MB / 3.916 GB, free: 37.59 MB / 0.5339 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001405/6.836, allocations: 53.39 kB / 3.916 GB, free: 37.59 MB / 0.5339 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002111/6.836, allocations: 70.62 kB / 3.916 GB, free: 37.58 MB / 0.5339 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002821/6.839, allocations: 1.22 MB / 3.917 GB, free: 37.15 MB / 0.5339 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002487/6.841, allocations: 1.438 MB / 3.918 GB, free: 36.34 MB / 0.5339 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.048e-05/6.841, allocations: 11 kB / 3.918 GB, free: 36.33 MB / 0.5339 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001386/6.842, allocations: 5.594 kB / 3.918 GB, free: 36.33 MB / 0.5339 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.73e-05/6.842, allocations: 31.12 kB / 3.919 GB, free: 36.33 MB / 0.5339 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3501/7.192, allocations: 69.89 MB / 3.987 GB, free: 95.86 MB / 0.5496 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/7.193, allocations: 0.8029 MB / 3.988 GB, free: 95.83 MB / 0.5496 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005053/7.193, allocations: 409.5 kB / 3.988 GB, free: 95.82 MB / 0.5496 GB Notification: Performance of preOpt evalFunc (simulation): time 0.8094/8.003, allocations: 277.5 MB / 4.259 GB, free: 96.18 MB / 0.5964 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/8.003, allocations: 40.89 kB / 4.259 GB, free: 96.14 MB / 0.5964 GB Notification: Performance of pre-optimization done (n=39): time 2.755e-06/8.003, allocations: 0 / 4.259 GB, free: 96.14 MB / 0.5964 GB Notification: Performance of matching and sorting (n=39): time 0.00505/8.008, allocations: 1.388 MB / 4.26 GB, free: 96.1 MB / 0.5964 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.509e-05/8.008, allocations: 268.8 kB / 4.261 GB, free: 95.79 MB / 0.5964 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001579/8.01, allocations: 1.038 MB / 4.262 GB, free: 95.64 MB / 0.5964 GB Notification: Performance of collectPreVariables (initialization): time 8.266e-05/8.01, allocations: 30.17 kB / 4.262 GB, free: 95.61 MB / 0.5964 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003645/8.01, allocations: 0.6422 MB / 4.262 GB, free: 95.29 MB / 0.5964 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001284/8.01, allocations: 141.2 kB / 4.262 GB, free: 95.22 MB / 0.5964 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/8.01, allocations: 2.906 kB / 4.262 GB, free: 95.22 MB / 0.5964 GB Notification: Performance of setup shared object (initialization): time 7.395e-05/8.01, allocations: 348.2 kB / 4.263 GB, free: 94.92 MB / 0.5964 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005987/8.011, allocations: 398.8 kB / 4.263 GB, free: 94.92 MB / 0.5964 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007412/8.012, allocations: 0.791 MB / 4.264 GB, free: 94.44 MB / 0.5964 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003387/8.015, allocations: 0.8425 MB / 4.265 GB, free: 94.42 MB / 0.5964 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.706e-06/8.015, allocations: 3.344 kB / 4.265 GB, free: 94.42 MB / 0.5964 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.008444/8.024, allocations: 2.766 MB / 4.267 GB, free: 94.31 MB / 0.5964 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008936/8.025, allocations: 4.448 MB / 4.272 GB, free: 89.64 MB / 0.5964 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.661e-05/8.025, allocations: 11.88 kB / 4.272 GB, free: 89.64 MB / 0.5964 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.436e-05/8.025, allocations: 15.84 kB / 4.272 GB, free: 89.64 MB / 0.5964 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001299/8.026, allocations: 371.9 kB / 4.272 GB, free: 89.63 MB / 0.5964 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.235e-05/8.026, allocations: 24.8 kB / 4.272 GB, free: 89.63 MB / 0.5964 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002335/8.028, allocations: 383.4 kB / 4.273 GB, free: 89.56 MB / 0.5964 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001413/8.028, allocations: 71.06 kB / 4.273 GB, free: 89.56 MB / 0.5964 GB Notification: Performance of prepare postOptimizeDAE: time 7.724e-06/8.028, allocations: 7.188 kB / 4.273 GB, free: 89.56 MB / 0.5964 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003958/8.032, allocations: 1.341 MB / 4.274 GB, free: 89.54 MB / 0.5964 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.758e-05/8.032, allocations: 10.97 kB / 4.274 GB, free: 89.54 MB / 0.5964 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.953e-05/8.032, allocations: 21.55 kB / 4.274 GB, free: 89.54 MB / 0.5964 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/8.034, allocations: 366.5 kB / 4.274 GB, free: 89.54 MB / 0.5964 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.235e-05/8.034, allocations: 28.62 kB / 4.274 GB, free: 89.54 MB / 0.5964 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001655/8.035, allocations: 248.3 kB / 4.275 GB, free: 89.49 MB / 0.5964 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000132/8.036, allocations: 75.23 kB / 4.275 GB, free: 89.49 MB / 0.5964 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002743/8.036, allocations: 150.9 kB / 4.275 GB, free: 89.38 MB / 0.5964 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002221/8.038, allocations: 0.7139 MB / 4.275 GB, free: 89.32 MB / 0.5964 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001936/8.04, allocations: 1.018 MB / 4.276 GB, free: 89.14 MB / 0.5964 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/8.04, allocations: 3.312 kB / 4.276 GB, free: 89.14 MB / 0.5964 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/8.04, allocations: 1.969 kB / 4.276 GB, free: 89.14 MB / 0.5964 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/8.04, allocations: 13.56 kB / 4.277 GB, free: 89.14 MB / 0.5964 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003476/8.043, allocations: 2.146 MB / 4.279 GB, free: 88.69 MB / 0.5964 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/8.044, allocations: 3.875 kB / 4.279 GB, free: 88.69 MB / 0.5964 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003429/8.044, allocations: 98.89 kB / 4.279 GB, free: 88.68 MB / 0.5964 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.004e-05/8.044, allocations: 11.39 kB / 4.279 GB, free: 88.68 MB / 0.5964 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.812e-05/8.044, allocations: 7.469 kB / 4.279 GB, free: 88.68 MB / 0.5964 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.913e-06/8.044, allocations: 7.219 kB / 4.279 GB, free: 88.68 MB / 0.5964 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/8.044, allocations: 7.719 kB / 4.279 GB, free: 88.68 MB / 0.5964 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003143/8.047, allocations: 1.585 MB / 4.28 GB, free: 87.96 MB / 0.5964 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009329/8.048, allocations: 0.563 MB / 4.281 GB, free: 87.79 MB / 0.5964 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004334/8.048, allocations: 7.125 kB / 4.281 GB, free: 87.79 MB / 0.5964 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001123/8.05, allocations: 107.1 kB / 4.281 GB, free: 87.78 MB / 0.5964 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.301e-05/8.05, allocations: 33.39 kB / 4.281 GB, free: 87.77 MB / 0.5964 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.464e-05/8.05, allocations: 28.77 kB / 4.281 GB, free: 87.77 MB / 0.5964 GB Notification: Performance of sort global known variables: time 0.001585/8.051, allocations: 1.245 MB / 4.282 GB, free: 87.66 MB / 0.5964 GB Notification: Performance of remove unused functions: time 0.007722/8.059, allocations: 1.827 MB / 4.284 GB, free: 87.55 MB / 0.5964 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.009435/8.068, allocations: 2.219 MB / 4.286 GB, free: 87.19 MB / 0.5964 GB Notification: Performance of simCode: created initialization part: time 0.002571/8.071, allocations: 1.389 MB / 4.288 GB, free: 87.18 MB / 0.5964 GB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/8.071, allocations: 0 / 4.288 GB, free: 87.18 MB / 0.5964 GB Notification: Performance of simCode: created simulation system equations: time 0.0002407/8.071, allocations: 160.2 kB / 4.288 GB, free: 87.18 MB / 0.5964 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002407/8.074, allocations: 414.6 kB / 4.288 GB, free: 87.15 MB / 0.5964 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00324/8.077, allocations: 1.673 MB / 4.29 GB, free: 86.51 MB / 0.5964 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009101/8.078, allocations: 1.411 MB / 4.291 GB, free: 85.77 MB / 0.5964 GB Notification: Performance of SimCode: time 7.81e-07/8.078, allocations: 0 / 4.291 GB, free: 85.77 MB / 0.5964 GB Notification: Performance of Templates: time 0.07459/8.153, allocations: 54.23 MB / 4.344 GB, free: 82.23 MB / 0.5964 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveCharacteristics/TestValveCharacteristics.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches