Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007743/0.0007743, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001109/0.001883, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007067/0.0007067, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000968/0.001675, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9264/0.9264, allocations: 177.2 MB / 189.8 MB, free: 5.258 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07925/1.006, allocations: 53.66 MB / 243.4 MB, free: 15.52 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|position1.w|position2.w|r1.phi|r2.phi|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|position1.w|position2.w|r1.phi|r2.phi|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.243e-06/1.243e-06, allocations: 0 / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.837e-05/1.961e-05, allocations: 9.688 kB / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.009459/0.009478, allocations: 12.42 MB / 257.1 MB, free: 1.75 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008121/0.0176, allocations: 4.414 MB / 261.5 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001745/0.01934, allocations: 91.56 kB / 261.6 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004871/0.02422, allocations: 3.765 MB / 265.4 MB, free: 9.453 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004385/0.0286, allocations: 2.08 MB / 267.5 MB, free: 7.363 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001413/0.03001, allocations: 0.7134 MB / 268.2 MB, free: 6.648 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005238/0.03525, allocations: 4.533 MB / 272.7 MB, free: 2.105 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1231/0.1583, allocations: 3.78 MB / 276.5 MB, free: 2.094 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005324/0.1636, allocations: 3.023 MB / 279.5 MB, free: 2.074 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003624/0.1673, allocations: 2.361 MB / 281.9 MB, free: 2.074 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001211/0.1685, allocations: 403.9 kB / 282.3 MB, free: 2.074 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002144/0.1706, allocations: 1.088 MB / 283.4 MB, free: 2.074 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001881/0.1725, allocations: 2.084 MB / 285.5 MB, free: 1.969 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001864/0.1744, allocations: 1.237 MB / 286.7 MB, free: 1.742 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004869/0.1792, allocations: 4.718 MB / 291.4 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.242e-05/0.1792, allocations: 1.031 kB / 291.4 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1792, allocations: 0 / 291.4 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002758/0.1795, allocations: 2.875 kB / 291.4 MB, free: 0.9961 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1736 * Number of variables: 1736 Notification: Performance of Generate backend data structure: time 0.008254/0.1878, allocations: 6.569 MB / 298 MB, free: 14.56 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.1878, allocations: 7.531 kB / 298 MB, free: 14.56 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002724/0.1905, allocations: 1.173 MB / 299.2 MB, free: 14.38 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002393/0.1929, allocations: 2.042 MB / 301.2 MB, free: 13.35 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001172/0.193, allocations: 288 kB / 301.5 MB, free: 13.25 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003961/0.1934, allocations: 383.5 kB / 301.9 MB, free: 13.16 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006295/0.1997, allocations: 5.595 MB / 307.5 MB, free: 7.574 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001015/0.1998, allocations: 54.7 kB / 307.5 MB, free: 7.547 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003002/0.2001, allocations: 180.6 kB / 307.7 MB, free: 7.406 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001367/0.2015, allocations: 1.671 MB / 309.4 MB, free: 5.75 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005031/0.2065, allocations: 2.781 MB / 312.1 MB, free: 3.199 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02806/0.2346, allocations: 34.29 MB / 346.4 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004087/0.2387, allocations: 1.564 MB / 348 MB, free: 15.41 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000469/0.2391, allocations: 394.4 kB / 348.4 MB, free: 15.02 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004955/0.2441, allocations: 3.954 MB / 352.3 MB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.387e-05/0.2441, allocations: 55.03 kB / 352.4 MB, free: 11.05 MB / 330.7 MB Notification: Performance of pre-optimization done (n=146): time 3.787e-06/0.2441, allocations: 0 / 352.4 MB, free: 11.05 MB / 330.7 MB Notification: Performance of matching and sorting (n=156): time 0.01229/0.2564, allocations: 5.504 MB / 357.9 MB, free: 5.602 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.883e-05/0.2565, allocations: 153 kB / 358 MB, free: 5.426 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002847/0.2593, allocations: 3.473 MB / 361.5 MB, free: 2.605 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.976e-05/0.2594, allocations: 52.44 kB / 361.6 MB, free: 2.551 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001601/0.261, allocations: 3.508 MB / 365.1 MB, free: 15.21 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003927/0.2614, allocations: 0.6524 MB / 365.7 MB, free: 14.6 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009703/0.2624, allocations: 1.236 MB / 367 MB, free: 13.49 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.503e-05/0.2624, allocations: 305.1 kB / 367.2 MB, free: 13.19 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001158/0.2636, allocations: 0.7755 MB / 368 MB, free: 12.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003028/0.2666, allocations: 4.824 MB / 372.8 MB, free: 5.73 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004936/0.2716, allocations: 6.688 MB / 379.5 MB, free: 13.47 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.139e-05/0.2716, allocations: 40 kB / 379.6 MB, free: 13.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=847) (initialization): time 0.005348/0.277, allocations: 4.446 MB / 384 MB, free: 8.973 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.183e-05/0.277, allocations: 68 kB / 384.1 MB, free: 8.906 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001493/0.2772, allocations: 159.4 kB / 384.2 MB, free: 8.754 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004311/0.2776, allocations: 252.1 kB / 384.5 MB, free: 8.504 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002704/0.2803, allocations: 1.665 MB / 386.2 MB, free: 6.836 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001242/0.2816, allocations: 1.618 MB / 387.8 MB, free: 5.121 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002443/0.284, allocations: 287.7 kB / 388.1 MB, free: 4.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003692/0.2844, allocations: 352 kB / 388.4 MB, free: 4.496 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 682 * Number of states: 0 () * Number of discrete variables: 44 (torque.torqueArrow.twoHeadedArrow,torque.torqueArrow.headAtOrigin,fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (821): * Single equations (assignments): 817 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001773/0.2862, allocations: 0.6675 MB / 389.1 MB, free: 3.816 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004685/0.2866, allocations: 223.8 kB / 389.3 MB, free: 3.598 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00117/0.2878, allocations: 0.8706 MB / 390.2 MB, free: 2.719 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.709e-05/0.2878, allocations: 16 kB / 390.2 MB, free: 2.703 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.2878, allocations: 0 / 390.2 MB, free: 2.703 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.204e-05/0.2878, allocations: 11.97 kB / 390.2 MB, free: 2.691 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005491/0.2933, allocations: 4.218 MB / 394.4 MB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.579e-05/0.2933, allocations: 12 kB / 394.4 MB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007315/0.2941, allocations: 292.3 kB / 394.7 MB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006613/0.2947, allocations: 449.2 kB / 395.1 MB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002399/0.295, allocations: 67.58 kB / 395.2 MB, free: 14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.156e-05/0.295, allocations: 32 kB / 395.2 MB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001415/0.2964, allocations: 1.531 MB / 396.8 MB, free: 12.33 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.2964, allocations: 7.938 kB / 396.8 MB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001693/0.2981, allocations: 1.807 MB / 398.6 MB, free: 10.42 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003186/0.2985, allocations: 35.98 kB / 398.6 MB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006063/0.2991, allocations: 28 kB / 398.6 MB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001597/0.2992, allocations: 112.7 kB / 398.8 MB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.775e-05/0.2993, allocations: 39.98 kB / 398.8 MB, free: 10.21 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001096/0.3004, allocations: 1.255 MB / 400 MB, free: 8.977 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3004, allocations: 0 / 400 MB, free: 8.977 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003512/0.3039, allocations: 1.039 MB / 401.1 MB, free: 7.938 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,position1.phi,position1.w,position2.phi,position2.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 (141): * Single equations (assignments): 137 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003762/0.3043, allocations: 176 kB / 401.3 MB, free: 7.758 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00375/0.308, allocations: 2.741 MB / 404 MB, free: 5.051 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001962/0.3082, allocations: 126.8 kB / 404.1 MB, free: 4.922 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007277/0.309, allocations: 0.6226 MB / 404.7 MB, free: 4.289 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00344/0.3124, allocations: 3.173 MB / 407.9 MB, free: 0.6992 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01506/0.3275, allocations: 8.341 MB / 416.3 MB, free: 8.207 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001615/0.3291, allocations: 1.363 MB / 417.6 MB, free: 6.82 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001497/0.3306, allocations: 0.5162 MB / 418.1 MB, free: 6.301 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008405/0.3314, allocations: 0.5558 MB / 418.7 MB, free: 5.742 MB / 394.7 MB Notification: Performance of SimCode: time 1.363e-06/0.3314, allocations: 0 / 418.7 MB, free: 5.742 MB / 394.7 MB Notification: Performance of Templates: time 0.1608/0.4922, allocations: 28.77 MB / 447.5 MB, free: 118.2 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/MovingActuatedDrive/MovingActuatedDrive.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.282282456755638]