Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.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.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") [: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.001107/0.001107, allocations: 174.4 kB / 8.518 MB, free: 1.844 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.228/1.228, allocations: 221.4 MB / 230.3 MB, free: 7.699 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.000909/0.0009089, allocations: 91.17 kB / 281.2 MB, free: 5.453 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.1789/0.1789, allocations: 44.15 MB / 376.1 MB, free: 3.211 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.165e-06/8.295e-06, allocations: 4.219 kB / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1298, allocations: 61.9 MB / 0.4941 GB, free: 1.629 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3061/0.436, allocations: 109.6 MB / 0.6011 GB, free: 3.195 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001798/0.4362, allocations: 75.95 kB / 0.6011 GB, free: 3.121 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.2047/0.6409, allocations: 80.95 MB / 0.6802 GB, free: 1.641 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001942/0.6411, allocations: 79.94 kB / 0.6803 GB, free: 1.562 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1454 * Number of variables: 1454 Notification: Performance of Generate backend data structure: time 0.01157/0.6527, allocations: 3.786 MB / 0.684 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.6528, allocations: 13.47 kB / 0.684 GB, free: 13.7 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0173/0.6701, allocations: 3.999 MB / 0.6879 GB, free: 9.691 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01239/0.6825, allocations: 4.433 MB / 0.6922 GB, free: 5.191 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00021/0.6828, allocations: 132 kB / 0.6923 GB, free: 5.062 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00168/0.6845, allocations: 247.9 kB / 0.6926 GB, free: 4.82 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1598/0.8443, allocations: 5.695 MB / 0.6981 GB, free: 175.8 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01181/0.8561, allocations: 8.898 MB / 0.7068 GB, free: 173.2 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001215/0.8563, allocations: 52.47 kB / 0.7069 GB, free: 173.2 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004322/0.8567, allocations: 27.38 kB / 0.7069 GB, free: 173.2 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007767/0.8575, allocations: 0.9148 MB / 0.7078 GB, free: 173.2 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03035/0.8879, allocations: 42.15 MB / 0.749 GB, free: 146.7 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00203/0.8899, allocations: 2.176 MB / 0.7511 GB, free: 145.7 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001114/0.891, allocations: 1.251 MB / 0.7523 GB, free: 145.2 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005046/0.8961, allocations: 4.373 MB / 0.7566 GB, free: 142.7 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.053e-05/0.8961, allocations: 50.03 kB / 0.7566 GB, free: 142.6 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=116): time 2.816e-06/0.8961, allocations: 3.188 kB / 0.7566 GB, free: 142.6 MB / 0.4948 GB Notification: Performance of matching and sorting (n=134): time 0.01489/0.911, allocations: 9.667 MB / 0.7661 GB, free: 138.2 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.676e-05/0.9111, allocations: 201.6 kB / 0.7663 GB, free: 138 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003436/0.9146, allocations: 2.846 MB / 0.769 GB, free: 137 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001813/0.9148, allocations: 29.17 kB / 0.7691 GB, free: 137 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00109/0.9159, allocations: 2.837 MB / 0.7718 GB, free: 134.8 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003991/0.9163, allocations: 0.5252 MB / 0.7724 GB, free: 134.5 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001531/0.9164, allocations: 0 / 0.7724 GB, free: 134.5 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002042/0.9166, allocations: 0.5307 MB / 0.7729 GB, free: 134.1 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001677/0.9183, allocations: 1.551 MB / 0.7744 GB, free: 133.6 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002659/0.921, allocations: 5.075 MB / 0.7793 GB, free: 128.2 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002756/0.9238, allocations: 2.808 MB / 0.7821 GB, free: 127.4 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.549e-05/0.9238, allocations: 42.75 kB / 0.7821 GB, free: 127.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=711) (initialization): time 0.007725/0.9315, allocations: 5.897 MB / 0.7879 GB, free: 125.4 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.9316, allocations: 4.25 kB / 0.7879 GB, free: 125.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001376/0.9317, allocations: 127.6 kB / 0.788 GB, free: 125.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007641/0.9325, allocations: 381.8 kB / 0.7884 GB, free: 125.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00367/0.9362, allocations: 1.279 MB / 0.7896 GB, free: 125.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002761/0.9389, allocations: 2.817 MB / 0.7924 GB, free: 123.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00366/0.9426, allocations: 194.8 kB / 0.7926 GB, free: 123.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006277/0.9433, allocations: 350.9 kB / 0.7929 GB, free: 123.2 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 579 * Number of states: 0 () * Number of discrete variables: 36 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],cutForce.forceArrow.arrowLine.twoHeadedArrow,cutForce.forceArrow.headAtOrigin,cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (673): * Single equations (assignments): 669 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000583/0.9439, allocations: 424 kB / 0.7933 GB, free: 122.9 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003979/0.9443, allocations: 280.9 kB / 0.7936 GB, free: 122.7 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002377/0.9466, allocations: 1.605 MB / 0.7951 GB, free: 121.6 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.649e-05/0.9467, allocations: 8 kB / 0.7951 GB, free: 121.6 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.9467, allocations: 7.375 kB / 0.7952 GB, free: 121.6 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.9467, allocations: 11.52 kB / 0.7952 GB, free: 121.6 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006661/0.9534, allocations: 4.541 MB / 0.7996 GB, free: 117.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.9534, allocations: 0 / 0.7996 GB, free: 117.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/0.9544, allocations: 230.3 kB / 0.7998 GB, free: 117.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004715/0.9549, allocations: 178.5 kB / 0.8 GB, free: 117.6 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.973e-05/0.955, allocations: 7.797 kB / 0.8 GB, free: 117.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002024/0.957, allocations: 2.4 MB / 0.8023 GB, free: 115.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.9571, allocations: 2.5 kB / 0.8023 GB, free: 115.3 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003574/0.9606, allocations: 3.595 MB / 0.8059 GB, free: 112.1 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005431/0.9612, allocations: 325 kB / 0.8062 GB, free: 111.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003404/0.9615, allocations: 4 kB / 0.8062 GB, free: 111.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/0.9626, allocations: 62.08 kB / 0.8062 GB, free: 111.7 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001949/0.9628, allocations: 74.97 kB / 0.8063 GB, free: 111.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.143e-05/0.9629, allocations: 35.42 kB / 0.8063 GB, free: 111.6 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.002496/0.9654, allocations: 1.9 MB / 0.8082 GB, free: 110 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004/0.9694, allocations: 0.728 MB / 0.8089 GB, free: 109.2 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 97 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003418/0.9697, allocations: 142.7 kB / 0.809 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005109/0.9749, allocations: 3.701 MB / 0.8126 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.9749, allocations: 0 / 0.8126 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001078/0.976, allocations: 1.015 MB / 0.8136 GB, free: 104.9 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001413/0.9774, allocations: 310.4 kB / 0.8139 GB, free: 104.6 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01025/0.9877, allocations: 6.573 MB / 0.8204 GB, free: 98.72 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00333/0.991, allocations: 3.485 MB / 0.8238 GB, free: 96.02 MB / 0.4948 GB Notification: Performance of SimCode: time 6.71e-07/0.991, allocations: 0 / 0.8238 GB, free: 96.02 MB / 0.4948 GB Notification: Performance of Templates: time 0.05151/1.043, allocations: 27.74 MB / 0.8509 GB, free: 72.93 MB / 0.4948 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/DifferentiationOfForces/DifferentiationOfForces.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches