Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") [: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.001253/0.001253, allocations: 192.1 kB / 8.533 MB, free: 1.848 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.497/1.497, allocations: 225.5 MB / 234.4 MB, free: 3.32 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001102/0.001102, allocations: 87.44 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.003e-05/1.015e-05, allocations: 4 kB / 343.1 MB, free: 8.719 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1197, allocations: 51.47 MB / 394.6 MB, free: 5.195 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3477/0.4674, allocations: 100.4 MB / 495 MB, free: 9.047 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002442/0.4677, allocations: 83.05 kB / 495.1 MB, free: 9.008 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.2412/0.7089, allocations: 90.3 MB / 0.5717 GB, free: 3.648 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002752/0.7092, allocations: 84 kB / 0.5717 GB, free: 3.566 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.1723/0.8815, allocations: 4.444 MB / 0.5761 GB, free: 124.7 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.8815, allocations: 8 kB / 0.5761 GB, free: 124.7 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01669/0.8982, allocations: 4.089 MB / 0.5801 GB, free: 124.4 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01041/0.9087, allocations: 4.259 MB / 0.5842 GB, free: 124.1 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001825/0.9089, allocations: 143.3 kB / 0.5844 GB, free: 124.1 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001912/0.9108, allocations: 261.6 kB / 0.5846 GB, free: 124.1 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01251/0.9233, allocations: 6.608 MB / 0.5911 GB, free: 124 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01712/0.9405, allocations: 10.05 MB / 0.6009 GB, free: 121.3 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001571/0.9407, allocations: 59.75 kB / 0.6009 GB, free: 121.3 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005599/0.9413, allocations: 31 kB / 0.601 GB, free: 121.3 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001124/0.9424, allocations: 1.163 MB / 0.6021 GB, free: 121.3 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0498/0.9922, allocations: 48.99 MB / 0.65 GB, free: 88.99 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00456/0.9968, allocations: 3.782 MB / 0.6536 GB, free: 86.97 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002603/0.9995, allocations: 2.273 MB / 0.6559 GB, free: 86.05 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01182/1.011, allocations: 6.524 MB / 0.6622 GB, free: 82.71 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.288e-05/1.011, allocations: 58.84 kB / 0.6623 GB, free: 82.66 MB / 442.7 MB Notification: Performance of pre-optimization done (n=153): time 6.031e-06/1.011, allocations: 0 / 0.6623 GB, free: 82.66 MB / 442.7 MB Notification: Performance of matching and sorting (n=174): time 0.03283/1.044, allocations: 13.98 MB / 0.6759 GB, free: 77.09 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.755e-05/1.044, allocations: 175.6 kB / 0.6761 GB, free: 76.89 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006702/1.051, allocations: 3.333 MB / 0.6794 GB, free: 75.64 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004692/1.052, allocations: 28.92 kB / 0.6794 GB, free: 75.61 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002015/1.054, allocations: 3.109 MB / 0.6824 GB, free: 73.21 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009037/1.055, allocations: 0.6625 MB / 0.6831 GB, free: 72.73 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002547/1.055, allocations: 0 / 0.6831 GB, free: 72.73 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003436/1.055, allocations: 0.5755 MB / 0.6836 GB, free: 72.31 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00273/1.058, allocations: 2.124 MB / 0.6857 GB, free: 71.59 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0041/1.062, allocations: 5.926 MB / 0.6915 GB, free: 65.64 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004593/1.067, allocations: 3.559 MB / 0.695 GB, free: 64.34 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.937e-05/1.067, allocations: 43.53 kB / 0.695 GB, free: 64.33 MB / 442.7 MB Notification: Performance of matching and sorting (n=819) (initialization): time 0.01439/1.081, allocations: 7.826 MB / 0.7027 GB, free: 59.96 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.786e-05/1.081, allocations: 4.969 kB / 0.7027 GB, free: 59.95 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001581/1.081, allocations: 136 kB / 0.7028 GB, free: 59.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001989/1.083, allocations: 0.8715 MB / 0.7036 GB, free: 59.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005135/1.089, allocations: 1.463 MB / 0.7051 GB, free: 57.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006313/1.095, allocations: 5.241 MB / 0.7102 GB, free: 53.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006199/1.101, allocations: 198.3 kB / 0.7104 GB, free: 52.95 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00176/1.103, allocations: 387.5 kB / 0.7108 GB, free: 52.59 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * Number of states: 0 () * Number of discrete variables: 46 (fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],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],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (771): * Single equations (assignments): 767 * 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 {(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00243/1.105, allocations: 446.3 kB / 0.7112 GB, free: 52.14 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001144/1.106, allocations: 339.6 kB / 0.7115 GB, free: 51.81 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006552/1.113, allocations: 3.223 MB / 0.7146 GB, free: 49.18 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.974e-05/1.113, allocations: 16 kB / 0.7147 GB, free: 49.16 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.554e-05/1.113, allocations: 6.562 kB / 0.7147 GB, free: 49.16 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.178e-05/1.113, allocations: 6.891 kB / 0.7147 GB, free: 49.16 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01735/1.131, allocations: 7.314 MB / 0.7218 GB, free: 43.21 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.826e-05/1.131, allocations: 0 / 0.7218 GB, free: 43.21 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001703/1.132, allocations: 290.7 kB / 0.7221 GB, free: 42.98 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002019/1.134, allocations: 0.6634 MB / 0.7227 GB, free: 42.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003062/1.135, allocations: 9.406 kB / 0.7228 GB, free: 42.49 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006281/1.141, allocations: 4.827 MB / 0.7275 GB, free: 38.14 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.094e-06/1.141, allocations: 0 / 0.7275 GB, free: 38.14 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008953/1.15, allocations: 5.955 MB / 0.7333 GB, free: 32.87 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001276/1.151, allocations: 383.3 kB / 0.7336 GB, free: 32.48 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001108/1.152, allocations: 7.422 kB / 0.7337 GB, free: 32.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002041/1.155, allocations: 52.58 kB / 0.7337 GB, free: 32.45 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002703/1.155, allocations: 75.7 kB / 0.7338 GB, free: 32.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001629/1.155, allocations: 40 kB / 0.7338 GB, free: 32.36 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.005121/1.16, allocations: 2.242 MB / 0.736 GB, free: 30.43 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007456/1.168, allocations: 0.8913 MB / 0.7369 GB, free: 29.54 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 129 * 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 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006189/1.168, allocations: 152.9 kB / 0.737 GB, free: 29.4 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007937/1.176, allocations: 5.127 MB / 0.742 GB, free: 24.76 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/1.176, allocations: 4.062 kB / 0.742 GB, free: 24.75 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002585/1.179, allocations: 1.716 MB / 0.7437 GB, free: 23.21 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002241/1.181, allocations: 348.9 kB / 0.744 GB, free: 22.91 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0163/1.197, allocations: 8.167 MB / 0.752 GB, free: 15.57 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004457/1.202, allocations: 3.808 MB / 0.7557 GB, free: 12.64 MB / 442.7 MB Notification: Performance of SimCode: time 8.82e-07/1.202, allocations: 0 / 0.7557 GB, free: 12.64 MB / 442.7 MB Notification: Performance of Templates: time 0.228/1.43, allocations: 37.46 MB / 0.7923 GB, free: 109.7 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches