Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.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.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear") translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear") [: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.00156/0.00156, allocations: 175.2 kB / 8.519 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 221.4 MB / 230.3 MB, free: 7.781 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009489/0.0009489, allocations: 91.75 kB / 281.2 MB, free: 5.535 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1849/0.1849, allocations: 44.14 MB / 376.1 MB, free: 3.262 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.252e-06/6.282e-06, allocations: 0 / 444 MB, free: 15.64 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.129, allocations: 61.91 MB / 0.4941 GB, free: 1.648 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3299/0.459, allocations: 88.58 MB / 0.5806 GB, free: 8.227 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002221/0.4593, allocations: 59.09 kB / 0.5806 GB, free: 8.199 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03825/0.4975, allocations: 12.62 MB / 0.593 GB, free: 11.58 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.363e-06/0.4976, allocations: 0 / 0.593 GB, free: 11.58 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0007313/0.4983, allocations: 447.9 kB / 0.5934 GB, free: 11.09 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.4984, allocations: 11.97 kB / 0.5934 GB, free: 11.08 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.12e-05/0.4985, allocations: 79.19 kB / 0.5935 GB, free: 11 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001356/0.4986, allocations: 238.4 kB / 0.5937 GB, free: 10.73 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.793e-05/0.4987, allocations: 154.6 kB / 0.5939 GB, free: 10.57 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.569e-05/0.4987, allocations: 154.5 kB / 0.594 GB, free: 10.42 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.728e-05/0.4988, allocations: 158.4 kB / 0.5942 GB, free: 10.27 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.808e-05/0.4989, allocations: 105 kB / 0.5943 GB, free: 10.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.751e-05/0.499, allocations: 75.28 kB / 0.5943 GB, free: 10.08 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.807e-05/0.499, allocations: 150.6 kB / 0.5945 GB, free: 9.934 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.901e-05/0.4991, allocations: 162.6 kB / 0.5946 GB, free: 9.773 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002421/0.4993, allocations: 422.4 kB / 0.595 GB, free: 9.324 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.076e-05/0.4994, allocations: 169.1 kB / 0.5952 GB, free: 9.148 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.232e-05/0.4994, allocations: 80.14 kB / 0.5953 GB, free: 9.066 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.845e-05/0.4995, allocations: 83.28 kB / 0.5953 GB, free: 8.984 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.348e-05/0.4995, allocations: 135.5 kB / 0.5955 GB, free: 8.836 MB / 410.7 MB Notification: Performance of pre-optimization done (n=0): time 8.71e-07/0.4996, allocations: 0 / 0.5955 GB, free: 8.836 MB / 410.7 MB Notification: Performance of matching and sorting (n=0): time 7.353e-05/0.4996, allocations: 29.69 kB / 0.5955 GB, free: 8.801 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.357e-05/0.4997, allocations: 77.11 kB / 0.5956 GB, free: 8.707 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.133e-05/0.4997, allocations: 85 kB / 0.5957 GB, free: 8.617 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.351e-05/0.4997, allocations: 25.7 kB / 0.5957 GB, free: 8.586 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.989e-05/0.4998, allocations: 88.14 kB / 0.5958 GB, free: 8.496 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.693e-06/0.4998, allocations: 0 / 0.5958 GB, free: 8.496 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.5e-07/0.4998, allocations: 0 / 0.5958 GB, free: 8.496 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.4999, allocations: 310.8 kB / 0.5961 GB, free: 8.184 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.727e-06/0.4999, allocations: 0 / 0.5961 GB, free: 8.184 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.063e-05/0.4999, allocations: 3.938 kB / 0.5961 GB, free: 8.18 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.324e-05/0.5, allocations: 80.12 kB / 0.5961 GB, free: 8.102 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.212e-05/0.5, allocations: 75.28 kB / 0.5962 GB, free: 8.027 MB / 410.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.398e-05/0.5001, allocations: 33.64 kB / 0.5962 GB, free: 7.988 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.5001, allocations: 8 kB / 0.5963 GB, free: 7.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.894e-05/0.5001, allocations: 83.27 kB / 0.5963 GB, free: 7.898 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.979e-05/0.5002, allocations: 154.5 kB / 0.5965 GB, free: 7.746 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.309e-05/0.5002, allocations: 75.28 kB / 0.5966 GB, free: 7.672 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.292e-05/0.5003, allocations: 154.5 kB / 0.5967 GB, free: 7.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.717e-05/0.5004, allocations: 87.22 kB / 0.5968 GB, free: 7.434 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.219e-05/0.5004, allocations: 85.22 kB / 0.5969 GB, free: 7.352 MB / 410.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 (0): * Single equations (assignments): 0 * 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.0001209/0.5005, allocations: 255.5 kB / 0.5971 GB, free: 7.094 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.019e-05/0.5006, allocations: 101 kB / 0.5972 GB, free: 6.988 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.627e-05/0.5006, allocations: 119.6 kB / 0.5973 GB, free: 6.863 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-05/0.5007, allocations: 176.3 kB / 0.5975 GB, free: 6.684 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.894e-05/0.5008, allocations: 188.3 kB / 0.5977 GB, free: 6.492 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.863e-05/0.5009, allocations: 184.1 kB / 0.5978 GB, free: 6.305 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002522/0.5011, allocations: 377.8 kB / 0.5982 GB, free: 5.891 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.09e-05/0.5012, allocations: 105 kB / 0.5983 GB, free: 5.781 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.234e-05/0.5012, allocations: 108.9 kB / 0.5984 GB, free: 5.668 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.085e-05/0.5013, allocations: 176.3 kB / 0.5986 GB, free: 5.488 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.383e-05/0.5014, allocations: 180.3 kB / 0.5987 GB, free: 5.305 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.621e-05/0.5015, allocations: 184.2 kB / 0.5989 GB, free: 5.117 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.592e-05/0.5015, allocations: 184.3 kB / 0.5991 GB, free: 4.93 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001425/0.5017, allocations: 308 kB / 0.5994 GB, free: 4.605 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.238e-05/0.5018, allocations: 190.1 kB / 0.5996 GB, free: 4.395 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.845e-05/0.5019, allocations: 176.3 kB / 0.5997 GB, free: 4.215 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.377e-05/0.502, allocations: 108.9 kB / 0.5998 GB, free: 4.102 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.423e-05/0.502, allocations: 180.3 kB / 0.6 GB, free: 3.918 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.298e-05/0.5021, allocations: 101 kB / 0.6001 GB, free: 3.812 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.675e-05/0.5021, allocations: 75.28 kB / 0.6002 GB, free: 3.738 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008849/0.503, allocations: 167.7 kB / 0.6003 GB, free: 3.574 MB / 410.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 (0): * Single equations (assignments): 0 * 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.0009142/0.5039, allocations: 469.2 kB / 0.6008 GB, free: 3.121 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 4.763e-05/0.504, allocations: 4 kB / 0.6008 GB, free: 3.117 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.504, allocations: 0 / 0.6008 GB, free: 3.117 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.192e-06/0.504, allocations: 0 / 0.6008 GB, free: 3.117 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002843/0.5043, allocations: 0.5185 MB / 0.6013 GB, free: 2.594 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001365/0.5044, allocations: 123.3 kB / 0.6014 GB, free: 2.449 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002596/0.5047, allocations: 0.6841 MB / 0.6021 GB, free: 1.738 MB / 410.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5047, allocations: 0 / 0.6021 GB, free: 1.738 MB / 410.7 MB Notification: Performance of Templates: time 0.006452/0.5112, allocations: 2.935 MB / 0.605 GB, free: 14.8 MB / 426.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches