Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3.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.Torque3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w|Revolute5.phi|Revolute5.w|Revolute6.phi|Revolute6.w|Revolute7.phi|Revolute7.w|Revolute8.phi|Revolute8.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3") translateModel(ModelicaTest.MultiBody.Forces.Torque3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w|Revolute5.phi|Revolute5.w|Revolute6.phi|Revolute6.w|Revolute7.phi|Revolute7.w|Revolute8.phi|Revolute8.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3") [: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.001001/0.001001, allocations: 174.6 kB / 8.517 MB, free: 1.84 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.189/1.189, allocations: 221.4 MB / 230.3 MB, free: 7.688 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.001029/0.001029, allocations: 92.73 kB / 281.2 MB, free: 5.449 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.1571/0.1571, allocations: 44.16 MB / 376.1 MB, free: 3.219 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.853e-06/7.003e-06, allocations: 224 / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1053, allocations: 61.9 MB / 0.4941 GB, free: 1.633 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2885/0.3938, allocations: 110 MB / 0.6015 GB, free: 2.797 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002598/0.3942, allocations: 75.97 kB / 0.6016 GB, free: 2.723 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.6239/1.018, allocations: 198.3 MB / 0.7953 GB, free: 82.53 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005093/1.019, allocations: 223.8 kB / 0.7955 GB, free: 82.31 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3739 * Number of variables: 3739 Notification: Performance of Generate backend data structure: time 0.02603/1.045, allocations: 10.52 MB / 0.8058 GB, free: 71.72 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/1.045, allocations: 11.97 kB / 0.8058 GB, free: 71.71 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04393/1.089, allocations: 12 MB / 0.8175 GB, free: 59.67 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02631/1.115, allocations: 11.56 MB / 0.8288 GB, free: 48.14 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000362/1.115, allocations: 359.9 kB / 0.8291 GB, free: 47.79 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003226/1.119, allocations: 0.6442 MB / 0.8297 GB, free: 47.14 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0229/1.142, allocations: 15.46 MB / 0.8448 GB, free: 31.68 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04264/1.184, allocations: 22.69 MB / 0.867 GB, free: 7.113 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007298/1.185, allocations: 126.8 kB / 0.8671 GB, free: 6.988 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004354/1.189, allocations: 59.91 kB / 0.8672 GB, free: 6.93 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002912/1.192, allocations: 2.512 MB / 0.8696 GB, free: 4.418 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2972/1.49, allocations: 105.2 MB / 0.9723 GB, free: 79.02 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01211/1.502, allocations: 10.25 MB / 0.9823 GB, free: 77.59 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007913/1.51, allocations: 7.255 MB / 0.9894 GB, free: 74.59 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03218/1.542, allocations: 20.79 MB / 1.01 GB, free: 63.93 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.472e-05/1.542, allocations: 81.5 kB / 1.01 GB, free: 63.86 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=413): time 1.158e-05/1.542, allocations: 1.938 kB / 1.01 GB, free: 63.86 MB / 0.5105 GB Notification: Performance of matching and sorting (n=499): time 0.1067/1.649, allocations: 47.25 MB / 1.056 GB, free: 39.16 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.848e-05/1.649, allocations: 309 kB / 1.056 GB, free: 38.8 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01053/1.66, allocations: 6.707 MB / 1.063 GB, free: 32.92 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001299/1.661, allocations: 32.61 kB / 1.063 GB, free: 32.88 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00356/1.664, allocations: 6.478 MB / 1.069 GB, free: 27.1 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002959/1.667, allocations: 1.805 MB / 1.071 GB, free: 25.47 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001235/1.669, allocations: 0 / 1.071 GB, free: 25.47 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006003/1.669, allocations: 0.8538 MB / 1.072 GB, free: 24.77 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006617/1.676, allocations: 5.416 MB / 1.077 GB, free: 19.93 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009404/1.685, allocations: 12.51 MB / 1.089 GB, free: 4.988 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2172/1.903, allocations: 8.417 MB / 1.097 GB, free: 123.6 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002725/1.903, allocations: 74 kB / 1.098 GB, free: 123.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1676) (initialization): time 0.03612/1.939, allocations: 19.07 MB / 1.116 GB, free: 122.9 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/1.939, allocations: 5.75 kB / 1.116 GB, free: 122.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002953/1.939, allocations: 248.7 kB / 1.116 GB, free: 122.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007314/1.947, allocations: 3.069 MB / 1.119 GB, free: 122.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01116/1.958, allocations: 3.035 MB / 1.122 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02425/1.982, allocations: 20.4 MB / 1.142 GB, free: 117.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01217/1.994, allocations: 425.2 kB / 1.143 GB, free: 117.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00358/1.998, allocations: 0.749 MB / 1.143 GB, free: 117.4 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1146 * Number of states: 0 () * Number of discrete variables: 126 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueArrow.arrowLine.twoHeadedArrow,torque4.torqueArrow.headAtOrigin,torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceArrow.arrowLine.twoHeadedArrow,torque4.forceArrow.headAtOrigin,torque4.forceArrow.color[3],torque4.forceArrow.color[2],torque4.forceArrow.color[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueArrow.arrowLine.twoHeadedArrow,torque3.torqueArrow.headAtOrigin,torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceArrow.arrowLine.twoHeadedArrow,torque3.forceArrow.headAtOrigin,torque3.forceArrow.color[3],torque3.forceArrow.color[2],torque3.forceArrow.color[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (1556): * Single equations (assignments): 1549 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003772/2.002, allocations: 0.7604 MB / 1.144 GB, free: 117.1 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002691/2.004, allocations: 0.7374 MB / 1.145 GB, free: 117.1 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02228/2.027, allocations: 11.61 MB / 1.156 GB, free: 116.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001054/2.027, allocations: 52.66 kB / 1.156 GB, free: 116.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.592e-05/2.027, allocations: 18.06 kB / 1.156 GB, free: 116.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.94e-05/2.027, allocations: 25.62 kB / 1.156 GB, free: 116.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05013/2.077, allocations: 23.6 MB / 1.179 GB, free: 109 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.298e-05/2.077, allocations: 1.094 kB / 1.179 GB, free: 109 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005736/2.083, allocations: 0.8783 MB / 1.18 GB, free: 109 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008151/2.091, allocations: 2.621 MB / 1.183 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001379/2.093, allocations: 14.16 kB / 1.183 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02342/2.116, allocations: 19.26 MB / 1.202 GB, free: 95.81 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/2.116, allocations: 0 / 1.202 GB, free: 95.81 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0263/2.142, allocations: 18.39 MB / 1.22 GB, free: 79.74 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002242/2.145, allocations: 0.7301 MB / 1.22 GB, free: 79.01 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003061/2.148, allocations: 7.906 kB / 1.22 GB, free: 79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005702/2.153, allocations: 227.8 kB / 1.221 GB, free: 78.87 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001173/2.155, allocations: 231.7 kB / 1.221 GB, free: 78.74 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004751/2.155, allocations: 123.9 kB / 1.221 GB, free: 78.62 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.008279/2.163, allocations: 4.537 MB / 1.225 GB, free: 74.67 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01425/2.178, allocations: 2.229 MB / 1.227 GB, free: 72.45 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute6.phi,Revolute6.w,Revolute7.phi,Revolute7.w,Revolute8.phi,Revolute8.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (407): * Single equations (assignments): 400 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 18,(4,75.0%) 18,(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001201/2.179, allocations: 176.6 kB / 1.228 GB, free: 72.29 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02082/2.2, allocations: 13.56 MB / 1.241 GB, free: 60.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.103e-05/2.2, allocations: 4 kB / 1.241 GB, free: 60.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00959/2.209, allocations: 5.707 MB / 1.246 GB, free: 54.98 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005591/2.215, allocations: 0.8722 MB / 1.247 GB, free: 54.27 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04312/2.258, allocations: 21.1 MB / 1.268 GB, free: 35.38 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2476/2.506, allocations: 8.153 MB / 1.276 GB, free: 113.2 MB / 0.5105 GB Notification: Performance of SimCode: time 1.032e-06/2.506, allocations: 0 / 1.276 GB, free: 113.2 MB / 0.5105 GB Notification: Performance of Templates: time 0.1733/2.679, allocations: 101.8 MB / 1.375 GB, free: 88.34 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque3/Torque3.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches