Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.0009412/0.0009412, allocations: 176.4 kB / 8.473 MB, free: 1.879 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.117/1.117, allocations: 205.2 MB / 214.1 MB, free: 5.094 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008956/0.0008956, allocations: 91.31 kB / 262.1 MB, free: 5.133 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.625e-06/7.705e-06, allocations: 0 / 315 MB, free: 41.36 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.086/0.08602, allocations: 47.57 MB / 362.6 MB, free: 9.812 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2337/0.3198, allocations: 99.44 MB / 462 MB, free: 6.133 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001958/0.32, allocations: 89.41 kB / 462.1 MB, free: 6.117 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.2469/0.5669, allocations: 94.36 MB / 0.5434 GB, free: 1.992 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001833/0.5672, allocations: 96 kB / 0.5435 GB, free: 1.898 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.01171/0.5789, allocations: 4.65 MB / 0.548 GB, free: 13.18 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.5789, allocations: 8.031 kB / 0.548 GB, free: 13.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01786/0.5968, allocations: 4.158 MB / 0.5521 GB, free: 9 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01358/0.6104, allocations: 5.093 MB / 0.5571 GB, free: 3.844 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002045/0.6107, allocations: 156 kB / 0.5572 GB, free: 3.691 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001539/0.6122, allocations: 287.8 kB / 0.5575 GB, free: 3.41 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01159/0.6238, allocations: 7.169 MB / 0.5645 GB, free: 12.23 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01986/0.6437, allocations: 10.77 MB / 0.575 GB, free: 420 kB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002268/0.644, allocations: 59.45 kB / 0.5751 GB, free: 360 kB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001217/0.6452, allocations: 28 kB / 0.5751 GB, free: 332 kB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1276/0.7728, allocations: 1.273 MB / 0.5763 GB, free: 135.1 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04573/0.8186, allocations: 51.38 MB / 0.6265 GB, free: 106.2 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004061/0.8227, allocations: 4.211 MB / 0.6306 GB, free: 105.3 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002326/0.825, allocations: 2.579 MB / 0.6331 GB, free: 105.2 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009344/0.8344, allocations: 7.295 MB / 0.6403 GB, free: 102.1 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/0.8344, allocations: 51.03 kB / 0.6403 GB, free: 102 MB / 426.7 MB Notification: Performance of pre-optimization done (n=192): time 4.618e-06/0.8344, allocations: 0 / 0.6403 GB, free: 102 MB / 426.7 MB Notification: Performance of matching and sorting (n=213): time 0.0285/0.8629, allocations: 15.38 MB / 0.6553 GB, free: 96.09 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.625e-05/0.863, allocations: 175.3 kB / 0.6555 GB, free: 95.9 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004108/0.8671, allocations: 3.473 MB / 0.6589 GB, free: 94.64 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002575/0.8674, allocations: 25.7 kB / 0.6589 GB, free: 94.61 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001178/0.8686, allocations: 3.311 MB / 0.6622 GB, free: 92.11 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005911/0.8692, allocations: 0.7934 MB / 0.6629 GB, free: 91.54 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002446/0.8694, allocations: 3.938 kB / 0.6629 GB, free: 91.53 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002589/0.8697, allocations: 0.5911 MB / 0.6635 GB, free: 91.11 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002939/0.8726, allocations: 2.433 MB / 0.6659 GB, free: 90.26 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004014/0.8767, allocations: 6.461 MB / 0.6722 GB, free: 83.97 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004552/0.8812, allocations: 3.975 MB / 0.6761 GB, free: 82.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.967e-05/0.8813, allocations: 42.53 kB / 0.6761 GB, free: 82.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.01243/0.8937, allocations: 8.663 MB / 0.6846 GB, free: 78.32 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.8938, allocations: 8 kB / 0.6846 GB, free: 78.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001092/0.8939, allocations: 144.9 kB / 0.6847 GB, free: 78.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001937/0.8959, allocations: 0.8834 MB / 0.6856 GB, free: 77.47 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005165/0.901, allocations: 1.608 MB / 0.6872 GB, free: 76.08 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006192/0.9072, allocations: 5.323 MB / 0.6924 GB, free: 71.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004971/0.9122, allocations: 217.1 kB / 0.6926 GB, free: 71.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009051/0.9132, allocations: 414.3 kB / 0.693 GB, free: 70.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 657 * Number of states: 0 () * Number of discrete variables: 42 (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.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],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 (846): * Single equations (assignments): 842 * 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.0008995/0.9141, allocations: 474.3 kB / 0.6934 GB, free: 70.24 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006018/0.9147, allocations: 363.2 kB / 0.6938 GB, free: 69.88 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00568/0.9204, allocations: 3.897 MB / 0.6976 GB, free: 66.66 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.274e-05/0.9204, allocations: 20 kB / 0.6976 GB, free: 66.64 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/0.9204, allocations: 8 kB / 0.6976 GB, free: 66.63 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.67e-05/0.9205, allocations: 10.88 kB / 0.6976 GB, free: 66.63 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01364/0.9341, allocations: 8.488 MB / 0.7059 GB, free: 59.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.898e-06/0.9341, allocations: 0 / 0.7059 GB, free: 59.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001963/0.9361, allocations: 383.9 kB / 0.7063 GB, free: 59.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001684/0.9378, allocations: 0.6646 MB / 0.7069 GB, free: 58.92 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001748/0.938, allocations: 7 kB / 0.7069 GB, free: 58.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005413/0.9434, allocations: 4.823 MB / 0.7116 GB, free: 54.55 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.9434, allocations: 4 kB / 0.7116 GB, free: 54.55 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008002/0.9515, allocations: 7.033 MB / 0.7185 GB, free: 48.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001594/0.9531, allocations: 0.7221 MB / 0.7192 GB, free: 47.61 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005467/0.9536, allocations: 0 / 0.7192 GB, free: 47.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00155/0.9552, allocations: 70.67 kB / 0.7193 GB, free: 47.57 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002381/0.9554, allocations: 94.67 kB / 0.7194 GB, free: 47.51 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001609/0.9556, allocations: 55.8 kB / 0.7194 GB, free: 47.46 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002933/0.9585, allocations: 2.331 MB / 0.7217 GB, free: 45.41 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00502/0.9636, allocations: 0.9697 MB / 0.7226 GB, free: 44.45 MB / 426.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 (174): * Single equations (assignments): 170 * 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.0004547/0.964, allocations: 155.3 kB / 0.7228 GB, free: 44.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008767/0.9728, allocations: 5.903 MB / 0.7285 GB, free: 38.95 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.9729, allocations: 0 / 0.7285 GB, free: 38.95 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003071/0.9759, allocations: 2.058 MB / 0.7306 GB, free: 37.09 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00178/0.9777, allocations: 341.9 kB / 0.7309 GB, free: 36.79 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01485/0.9926, allocations: 9.002 MB / 0.7397 GB, free: 28.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004677/0.9973, allocations: 4.063 MB / 0.7436 GB, free: 25.2 MB / 426.7 MB Notification: Performance of SimCode: time 8.12e-07/0.9973, allocations: 4 kB / 0.7436 GB, free: 25.2 MB / 426.7 MB Notification: Performance of Templates: time 0.1917/1.189, allocations: 41.86 MB / 0.7845 GB, free: 118.6 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches