Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.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.MultiBody.Sensors.AbsoluteSensor2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r.3.|freeMotion.r.2.|freeMotion.r.1.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2") translateModel(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r.3.|freeMotion.r.2.|freeMotion.r.1.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2") [: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.001532/0.001532, allocations: 197.8 kB / 8.542 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.227/1.227, allocations: 225.5 MB / 234.4 MB, free: 3.426 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009552/0.0009554, allocations: 95.75 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1819/0.1819, allocations: 45.13 MB / 383.3 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 6.021e-06/6.051e-06, allocations: 0 / 452.6 MB, free: 76.23 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1037, allocations: 63.25 MB / 0.5038 GB, free: 13.06 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3435/0.4472, allocations: 106.9 MB / 0.6082 GB, free: 12.33 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003584/0.4477, allocations: 75.89 kB / 0.6082 GB, free: 12.3 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.1942/0.6418, allocations: 77.83 MB / 0.6843 GB, free: 6.652 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.000208/0.6421, allocations: 75.98 kB / 0.6843 GB, free: 6.578 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1568 * Number of variables: 1568 Notification: Performance of Generate backend data structure: time 0.01194/0.6541, allocations: 3.46 MB / 0.6877 GB, free: 3.055 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.903e-05/0.6541, allocations: 8.031 kB / 0.6877 GB, free: 3.047 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01409/0.6682, allocations: 2.72 MB / 0.6904 GB, free: 320 kB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006864/0.6751, allocations: 2.297 MB / 0.6926 GB, free: 13.96 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002464/0.6754, allocations: 128 kB / 0.6927 GB, free: 13.84 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002183/0.6776, allocations: 223.9 kB / 0.6929 GB, free: 13.62 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01312/0.6907, allocations: 6.592 MB / 0.6994 GB, free: 7.023 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02508/0.7159, allocations: 9.857 MB / 0.709 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002035/0.7161, allocations: 47.56 kB / 0.7091 GB, free: 12.17 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001873/0.718, allocations: 28 kB / 0.7091 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001619/0.7197, allocations: 1.166 MB / 0.7102 GB, free: 10.96 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2618/0.9815, allocations: 45.49 MB / 0.7546 GB, free: 181.3 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003195/0.9847, allocations: 2.739 MB / 0.7573 GB, free: 180.1 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001407/0.9862, allocations: 1.017 MB / 0.7583 GB, free: 180 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001014/0.9863, allocations: 23.78 kB / 0.7583 GB, free: 180 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.388e-05/0.9863, allocations: 54.25 kB / 0.7584 GB, free: 180 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=171): time 4.318e-06/0.9864, allocations: 4.25 kB / 0.7584 GB, free: 180 MB / 0.5261 GB Notification: Performance of matching and sorting (n=171): time 0.004655/0.991, allocations: 2.433 MB / 0.7608 GB, free: 179.9 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.684e-05/0.9911, allocations: 166.9 kB / 0.7609 GB, free: 179.8 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007349/0.9985, allocations: 3.118 MB / 0.764 GB, free: 179.6 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001644/0.9987, allocations: 25.7 kB / 0.764 GB, free: 179.5 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00173/1, allocations: 3.185 MB / 0.7671 GB, free: 177.9 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006394/1.001, allocations: 0.6647 MB / 0.7678 GB, free: 177.6 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000232/1.001, allocations: 0 / 0.7678 GB, free: 177.6 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003511/1.002, allocations: 0.6609 MB / 0.7684 GB, free: 177.2 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002268/1.004, allocations: 1.914 MB / 0.7703 GB, free: 177.2 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003792/1.008, allocations: 6.353 MB / 0.7765 GB, free: 171.4 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004125/1.012, allocations: 3.594 MB / 0.78 GB, free: 171.4 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.065e-05/1.012, allocations: 42.72 kB / 0.78 GB, free: 171.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=903) (initialization): time 0.01049/1.022, allocations: 7.152 MB / 0.787 GB, free: 170.8 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/1.022, allocations: 5.656 kB / 0.787 GB, free: 170.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001541/1.023, allocations: 161.4 kB / 0.7872 GB, free: 170.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001785/1.023, allocations: 230.5 kB / 0.7874 GB, free: 170.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004284/1.027, allocations: 1.558 MB / 0.7889 GB, free: 170.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000183/1.027, allocations: 313.4 kB / 0.7892 GB, free: 170.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005076/1.032, allocations: 0.7721 MB / 0.79 GB, free: 170.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007916/1.033, allocations: 431.5 kB / 0.7904 GB, free: 170.1 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 730 * Number of states: 0 () * Number of discrete variables: 23 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (855): * Single equations (assignments): 849 * Array equations: 6 * 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.0008505/1.034, allocations: 484.8 kB / 0.7908 GB, free: 169.7 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005006/1.035, allocations: 305.3 kB / 0.7911 GB, free: 169.6 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00235/1.037, allocations: 1.773 MB / 0.7929 GB, free: 169.4 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.284e-05/1.037, allocations: 31.95 kB / 0.7929 GB, free: 169.4 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/1.037, allocations: 3.5 kB / 0.7929 GB, free: 169.4 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.521e-05/1.037, allocations: 10.67 kB / 0.7929 GB, free: 169.4 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008795/1.046, allocations: 5.756 MB / 0.7985 GB, free: 168.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.346e-05/1.046, allocations: 7 kB / 0.7985 GB, free: 168.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001024/1.047, allocations: 221 kB / 0.7987 GB, free: 168.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.638e-05/1.047, allocations: 14.94 kB / 0.7988 GB, free: 168.4 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.951e-05/1.047, allocations: 11.19 kB / 0.7988 GB, free: 168.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.316e-05/1.047, allocations: 17.69 kB / 0.7988 GB, free: 168.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.085e-06/1.047, allocations: 7.656 kB / 0.7988 GB, free: 168.4 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002942/1.05, allocations: 3.432 MB / 0.8021 GB, free: 166.8 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006124/1.051, allocations: 370.8 kB / 0.8025 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003472/1.051, allocations: 14.23 kB / 0.8025 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009538/1.052, allocations: 30.42 kB / 0.8025 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001741/1.052, allocations: 87.45 kB / 0.8026 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001038/1.052, allocations: 49.22 kB / 0.8027 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002729/1.055, allocations: 2.04 MB / 0.8047 GB, free: 165.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005207/1.06, allocations: 0.9865 MB / 0.8056 GB, free: 165.6 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 119 * Array equations: 6 * 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.0003892/1.061, allocations: 154.5 kB / 0.8058 GB, free: 165.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007733/1.068, allocations: 4.423 MB / 0.8101 GB, free: 164.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.506e-06/1.068, allocations: 1.031 kB / 0.8101 GB, free: 164.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001367/1.07, allocations: 1.053 MB / 0.8111 GB, free: 163.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001382/1.071, allocations: 263 kB / 0.8114 GB, free: 163.3 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01363/1.085, allocations: 7.275 MB / 0.8185 GB, free: 156.6 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004643/1.09, allocations: 3.579 MB / 0.822 GB, free: 153.8 MB / 0.5261 GB Notification: Performance of SimCode: time 1.373e-06/1.09, allocations: 3.938 kB / 0.822 GB, free: 153.8 MB / 0.5261 GB Notification: Performance of Templates: time 0.06089/1.15, allocations: 28.24 MB / 0.8496 GB, free: 135.8 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/AbsoluteSensor2/AbsoluteSensor2.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches