Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009212/0.0009212, allocations: 84.73 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001105/0.001105, allocations: 160.2 kB / 24.91 MB, free: 8.766 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.012/1.012, allocations: 177 MB / 205.2 MB, free: 5.449 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.252/0.252, allocations: 34.87 MB / 296.6 MB, free: 452 kB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.Torque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque") translateModel(ModelicaTest.MultiBody.Forces.Torque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 326 MB, free: 7.082 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.621e-05/1.779e-05, allocations: 5.125 kB / 326 MB, free: 7.078 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01223/0.01224, allocations: 14.68 MB / 340.6 MB, free: 8.332 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.007373/0.01962, allocations: 5.029 MB / 345.7 MB, free: 3.285 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009934/0.02061, allocations: 123.4 kB / 345.8 MB, free: 3.164 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00543/0.02604, allocations: 5.287 MB / 351.1 MB, free: 13.86 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003866/0.02991, allocations: 2.639 MB / 353.7 MB, free: 11.21 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00141/0.03132, allocations: 1.181 MB / 354.9 MB, free: 10.02 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005856/0.03717, allocations: 7.586 MB / 362.5 MB, free: 2.43 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003821/0.04099, allocations: 5.017 MB / 367.5 MB, free: 13.31 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005395/0.04639, allocations: 4.589 MB / 372.1 MB, free: 8.711 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004317/0.05071, allocations: 3.293 MB / 375.4 MB, free: 5.41 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001256/0.05196, allocations: 0.5078 MB / 375.9 MB, free: 4.902 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002239/0.0542, allocations: 1.377 MB / 377.3 MB, free: 3.523 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002749/0.05695, allocations: 3.199 MB / 380.5 MB, free: 324 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0025/0.05945, allocations: 1.967 MB / 382.4 MB, free: 14.34 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006744/0.06619, allocations: 6.668 MB / 389.1 MB, free: 7.652 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.0662, allocations: 0 / 389.1 MB, free: 7.652 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.0662, allocations: 0 / 389.1 MB, free: 7.652 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002488/0.06645, allocations: 0 / 389.1 MB, free: 7.652 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2161 * Number of variables: 2161 Notification: Performance of Generate backend data structure: time 0.008274/0.07472, allocations: 6.937 MB / 396 MB, free: 0.6445 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.07476, allocations: 8.031 kB / 396.1 MB, free: 0.6367 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003892/0.07865, allocations: 1.515 MB / 397.6 MB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003955/0.08261, allocations: 3.01 MB / 400.6 MB, free: 12.03 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004418/0.08305, allocations: 357.6 kB / 400.9 MB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005474/0.0836, allocations: 492 kB / 401.4 MB, free: 11.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008588/0.09218, allocations: 7.177 MB / 408.6 MB, free: 2.992 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001265/0.09231, allocations: 67.42 kB / 408.6 MB, free: 2.926 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003567/0.09267, allocations: 231.8 kB / 408.9 MB, free: 2.699 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001817/0.09448, allocations: 2.325 MB / 411.2 MB, free: 380 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006409/0.1009, allocations: 3.564 MB / 414.8 MB, free: 12.73 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1785/0.2794, allocations: 44.77 MB / 459.5 MB, free: 75.24 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005353/0.2848, allocations: 2.455 MB / 462 MB, free: 74.95 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006478/0.2854, allocations: 0.5128 MB / 462.5 MB, free: 74.91 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005345/0.2908, allocations: 4.635 MB / 467.1 MB, free: 74.06 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.223e-05/0.2908, allocations: 58.53 kB / 467.2 MB, free: 74.02 MB / 410.7 MB Notification: Performance of pre-optimization done (n=176): time 3.406e-06/0.2908, allocations: 3.719 kB / 467.2 MB, free: 74.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=185): time 0.01915/0.31, allocations: 8.009 MB / 475.2 MB, free: 73.09 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.27e-05/0.31, allocations: 230.1 kB / 475.4 MB, free: 72.82 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003613/0.3136, allocations: 4.759 MB / 480.2 MB, free: 69.63 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001277/0.3137, allocations: 56.2 kB / 480.2 MB, free: 69.59 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001316/0.3151, allocations: 4.444 MB / 484.7 MB, free: 65.61 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004742/0.3155, allocations: 0.7949 MB / 485.5 MB, free: 64.91 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001092/0.3166, allocations: 1.631 MB / 487.1 MB, free: 63.69 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.181e-05/0.3167, allocations: 304.6 kB / 487.4 MB, free: 63.39 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00141/0.3181, allocations: 1.036 MB / 488.4 MB, free: 62.34 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002412/0.3205, allocations: 6.308 MB / 494.8 MB, free: 53.43 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004769/0.3253, allocations: 8.065 MB / 0.491 GB, free: 43.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001207/0.3254, allocations: 56 kB / 0.4911 GB, free: 43.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=1111) (initialization): time 0.007585/0.333, allocations: 6.024 MB / 0.497 GB, free: 37.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.765e-05/0.333, allocations: 88.19 kB / 0.4971 GB, free: 37.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001304/0.3332, allocations: 196 kB / 0.4972 GB, free: 36.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001371/0.3345, allocations: 0.6064 MB / 0.4978 GB, free: 36.31 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003104/0.3376, allocations: 1.973 MB / 0.4998 GB, free: 34.33 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002973/0.3406, allocations: 4.209 MB / 0.5039 GB, free: 29.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003932/0.3445, allocations: 387.6 kB / 0.5042 GB, free: 29.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005176/0.3451, allocations: 455.9 kB / 0.5047 GB, free: 29.12 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 874 * Number of states: 0 () * Number of discrete variables: 67 (torque2.torqueArrow.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque1.torqueArrow.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1059): * Single equations (assignments): 1052 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001648/0.3467, allocations: 0.8347 MB / 0.5055 GB, free: 28.27 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006253/0.3473, allocations: 295.7 kB / 0.5058 GB, free: 27.98 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001792/0.3491, allocations: 1.314 MB / 0.5071 GB, free: 26.65 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-05/0.3491, allocations: 20 kB / 0.5071 GB, free: 26.63 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.317e-06/0.3491, allocations: 4 kB / 0.5071 GB, free: 26.63 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.209e-05/0.3492, allocations: 7.969 kB / 0.5071 GB, free: 26.62 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007436/0.3566, allocations: 5.69 MB / 0.5126 GB, free: 20.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-05/0.3566, allocations: 4 kB / 0.5126 GB, free: 20.78 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006421/0.3572, allocations: 268.5 kB / 0.5129 GB, free: 20.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001345/0.3586, allocations: 0.618 MB / 0.5135 GB, free: 19.89 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001182/0.3587, allocations: 43.98 kB / 0.5135 GB, free: 19.85 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002806/0.3615, allocations: 3.822 MB / 0.5173 GB, free: 15.84 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.384e-06/0.3615, allocations: 11.94 kB / 0.5173 GB, free: 15.83 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002922/0.3644, allocations: 2.407 MB / 0.5196 GB, free: 13.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007555/0.3652, allocations: 456.5 kB / 0.5201 GB, free: 12.86 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003224/0.3655, allocations: 36 kB / 0.5201 GB, free: 12.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007793/0.3663, allocations: 39.98 kB / 0.5201 GB, free: 12.78 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001801/0.3665, allocations: 124.6 kB / 0.5203 GB, free: 12.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.737e-05/0.3666, allocations: 47.98 kB / 0.5203 GB, free: 12.61 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001525/0.3681, allocations: 1.782 MB / 0.5221 GB, free: 10.86 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3681, allocations: 0 / 0.5221 GB, free: 10.86 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004737/0.3728, allocations: 1.473 MB / 0.5235 GB, free: 9.383 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (150): * Single equations (assignments): 145 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003673/0.3732, allocations: 179.5 kB / 0.5237 GB, free: 9.203 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004108/0.3773, allocations: 3.541 MB / 0.5271 GB, free: 5.676 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001872/0.3775, allocations: 120.2 kB / 0.5272 GB, free: 5.547 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008182/0.3783, allocations: 0.7868 MB / 0.528 GB, free: 4.734 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002819/0.3811, allocations: 0.8905 MB / 0.5289 GB, free: 3.875 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01299/0.3941, allocations: 10.67 MB / 0.5393 GB, free: 9.012 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001783/0.3959, allocations: 1.781 MB / 0.541 GB, free: 7.203 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001867/0.3977, allocations: 0.6922 MB / 0.5417 GB, free: 6.516 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001115/0.3989, allocations: 0.7354 MB / 0.5424 GB, free: 5.777 MB / 426.7 MB Notification: Performance of SimCode: time 4.027e-06/0.3989, allocations: 0 / 0.5424 GB, free: 5.777 MB / 426.7 MB Notification: Performance of Templates: time 0.06839/0.4673, allocations: 44.3 MB / 0.5857 GB, free: 9.887 MB / 474.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.319336437154561]