Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.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.0009953/0.0009953, allocations: 80.8 kB / 21.49 MB, free: 2.992 MB / 18.57 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.001125/0.001125, allocations: 169.1 kB / 24.91 MB, free: 9.191 MB / 18.57 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.9421/0.9421, allocations: 177.1 MB / 205.3 MB, free: 5.5 MB / 186.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.ActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 3.938 kB / 273.4 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.763e-05/1.902e-05, allocations: 2.312 kB / 273.4 MB, free: 1.328 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.00982/0.009839, allocations: 10.41 MB / 283.8 MB, free: 6.871 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006331/0.01617, allocations: 3.877 MB / 287.7 MB, free: 2.98 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001059/0.01723, allocations: 75.62 kB / 287.8 MB, free: 2.906 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002846/0.02007, allocations: 2.869 MB / 290.7 MB, free: 28 kB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1187/0.1387, allocations: 1.879 MB / 292.5 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001176/0.1399, allocations: 0.6375 MB / 293.2 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004363/0.1443, allocations: 3.968 MB / 297.2 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003837/0.1481, allocations: 3.167 MB / 300.3 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003522/0.1516, allocations: 2.28 MB / 302.6 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002831/0.1545, allocations: 2.003 MB / 304.6 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008235/0.1553, allocations: 319.9 kB / 304.9 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001522/0.1568, allocations: 0.9697 MB / 305.9 MB, free: 12.17 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001073/0.1579, allocations: 1.914 MB / 307.8 MB, free: 11.1 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001247/0.1591, allocations: 1.196 MB / 309 MB, free: 10.47 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003011/0.1621, allocations: 4.244 MB / 313.2 MB, free: 7.379 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1621, allocations: 4 kB / 313.2 MB, free: 7.375 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1621, allocations: 0 / 313.2 MB, free: 7.375 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.502e-05/0.1622, allocations: 0 / 313.2 MB, free: 7.375 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.003805/0.166, allocations: 4.432 MB / 317.7 MB, free: 3.262 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.231e-05/0.166, allocations: 12.02 kB / 317.7 MB, free: 3.25 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002232/0.1683, allocations: 1.044 MB / 318.7 MB, free: 2.254 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001512/0.1698, allocations: 1.685 MB / 320.4 MB, free: 0.668 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.189e-05/0.1698, allocations: 218.4 kB / 320.6 MB, free: 496 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002746/0.1701, allocations: 296 kB / 320.9 MB, free: 236 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004276/0.1744, allocations: 4.582 MB / 325.5 MB, free: 11.39 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-05/0.1745, allocations: 46.58 kB / 325.5 MB, free: 11.37 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002348/0.1747, allocations: 144.1 kB / 325.7 MB, free: 11.26 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001249/0.176, allocations: 1.515 MB / 327.2 MB, free: 9.773 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004441/0.1804, allocations: 2.228 MB / 329.4 MB, free: 7.754 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01915/0.1995, allocations: 29.22 MB / 358.7 MB, free: 10.5 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002157/0.2017, allocations: 1.049 MB / 359.7 MB, free: 9.438 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002854/0.202, allocations: 237.4 kB / 359.9 MB, free: 9.199 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003071/0.2051, allocations: 2.651 MB / 362.6 MB, free: 6.57 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/0.2051, allocations: 50.83 kB / 362.6 MB, free: 6.512 MB / 314.7 MB Notification: Performance of pre-optimization done (n=93): time 2.665e-06/0.2051, allocations: 0 / 362.6 MB, free: 6.512 MB / 314.7 MB Notification: Performance of matching and sorting (n=94): time 0.004527/0.2096, allocations: 2.329 MB / 365 MB, free: 4.164 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.182e-05/0.2097, allocations: 140.5 kB / 365.1 MB, free: 3.996 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002133/0.2118, allocations: 3.168 MB / 368.3 MB, free: 1.227 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.233e-05/0.2118, allocations: 33.7 kB / 368.3 MB, free: 1.188 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001216/0.2131, allocations: 3.051 MB / 371.4 MB, free: 14.1 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002313/0.2133, allocations: 436.9 kB / 371.8 MB, free: 13.67 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007783/0.2141, allocations: 1.08 MB / 372.9 MB, free: 12.58 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.736e-05/0.2141, allocations: 301.1 kB / 373.2 MB, free: 12.29 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008747/0.215, allocations: 0.6396 MB / 373.8 MB, free: 11.64 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002452/0.2175, allocations: 4.333 MB / 378.1 MB, free: 5.363 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003467/0.2209, allocations: 5.519 MB / 383.6 MB, free: 13.93 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.681e-05/0.221, allocations: 44 kB / 383.7 MB, free: 13.88 MB / 346.7 MB Notification: Performance of matching and sorting (n=729) (initialization): time 0.003591/0.2246, allocations: 3.854 MB / 387.5 MB, free: 10.02 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.02e-05/0.2246, allocations: 67.94 kB / 387.6 MB, free: 9.949 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.761e-05/0.2247, allocations: 136.9 kB / 387.7 MB, free: 9.816 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002645/0.2249, allocations: 227.6 kB / 388 MB, free: 9.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001829/0.2268, allocations: 1.275 MB / 389.2 MB, free: 8.312 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008583/0.2276, allocations: 1.514 MB / 390.8 MB, free: 6.699 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001524/0.2292, allocations: 259.7 kB / 391 MB, free: 6.445 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000233/0.2294, allocations: 319.9 kB / 391.3 MB, free: 6.133 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 627 * Number of states: 0 () * Number of discrete variables: 38 (torque.torqueArrow.twoHeadedArrow,torque.torqueArrow.headAtOrigin,rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[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 (703): * Single equations (assignments): 699 * 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.0008009/0.2302, allocations: 0.6066 MB / 391.9 MB, free: 5.512 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002039/0.2304, allocations: 179.8 kB / 392.1 MB, free: 5.336 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005465/0.2309, allocations: 489.4 kB / 392.6 MB, free: 4.84 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.384e-05/0.231, allocations: 19.97 kB / 392.6 MB, free: 4.82 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.231, allocations: 0 / 392.6 MB, free: 4.82 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.231, allocations: 3.984 kB / 392.6 MB, free: 4.816 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002871/0.2338, allocations: 2.78 MB / 395.4 MB, free: 1.977 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.2338, allocations: 7.938 kB / 395.4 MB, free: 1.969 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003269/0.2342, allocations: 123.9 kB / 395.5 MB, free: 1.848 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001331/0.2343, allocations: 55.77 kB / 395.6 MB, free: 1.789 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.937e-05/0.2343, allocations: 23.94 kB / 395.6 MB, free: 1.766 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008817/0.2352, allocations: 1.435 MB / 397 MB, free: 240 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.2352, allocations: 8.031 kB / 397 MB, free: 232 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009751/0.2362, allocations: 1.212 MB / 398.2 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002343/0.2364, allocations: 269.8 kB / 398.5 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000163/0.2366, allocations: 16 kB / 398.5 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004153/0.237, allocations: 23.97 kB / 398.5 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.165e-05/0.2371, allocations: 55.84 kB / 398.6 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.636e-05/0.2371, allocations: 28 kB / 398.6 MB, free: 14.58 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008483/0.238, allocations: 1.135 MB / 399.8 MB, free: 13.46 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.238, allocations: 0 / 399.8 MB, free: 13.46 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002095/0.2401, allocations: 0.8358 MB / 400.6 MB, free: 12.62 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.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 (71): * Single equations (assignments): 67 * 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.000246/0.2403, allocations: 144.1 kB / 400.7 MB, free: 12.47 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001769/0.2421, allocations: 2.164 MB / 402.9 MB, free: 10.32 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001472/0.2422, allocations: 100.2 kB / 403 MB, free: 10.21 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000277/0.2425, allocations: 329 kB / 403.3 MB, free: 9.871 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00118/0.2437, allocations: 0.5373 MB / 403.9 MB, free: 9.34 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0061/0.2498, allocations: 6.415 MB / 410.3 MB, free: 2.828 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008516/0.2506, allocations: 1.1 MB / 411.4 MB, free: 1.711 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008991/0.2515, allocations: 452.9 kB / 411.8 MB, free: 1.266 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005395/0.2521, allocations: 481.2 kB / 412.3 MB, free: 0.7969 MB / 362.7 MB Notification: Performance of SimCode: time 1.062e-06/0.2521, allocations: 0 / 412.3 MB, free: 0.7969 MB / 362.7 MB Notification: Performance of Templates: time 0.1331/0.3852, allocations: 22.3 MB / 434.6 MB, free: 115.5 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/ActuatedDrive/ActuatedDrive.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: 3.6031586811877787]