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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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") [: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 trunk/package.mo): time 0.001265/0.001265, allocations: 199.6 kB / 8.536 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 225.5 MB / 234.4 MB, free: 3.297 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001037/0.001037, allocations: 92.33 kB / 286.3 MB, free: 5.285 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2433/0.2433, allocations: 45.15 MB / 383.3 MB, free: 0.543 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 8.677e-06/8.687e-06, allocations: 0 / 452.6 MB, free: 76.2 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.167/0.1671, allocations: 63.24 MB / 0.5038 GB, free: 13.03 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.438/6.605, allocations: 2.778 GB / 3.282 GB, free: 125.6 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000276/6.605, allocations: 88.36 kB / 3.282 GB, free: 125.6 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.112/8.717, allocations: 0.6401 GB / 3.922 GB, free: 47.45 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002749/8.717, allocations: 41.06 kB / 3.922 GB, free: 47.44 MB / 0.5417 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.01125/8.729, allocations: 2.491 MB / 3.925 GB, free: 46.25 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/8.729, allocations: 9.688 kB / 3.925 GB, free: 46.25 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008951/8.738, allocations: 1.02 MB / 3.926 GB, free: 46.17 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002921/8.741, allocations: 1.002 MB / 3.927 GB, free: 45.81 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001839/8.741, allocations: 53.03 kB / 3.927 GB, free: 45.81 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004237/8.741, allocations: 65.41 kB / 3.927 GB, free: 45.81 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002764/8.744, allocations: 1.224 MB / 3.928 GB, free: 45.8 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002974/8.747, allocations: 1.435 MB / 3.929 GB, free: 45.35 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.391e-05/8.747, allocations: 3.938 kB / 3.929 GB, free: 45.35 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000229/8.747, allocations: 11.53 kB / 3.929 GB, free: 45.35 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.445e-05/8.747, allocations: 31.56 kB / 3.929 GB, free: 45.35 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1443/8.892, allocations: 75.62 MB / 4.003 GB, free: 24.03 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001251/8.893, allocations: 0.7997 MB / 4.004 GB, free: 23.32 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005532/8.894, allocations: 413.2 kB / 4.004 GB, free: 22.95 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 1.09/9.983, allocations: 318 MB / 4.315 GB, free: 93.7 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.96e-05/9.983, allocations: 44.64 kB / 4.315 GB, free: 93.66 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=39): time 3.406e-06/9.983, allocations: 0 / 4.315 GB, free: 93.66 MB / 0.6042 GB Notification: Performance of matching and sorting (n=39): time 0.005106/9.988, allocations: 1.383 MB / 4.316 GB, free: 93.62 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.763e-05/9.988, allocations: 267.6 kB / 4.317 GB, free: 93.31 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001616/9.99, allocations: 1.041 MB / 4.318 GB, free: 93.18 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001/9.99, allocations: 32.67 kB / 4.318 GB, free: 93.14 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004247/9.991, allocations: 0.6409 MB / 4.318 GB, free: 92.84 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001222/9.991, allocations: 144 kB / 4.318 GB, free: 92.77 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.908e-05/9.991, allocations: 3.844 kB / 4.318 GB, free: 92.77 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 9.66e-05/9.991, allocations: 344.3 kB / 4.319 GB, free: 92.47 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006049/9.992, allocations: 401.6 kB / 4.319 GB, free: 92.47 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009567/9.993, allocations: 0.7938 MB / 4.32 GB, free: 91.98 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003544/9.996, allocations: 0.8429 MB / 4.321 GB, free: 91.96 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.017e-05/9.996, allocations: 5.234 kB / 4.321 GB, free: 91.96 MB / 0.6042 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.008908/10.01, allocations: 2.761 MB / 4.323 GB, free: 91.86 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009082/10.01, allocations: 4.44 MB / 4.328 GB, free: 87.19 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.009e-05/10.01, allocations: 10.84 kB / 4.328 GB, free: 87.19 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.167e-05/10.01, allocations: 23.78 kB / 4.328 GB, free: 87.19 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0014/10.01, allocations: 374.8 kB / 4.328 GB, free: 87.18 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.218e-05/10.01, allocations: 26.11 kB / 4.328 GB, free: 87.18 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002343/10.01, allocations: 373.8 kB / 4.328 GB, free: 87.11 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001427/10.01, allocations: 77.94 kB / 4.329 GB, free: 87.11 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/10.01, allocations: 3.875 kB / 4.329 GB, free: 87.11 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004101/10.01, allocations: 1.338 MB / 4.33 GB, free: 87.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.442e-05/10.01, allocations: 19.75 kB / 4.33 GB, free: 87.09 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.415e-05/10.01, allocations: 18.72 kB / 4.33 GB, free: 87.09 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001201/10.02, allocations: 373.7 kB / 4.33 GB, free: 87.08 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.898e-05/10.02, allocations: 24.19 kB / 4.33 GB, free: 87.08 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001866/10.02, allocations: 252 kB / 4.331 GB, free: 87.04 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001226/10.02, allocations: 67.38 kB / 4.331 GB, free: 87.04 MB / 0.6042 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.0003373/10.02, allocations: 156.6 kB / 4.331 GB, free: 86.93 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002153/10.02, allocations: 0.7086 MB / 4.331 GB, free: 86.87 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001906/10.02, allocations: 1.015 MB / 4.332 GB, free: 86.7 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/10.02, allocations: 7.469 kB / 4.332 GB, free: 86.7 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/10.02, allocations: 3.844 kB / 4.332 GB, free: 86.7 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.391e-06/10.02, allocations: 1.203 kB / 4.332 GB, free: 86.7 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003208/10.03, allocations: 2.155 MB / 4.335 GB, free: 86.24 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/10.03, allocations: 5.438 kB / 4.335 GB, free: 86.24 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003606/10.03, allocations: 101.3 kB / 4.335 GB, free: 86.24 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.057e-05/10.03, allocations: 7.562 kB / 4.335 GB, free: 86.24 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.682e-05/10.03, allocations: 6.188 kB / 4.335 GB, free: 86.24 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.993e-06/10.03, allocations: 12.12 kB / 4.335 GB, free: 86.24 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/10.03, allocations: 5.906 kB / 4.335 GB, free: 86.24 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003117/10.03, allocations: 1.587 MB / 4.336 GB, free: 85.52 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008911/10.03, allocations: 0.5624 MB / 4.337 GB, free: 85.34 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000291/10.03, allocations: 9.953 kB / 4.337 GB, free: 85.34 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00099/10.03, allocations: 112.9 kB / 4.337 GB, free: 85.33 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.321e-05/10.03, allocations: 30.33 kB / 4.337 GB, free: 85.32 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.187e-05/10.03, allocations: 25.88 kB / 4.337 GB, free: 85.32 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.001611/10.03, allocations: 1.247 MB / 4.338 GB, free: 85.21 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.008175/10.04, allocations: 1.84 MB / 4.34 GB, free: 85.11 MB / 0.6042 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.009456/10.05, allocations: 2.208 MB / 4.342 GB, free: 84.77 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.002764/10.05, allocations: 1.386 MB / 4.343 GB, free: 84.75 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 8.136e-06/10.05, allocations: 0 / 4.343 GB, free: 84.75 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002915/10.05, allocations: 163 kB / 4.344 GB, free: 84.75 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002582/10.06, allocations: 408.4 kB / 4.344 GB, free: 84.73 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003588/10.06, allocations: 1.678 MB / 4.346 GB, free: 84.09 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009882/10.06, allocations: 1.409 MB / 4.347 GB, free: 83.34 MB / 0.6042 GB Notification: Performance of SimCode: time 2.485e-06/10.06, allocations: 3.625 kB / 4.347 GB, free: 83.34 MB / 0.6042 GB Notification: Performance of Templates: time 0.07678/10.14, allocations: 54.29 MB / 4.4 GB, free: 78.86 MB / 0.6042 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveCharacteristics/TestValveCharacteristics.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches