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.001243/0.001243, allocations: 84.73 kB / 21.5 MB, free: 2.988 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.001033/0.001033, allocations: 165.5 kB / 24.91 MB, free: 8.762 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 0.9819/0.9819, allocations: 177 MB / 205.2 MB, free: 5.07 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.245/0.245, allocations: 34.86 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.403e-06/1.403e-06, allocations: 0 / 325.9 MB, free: 7.156 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.635e-05/2.775e-05, allocations: 5.406 kB / 325.9 MB, free: 7.152 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01602/0.01605, allocations: 14.63 MB / 340.6 MB, free: 8.461 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0136/0.02965, allocations: 5.033 MB / 345.6 MB, free: 3.41 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003242/0.03289, allocations: 123.4 kB / 345.7 MB, free: 3.289 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006561/0.03945, allocations: 5.373 MB / 351.1 MB, free: 13.9 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006509/0.04596, allocations: 2.671 MB / 353.7 MB, free: 11.21 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002528/0.04849, allocations: 1.185 MB / 354.9 MB, free: 10.03 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.009968/0.05846, allocations: 7.596 MB / 362.5 MB, free: 2.426 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006413/0.06487, allocations: 5.247 MB / 367.8 MB, free: 13.07 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007464/0.07234, allocations: 4.659 MB / 372.4 MB, free: 8.406 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004512/0.07685, allocations: 3.285 MB / 375.7 MB, free: 5.113 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001357/0.0782, allocations: 0.5039 MB / 376.2 MB, free: 4.609 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002419/0.08062, allocations: 1.346 MB / 377.6 MB, free: 3.262 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002837/0.08346, allocations: 3.187 MB / 380.8 MB, free: 68 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003285/0.08675, allocations: 1.971 MB / 382.7 MB, free: 14.09 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008401/0.09515, allocations: 6.671 MB / 389.4 MB, free: 7.395 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.498e-06/0.09516, allocations: 4 kB / 389.4 MB, free: 7.391 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.09516, allocations: 0 / 389.4 MB, free: 7.391 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000432/0.09559, allocations: 0 / 389.4 MB, free: 7.391 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.01009/0.1057, allocations: 6.925 MB / 396.3 MB, free: 404 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.1057, allocations: 8.031 kB / 396.3 MB, free: 396 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003658/0.1094, allocations: 1.519 MB / 397.9 MB, free: 14.87 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003916/0.1133, allocations: 3.014 MB / 400.9 MB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001597/0.1134, allocations: 361.5 kB / 401.2 MB, free: 11.42 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004988/0.1139, allocations: 480.1 kB / 401.7 MB, free: 10.95 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008227/0.1222, allocations: 7.189 MB / 408.9 MB, free: 2.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001411/0.1223, allocations: 59.5 kB / 408.9 MB, free: 2.672 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000367/0.1227, allocations: 223.8 kB / 409.2 MB, free: 2.453 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001958/0.1246, allocations: 2.336 MB / 411.5 MB, free: 116 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008098/0.1327, allocations: 3.565 MB / 415.1 MB, free: 12.48 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2148/0.3476, allocations: 44.76 MB / 459.8 MB, free: 75.21 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005468/0.3531, allocations: 2.459 MB / 462.3 MB, free: 74.93 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007639/0.3538, allocations: 0.5131 MB / 462.8 MB, free: 74.88 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006468/0.3603, allocations: 4.637 MB / 467.4 MB, free: 74.03 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.876e-05/0.3603, allocations: 60.41 kB / 467.5 MB, free: 73.98 MB / 410.7 MB Notification: Performance of pre-optimization done (n=176): time 3.918e-06/0.3603, allocations: 0 / 467.5 MB, free: 73.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=185): time 0.01891/0.3792, allocations: 7.969 MB / 475.5 MB, free: 73.12 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.044e-05/0.3793, allocations: 230.3 kB / 475.7 MB, free: 72.85 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003791/0.3831, allocations: 4.755 MB / 480.4 MB, free: 69.69 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001329/0.3832, allocations: 55.7 kB / 480.5 MB, free: 69.65 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00135/0.3846, allocations: 4.436 MB / 484.9 MB, free: 65.66 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005224/0.3851, allocations: 0.7943 MB / 485.7 MB, free: 64.97 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001081/0.3862, allocations: 1.639 MB / 487.4 MB, free: 63.74 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.578e-05/0.3862, allocations: 307.7 kB / 487.7 MB, free: 63.44 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001417/0.3876, allocations: 1.04 MB / 488.7 MB, free: 62.39 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002657/0.3903, allocations: 6.296 MB / 495 MB, free: 53.49 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005289/0.3956, allocations: 8.066 MB / 0.4913 GB, free: 43.36 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001241/0.3957, allocations: 56 kB / 0.4913 GB, free: 43.31 MB / 410.7 MB Notification: Performance of matching and sorting (n=1111) (initialization): time 0.007897/0.4036, allocations: 6.03 MB / 0.4972 GB, free: 37.25 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.094e-05/0.4037, allocations: 89.86 kB / 0.4973 GB, free: 37.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001264/0.4038, allocations: 192 kB / 0.4975 GB, free: 36.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001304/0.4051, allocations: 0.6028 MB / 0.4981 GB, free: 36.37 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002911/0.408, allocations: 1.903 MB / 0.4999 GB, free: 34.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003205/0.4112, allocations: 4.206 MB / 0.504 GB, free: 30.08 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004303/0.4155, allocations: 375.6 kB / 0.5044 GB, free: 29.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006276/0.4161, allocations: 456 kB / 0.5048 GB, free: 29.27 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.001842/0.418, allocations: 0.8423 MB / 0.5057 GB, free: 28.41 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000742/0.4187, allocations: 291.7 kB / 0.5059 GB, free: 28.12 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001818/0.4205, allocations: 1.317 MB / 0.5072 GB, free: 26.79 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.073e-05/0.4206, allocations: 20 kB / 0.5072 GB, free: 26.77 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.4206, allocations: 4 kB / 0.5072 GB, free: 26.77 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.157e-05/0.4206, allocations: 7.969 kB / 0.5072 GB, free: 26.76 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007322/0.4279, allocations: 5.681 MB / 0.5128 GB, free: 20.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.158e-06/0.4279, allocations: 4 kB / 0.5128 GB, free: 20.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005766/0.4285, allocations: 267 kB / 0.5131 GB, free: 20.67 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001222/0.4297, allocations: 0.614 MB / 0.5137 GB, free: 20.05 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.593e-05/0.4298, allocations: 40 kB / 0.5137 GB, free: 20.01 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002502/0.4323, allocations: 3.811 MB / 0.5174 GB, free: 16.01 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.4323, allocations: 15.88 kB / 0.5174 GB, free: 15.99 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002568/0.4349, allocations: 2.407 MB / 0.5198 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008247/0.4357, allocations: 448.6 kB / 0.5202 GB, free: 13.02 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000334/0.436, allocations: 43.98 kB / 0.5202 GB, free: 12.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000775/0.4368, allocations: 35.12 kB / 0.5203 GB, free: 12.95 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001672/0.437, allocations: 136.5 kB / 0.5204 GB, free: 12.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.674e-05/0.437, allocations: 47.98 kB / 0.5205 GB, free: 12.77 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00148/0.4385, allocations: 1.77 MB / 0.5222 GB, free: 11.02 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4385, allocations: 2.844 kB / 0.5222 GB, free: 11.02 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004913/0.4434, allocations: 1.476 MB / 0.5236 GB, free: 9.543 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.0003882/0.4438, allocations: 168 kB / 0.5238 GB, free: 9.371 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003898/0.4477, allocations: 3.548 MB / 0.5273 GB, free: 5.836 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001888/0.4479, allocations: 124.2 kB / 0.5274 GB, free: 5.703 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008584/0.4488, allocations: 0.791 MB / 0.5281 GB, free: 4.887 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003167/0.4519, allocations: 0.883 MB / 0.529 GB, free: 4.035 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01464/0.4666, allocations: 10.67 MB / 0.5394 GB, free: 9.16 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002135/0.4687, allocations: 1.784 MB / 0.5412 GB, free: 7.348 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001955/0.4707, allocations: 0.6899 MB / 0.5418 GB, free: 6.66 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001061/0.4717, allocations: 0.7276 MB / 0.5426 GB, free: 5.93 MB / 426.7 MB Notification: Performance of SimCode: time 1.904e-06/0.4717, allocations: 7.828 kB / 0.5426 GB, free: 5.926 MB / 426.7 MB Notification: Performance of Templates: time 0.06826/0.54, allocations: 44.3 MB / 0.5858 GB, free: 10.05 MB / 474.7 MB " [Timeout remaining time 659] 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 -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.6101751872338355]