Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.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.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001625/0.001625, allocations: 195.2 kB / 8.535 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 225.5 MB / 234.4 MB, free: 3.461 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008697/0.0008697, allocations: 92.16 kB / 286.3 MB, free: 5.188 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1989/0.1989, allocations: 45.14 MB / 383.3 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 5.32e-06/5.36e-06, allocations: 0 / 452.6 MB, free: 76.22 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1071, allocations: 63.24 MB / 0.5038 GB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3317/0.4389, allocations: 110.4 MB / 0.6116 GB, free: 8.742 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002295/0.4392, allocations: 73.25 kB / 0.6117 GB, free: 8.707 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.2091/0.6483, allocations: 81.57 MB / 0.6914 GB, free: 15.49 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002002/0.6486, allocations: 80.19 kB / 0.6914 GB, free: 15.41 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.01219/0.6608, allocations: 3.817 MB / 0.6952 GB, free: 11.54 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.6608, allocations: 8.031 kB / 0.6952 GB, free: 11.53 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01752/0.6783, allocations: 4.069 MB / 0.6992 GB, free: 7.445 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01024/0.6886, allocations: 3.898 MB / 0.703 GB, free: 3.48 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001668/0.6888, allocations: 132 kB / 0.7031 GB, free: 3.352 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001391/0.6902, allocations: 247.9 kB / 0.7033 GB, free: 3.109 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009998/0.7002, allocations: 5.701 MB / 0.7089 GB, free: 13.4 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01608/0.7163, allocations: 8.887 MB / 0.7176 GB, free: 3.539 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001618/0.7166, allocations: 59.45 kB / 0.7176 GB, free: 3.48 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000576/0.7171, allocations: 28 kB / 0.7177 GB, free: 3.453 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001193/0.7183, allocations: 0.9161 MB / 0.7185 GB, free: 2.531 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1986/0.917, allocations: 42.15 MB / 0.7597 GB, free: 172.8 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002008/0.919, allocations: 2.175 MB / 0.7618 GB, free: 172.1 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001136/0.9201, allocations: 1.253 MB / 0.7631 GB, free: 172.1 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005157/0.9253, allocations: 4.361 MB / 0.7673 GB, free: 170.6 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.431e-05/0.9254, allocations: 46.66 kB / 0.7674 GB, free: 170.6 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=116): time 3.336e-06/0.9254, allocations: 0 / 0.7674 GB, free: 170.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=134): time 0.01477/0.9402, allocations: 9.681 MB / 0.7768 GB, free: 168.1 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.203e-05/0.9402, allocations: 191 kB / 0.777 GB, free: 167.9 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002949/0.9432, allocations: 2.85 MB / 0.7798 GB, free: 167.5 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 7.898e-05/0.9433, allocations: 25.7 kB / 0.7798 GB, free: 167.5 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009726/0.9443, allocations: 2.841 MB / 0.7826 GB, free: 165.9 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003147/0.9446, allocations: 0.525 MB / 0.7831 GB, free: 165.6 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001532/0.9447, allocations: 0 / 0.7831 GB, free: 165.6 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000206/0.945, allocations: 0.5371 MB / 0.7836 GB, free: 165.3 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001633/0.9466, allocations: 1.547 MB / 0.7851 GB, free: 165.2 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002656/0.9493, allocations: 5.076 MB / 0.7901 GB, free: 160.6 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002696/0.952, allocations: 2.803 MB / 0.7928 GB, free: 160.6 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.742e-05/0.952, allocations: 36.81 kB / 0.7929 GB, free: 160.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=711) (initialization): time 0.00719/0.9592, allocations: 5.908 MB / 0.7986 GB, free: 160.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.9592, allocations: 3.719 kB / 0.7986 GB, free: 160.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.744e-05/0.9593, allocations: 126.7 kB / 0.7987 GB, free: 160.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000649/0.96, allocations: 381.1 kB / 0.7991 GB, free: 160.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003243/0.9632, allocations: 1.272 MB / 0.8004 GB, free: 160.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002504/0.9658, allocations: 2.826 MB / 0.8031 GB, free: 158.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003133/0.9689, allocations: 194.9 kB / 0.8033 GB, free: 158.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003457/0.9693, allocations: 354 kB / 0.8036 GB, free: 158.8 MB / 0.5261 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.0005328/0.9698, allocations: 416.2 kB / 0.804 GB, free: 158.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003642/0.9702, allocations: 285.6 kB / 0.8043 GB, free: 158.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002261/0.9724, allocations: 1.599 MB / 0.8059 GB, free: 158.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.801e-05/0.9725, allocations: 17.2 kB / 0.8059 GB, free: 158.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.9725, allocations: 3.781 kB / 0.8059 GB, free: 158.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/0.9725, allocations: 8.797 kB / 0.8059 GB, free: 158.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006963/0.9795, allocations: 4.544 MB / 0.8103 GB, free: 157 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.792e-06/0.9795, allocations: 0 / 0.8103 GB, free: 157 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001049/0.9806, allocations: 225 kB / 0.8105 GB, free: 157 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004805/0.9811, allocations: 173 kB / 0.8107 GB, free: 156.9 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.826e-05/0.9812, allocations: 18.78 kB / 0.8107 GB, free: 156.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00209/0.9833, allocations: 2.402 MB / 0.8131 GB, free: 155.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.9833, allocations: 0 / 0.8131 GB, free: 155.2 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003759/0.987, allocations: 3.584 MB / 0.8166 GB, free: 153.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006343/0.9877, allocations: 321.7 kB / 0.8169 GB, free: 153.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003539/0.9881, allocations: 7.406 kB / 0.8169 GB, free: 153.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001042/0.9891, allocations: 64.77 kB / 0.8169 GB, free: 153.4 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001968/0.9893, allocations: 75.22 kB / 0.817 GB, free: 153.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001007/0.9894, allocations: 44.34 kB / 0.8171 GB, free: 153.4 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002483/0.9919, allocations: 1.902 MB / 0.8189 GB, free: 152.7 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004072/0.996, allocations: 0.7295 MB / 0.8196 GB, free: 152.7 MB / 0.5261 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.0003858/0.9964, allocations: 143.3 kB / 0.8198 GB, free: 152.6 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005542/1.002, allocations: 3.702 MB / 0.8234 GB, free: 151.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/1.002, allocations: 1.094 kB / 0.8234 GB, free: 151.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00132/1.003, allocations: 1.011 MB / 0.8244 GB, free: 151 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001545/1.005, allocations: 326.3 kB / 0.8247 GB, free: 150.7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01045/1.015, allocations: 6.552 MB / 0.8311 GB, free: 144.9 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003342/1.019, allocations: 3.486 MB / 0.8345 GB, free: 142.2 MB / 0.5261 GB Notification: Performance of SimCode: time 9.82e-07/1.019, allocations: 0 / 0.8345 GB, free: 142.2 MB / 0.5261 GB Notification: Performance of Templates: time 0.04801/1.067, allocations: 27.75 MB / 0.8616 GB, free: 124.6 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches