Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.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.TestRegSquare2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") [: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.001292/0.001292, allocations: 196.7 kB / 8.538 MB, free: 1.746 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 225.5 MB / 234.4 MB, free: 3.352 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008874/0.0008874, allocations: 92.94 kB / 286.3 MB, free: 5.25 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2067/0.2067, allocations: 45.15 MB / 383.3 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 8.486e-06/8.777e-06, allocations: 0 / 452.6 MB, free: 76.18 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1364, allocations: 63.23 MB / 0.5038 GB, free: 13.01 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.373/0.5095, allocations: 85.71 MB / 0.5875 GB, free: 1.184 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001925/0.5098, allocations: 62.22 kB / 0.5875 GB, free: 1.152 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.004474/0.5142, allocations: 1.472 MB / 0.589 GB, free: 15.95 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.808e-06/0.5143, allocations: 8 kB / 0.589 GB, free: 15.94 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003641/0.5146, allocations: 365.1 kB / 0.5893 GB, free: 15.54 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.5147, allocations: 8.031 kB / 0.5893 GB, free: 15.54 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.841e-05/0.5147, allocations: 7.906 kB / 0.5893 GB, free: 15.53 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001312/0.5149, allocations: 163 kB / 0.5895 GB, free: 15.33 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.446e-05/0.5149, allocations: 4 kB / 0.5895 GB, free: 15.32 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.39e-05/0.5149, allocations: 3.906 kB / 0.5895 GB, free: 15.32 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.829e-05/0.515, allocations: 24.86 kB / 0.5895 GB, free: 15.3 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.84e-05/0.5151, allocations: 52.12 kB / 0.5896 GB, free: 15.25 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.5151, allocations: 0 / 0.5896 GB, free: 15.25 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/0.5152, allocations: 4 kB / 0.5896 GB, free: 15.25 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.5152, allocations: 0 / 0.5896 GB, free: 15.25 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001783/0.5154, allocations: 145.8 kB / 0.5897 GB, free: 15.07 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001901/0.5156, allocations: 48.67 kB / 0.5898 GB, free: 15.02 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.411e-05/0.5156, allocations: 23.67 kB / 0.5898 GB, free: 15 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002594/0.5159, allocations: 121 kB / 0.5899 GB, free: 14.87 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.953e-05/0.5159, allocations: 30.56 kB / 0.5899 GB, free: 14.83 MB / 394.7 MB Notification: Performance of pre-optimization done (n=9): time 1.112e-06/0.5159, allocations: 0 / 0.5899 GB, free: 14.83 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.03766/0.5536, allocations: 2.18 MB / 0.5921 GB, free: 12.8 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.324e-05/0.5537, allocations: 55.41 kB / 0.5921 GB, free: 12.73 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.821e-05/0.5537, allocations: 97.05 kB / 0.5922 GB, free: 12.64 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.289e-05/0.5538, allocations: 25.7 kB / 0.5922 GB, free: 12.61 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.015e-05/0.5538, allocations: 84.08 kB / 0.5923 GB, free: 12.52 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.881e-05/0.5539, allocations: 58.11 kB / 0.5924 GB, free: 12.47 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.486e-05/0.5539, allocations: 0 / 0.5924 GB, free: 12.47 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.554, allocations: 326.1 kB / 0.5927 GB, free: 12.14 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000205/0.5543, allocations: 135.8 kB / 0.5928 GB, free: 12.07 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001894/0.5545, allocations: 142.8 kB / 0.5929 GB, free: 12 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005228/0.555, allocations: 193.5 kB / 0.5931 GB, free: 11.87 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.555, allocations: 0 / 0.5931 GB, free: 11.87 MB / 394.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0008696/0.5559, allocations: 420.3 kB / 0.5935 GB, free: 11.57 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.5559, allocations: 4 kB / 0.5935 GB, free: 11.57 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.5559, allocations: 3.969 kB / 0.5935 GB, free: 11.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.5559, allocations: 4 kB / 0.5935 GB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004436/0.5564, allocations: 87.25 kB / 0.5936 GB, free: 11.48 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.5564, allocations: 4 kB / 0.5936 GB, free: 11.48 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002331/0.5566, allocations: 27.97 kB / 0.5936 GB, free: 11.45 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.267e-05/0.5567, allocations: 15.98 kB / 0.5937 GB, free: 11.43 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (19): * Single equations (assignments): 19 * 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.0001121/0.5568, allocations: 101 kB / 0.5938 GB, free: 11.33 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.425e-05/0.5568, allocations: 7.906 kB / 0.5938 GB, free: 11.32 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00128/0.5581, allocations: 0.5386 MB / 0.5943 GB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.5581, allocations: 7.906 kB / 0.5943 GB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.5582, allocations: 0 / 0.5943 GB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.5582, allocations: 3.984 kB / 0.5943 GB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002024/0.5602, allocations: 0.8526 MB / 0.5951 GB, free: 10.05 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.5602, allocations: 0 / 0.5951 GB, free: 10.05 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003255/0.5605, allocations: 84.06 kB / 0.5952 GB, free: 9.973 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.5606, allocations: 4 kB / 0.5952 GB, free: 9.969 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.868e-05/0.5606, allocations: 8 kB / 0.5952 GB, free: 9.961 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/0.5606, allocations: 7.984 kB / 0.5952 GB, free: 9.953 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.5606, allocations: 3.906 kB / 0.5952 GB, free: 9.949 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007822/0.5614, allocations: 497.7 kB / 0.5957 GB, free: 9.453 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.84e-05/0.5614, allocations: 85.02 kB / 0.5958 GB, free: 9.352 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.32e-05/0.5615, allocations: 4 kB / 0.5958 GB, free: 9.348 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002412/0.5617, allocations: 31.03 kB / 0.5958 GB, free: 9.32 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.725e-05/0.5618, allocations: 15.91 kB / 0.5958 GB, free: 9.305 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.175e-05/0.5618, allocations: 19.11 kB / 0.5959 GB, free: 9.289 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.403e-05/0.5619, allocations: 79.28 kB / 0.5959 GB, free: 9.211 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008556/0.5627, allocations: 343.1 kB / 0.5963 GB, free: 8.879 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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.001281/0.564, allocations: 266.8 kB / 0.5965 GB, free: 8.605 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004389/0.5645, allocations: 267.9 kB / 0.5968 GB, free: 8.438 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.5645, allocations: 0 / 0.5968 GB, free: 8.438 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001738/0.5647, allocations: 110.2 kB / 0.5969 GB, free: 8.355 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001641/0.5648, allocations: 11.23 kB / 0.5969 GB, free: 8.348 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00124/0.5661, allocations: 356.4 kB / 0.5972 GB, free: 7.988 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004719/0.5666, allocations: 0.7507 MB / 0.598 GB, free: 7.211 MB / 394.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5666, allocations: 0 / 0.598 GB, free: 7.211 MB / 394.7 MB Notification: Performance of Templates: time 0.02356/0.5901, allocations: 17.13 MB / 0.6147 GB, free: 6.113 MB / 410.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches