Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") [: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.001766/0.001766, allocations: 198.6 kB / 8.539 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 225.5 MB / 234.4 MB, free: 3.367 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009504/0.0009504, allocations: 92.06 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1966/0.1966, allocations: 45.14 MB / 383.3 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 7.785e-06/7.805e-06, allocations: 4 kB / 452.6 MB, free: 76.19 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1214, allocations: 63.24 MB / 0.5038 GB, free: 13.03 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3535/0.4749, allocations: 86.7 MB / 0.5884 GB, free: 248 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001957/0.4752, allocations: 65.41 kB / 0.5885 GB, free: 212 kB / 378.7 MB Notification: Performance of FrontEnd: time 0.03569/0.5109, allocations: 8.06 MB / 0.5964 GB, free: 9.391 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.5109, allocations: 0 / 0.5964 GB, free: 9.391 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003895/0.5113, allocations: 341.5 kB / 0.5967 GB, free: 9.016 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.5114, allocations: 8.031 kB / 0.5967 GB, free: 9.008 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.9e-05/0.5114, allocations: 0 / 0.5967 GB, free: 9.008 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001237/0.5115, allocations: 159.1 kB / 0.5968 GB, free: 8.812 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.643e-05/0.5116, allocations: 7.984 kB / 0.5969 GB, free: 8.805 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.315e-05/0.5116, allocations: 4 kB / 0.5969 GB, free: 8.801 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.281e-05/0.5117, allocations: 7.938 kB / 0.5969 GB, free: 8.793 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.384e-05/0.5118, allocations: 41.41 kB / 0.5969 GB, free: 8.75 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.5118, allocations: 0 / 0.5969 GB, free: 8.75 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.5118, allocations: 0 / 0.5969 GB, free: 8.75 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.5118, allocations: 0 / 0.5969 GB, free: 8.75 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003671/0.5122, allocations: 220.7 kB / 0.5971 GB, free: 8.5 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.228e-05/0.5123, allocations: 26.61 kB / 0.5971 GB, free: 8.465 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.741e-05/0.5123, allocations: 4.859 kB / 0.5971 GB, free: 8.457 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.751e-05/0.5123, allocations: 3.875 kB / 0.5972 GB, free: 8.457 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.224e-05/0.5124, allocations: 38.56 kB / 0.5972 GB, free: 8.41 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.333e-06/0.5124, allocations: 0 / 0.5972 GB, free: 8.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.000223/0.5126, allocations: 29.7 kB / 0.5972 GB, free: 8.375 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.655e-05/0.5127, allocations: 51.41 kB / 0.5973 GB, free: 8.312 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.044e-05/0.5128, allocations: 93.03 kB / 0.5974 GB, free: 8.215 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.612e-05/0.5128, allocations: 25.7 kB / 0.5974 GB, free: 8.184 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.801e-05/0.5129, allocations: 91.28 kB / 0.5975 GB, free: 8.094 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.536e-06/0.5129, allocations: 15.78 kB / 0.5975 GB, free: 8.078 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.484e-06/0.5129, allocations: 0 / 0.5975 GB, free: 8.078 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.513, allocations: 310.8 kB / 0.5978 GB, free: 7.766 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.478e-06/0.513, allocations: 0 / 0.5978 GB, free: 7.766 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.483e-05/0.513, allocations: 26.73 kB / 0.5978 GB, free: 7.734 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.573e-05/0.5131, allocations: 7.938 kB / 0.5978 GB, free: 7.727 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.5131, allocations: 0 / 0.5978 GB, free: 7.727 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 9.467e-05/0.5132, allocations: 41.69 kB / 0.5978 GB, free: 7.68 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.5132, allocations: 8 kB / 0.5979 GB, free: 7.672 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.5132, allocations: 4 kB / 0.5979 GB, free: 7.668 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.5132, allocations: 0 / 0.5979 GB, free: 7.668 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.729e-05/0.5133, allocations: 11.97 kB / 0.5979 GB, free: 7.656 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.586e-06/0.5133, allocations: 4 kB / 0.5979 GB, free: 7.652 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.082e-05/0.5133, allocations: 11.89 kB / 0.5979 GB, free: 7.641 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.362e-06/0.5133, allocations: 0 / 0.5979 GB, free: 7.641 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 6.674e-05/0.5134, allocations: 104.3 kB / 0.598 GB, free: 7.535 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.607e-05/0.5134, allocations: 4 kB / 0.598 GB, free: 7.531 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001221/0.5136, allocations: 44.81 kB / 0.598 GB, free: 7.473 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.5136, allocations: 3.906 kB / 0.598 GB, free: 7.469 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.5136, allocations: 3.984 kB / 0.598 GB, free: 7.465 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.5136, allocations: 0 / 0.598 GB, free: 7.465 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001164/0.5137, allocations: 129.6 kB / 0.5982 GB, free: 7.305 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.5137, allocations: 0 / 0.5982 GB, free: 7.305 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.405e-06/0.5137, allocations: 3.938 kB / 0.5982 GB, free: 7.301 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.5137, allocations: 96 / 0.5982 GB, free: 7.301 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-06/0.5137, allocations: 3.984 kB / 0.5982 GB, free: 7.297 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.5138, allocations: 4 kB / 0.5982 GB, free: 7.293 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.5138, allocations: 4.031 kB / 0.5982 GB, free: 7.289 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001141/0.5139, allocations: 131.5 kB / 0.5983 GB, free: 7.145 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.332e-05/0.5139, allocations: 77.11 kB / 0.5984 GB, free: 7.051 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.237e-05/0.5139, allocations: 0 / 0.5984 GB, free: 7.051 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.308e-05/0.514, allocations: 0 / 0.5984 GB, free: 7.051 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.475e-05/0.514, allocations: 10.91 kB / 0.5984 GB, free: 7.043 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.639e-06/0.514, allocations: 3.984 kB / 0.5984 GB, free: 7.039 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.216e-05/0.5141, allocations: 79.31 kB / 0.5985 GB, free: 6.961 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002825/0.5144, allocations: 51.88 kB / 0.5985 GB, free: 6.91 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0002864/0.5146, allocations: 146.2 kB / 0.5987 GB, free: 6.762 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.543e-05/0.5147, allocations: 37.64 kB / 0.5987 GB, free: 6.719 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.5147, allocations: 0 / 0.5987 GB, free: 6.719 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.654e-05/0.5148, allocations: 25.7 kB / 0.5987 GB, free: 6.688 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001274/0.5149, allocations: 7.438 kB / 0.5987 GB, free: 6.684 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002059/0.5151, allocations: 59.7 kB / 0.5988 GB, free: 6.605 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000247/0.5154, allocations: 0.6802 MB / 0.5994 GB, free: 5.898 MB / 394.7 MB Notification: Performance of SimCode: time 2.91e-07/0.5154, allocations: 0 / 0.5994 GB, free: 5.898 MB / 394.7 MB Notification: Performance of Templates: time 0.002836/0.5182, allocations: 0.9662 MB / 0.6004 GB, free: 4.945 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches