Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007461/0.0007461, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001049/0.001795, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0006269/0.0006269, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009434/0.00157, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8768/0.8768, allocations: 173.4 MB / 185.9 MB, free: 8.926 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09066/0.9675, allocations: 52.49 MB / 238.4 MB, free: 4.371 MB / 234.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 239.7 MB, free: 3.098 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.109e-05/2.27e-05, allocations: 3.438 kB / 239.7 MB, free: 3.094 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.009691/0.009714, allocations: 10.66 MB / 250.4 MB, free: 8.379 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005783/0.0155, allocations: 3.908 MB / 254.3 MB, free: 4.457 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007068/0.0162, allocations: 75.62 kB / 254.4 MB, free: 4.383 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002363/0.01857, allocations: 2.741 MB / 257.1 MB, free: 1.633 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002298/0.02087, allocations: 1.89 MB / 259 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007269/0.02159, allocations: 0.5847 MB / 259.6 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002578/0.02417, allocations: 3.82 MB / 263.4 MB, free: 11.32 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002039/0.02621, allocations: 2.898 MB / 266.3 MB, free: 8.336 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001976/0.02819, allocations: 2.404 MB / 268.7 MB, free: 5.93 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001802/0.02999, allocations: 2.011 MB / 270.7 MB, free: 3.914 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000415/0.0304, allocations: 316 kB / 271 MB, free: 3.605 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001278/0.03168, allocations: 1.03 MB / 272.1 MB, free: 2.574 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001025/0.03271, allocations: 1.765 MB / 273.8 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1101/0.1428, allocations: 1.004 MB / 274.8 MB, free: 8.211 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004396/0.1472, allocations: 4.041 MB / 278.9 MB, free: 7.883 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.221e-05/0.1472, allocations: 0.75 kB / 278.9 MB, free: 7.883 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1472, allocations: 0 / 278.9 MB, free: 7.883 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.941e-05/0.1473, allocations: 1.375 kB / 278.9 MB, free: 7.883 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: 1442 * Number of variables: 1442 Notification: Performance of Generate backend data structure: time 0.00664/0.1539, allocations: 5.381 MB / 284.2 MB, free: 5.949 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.154, allocations: 8.375 kB / 284.3 MB, free: 5.949 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002601/0.1566, allocations: 1.047 MB / 285.3 MB, free: 5.934 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001941/0.1585, allocations: 1.699 MB / 287 MB, free: 5.406 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000119/0.1586, allocations: 223.4 kB / 287.2 MB, free: 5.398 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000379/0.159, allocations: 299 kB / 287.5 MB, free: 5.395 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004156/0.1632, allocations: 4.649 MB / 292.2 MB, free: 3.512 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.39e-05/0.1632, allocations: 40.48 kB / 292.2 MB, free: 3.508 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002568/0.1635, allocations: 143.5 kB / 292.3 MB, free: 3.508 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001156/0.1646, allocations: 1.473 MB / 293.8 MB, free: 3.504 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002839/0.1675, allocations: 2.26 MB / 296.1 MB, free: 3.359 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01768/0.1852, allocations: 29.54 MB / 325.6 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002075/0.1872, allocations: 1.01 MB / 326.6 MB, free: 9.668 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000275/0.1875, allocations: 237.5 kB / 326.9 MB, free: 9.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003103/0.1906, allocations: 2.644 MB / 329.5 MB, free: 6.809 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.68e-05/0.1906, allocations: 42.45 kB / 329.5 MB, free: 6.762 MB / 298.7 MB Notification: Performance of pre-optimization done (n=93): time 2.956e-06/0.1906, allocations: 4 kB / 329.5 MB, free: 6.758 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.004741/0.1954, allocations: 2.316 MB / 331.9 MB, free: 4.449 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.811e-05/0.1954, allocations: 148 kB / 332 MB, free: 4.277 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002423/0.1979, allocations: 3.177 MB / 335.2 MB, free: 1.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.481e-05/0.1979, allocations: 37.7 kB / 335.2 MB, free: 1.637 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001297/0.1992, allocations: 3.089 MB / 338.3 MB, free: 14.71 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000246/0.1994, allocations: 438.2 kB / 338.7 MB, free: 14.3 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008453/0.2003, allocations: 1.088 MB / 339.8 MB, free: 13.33 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.011e-05/0.2004, allocations: 305.1 kB / 340.1 MB, free: 13.03 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009133/0.2013, allocations: 0.6397 MB / 340.8 MB, free: 12.38 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002475/0.2037, allocations: 4.354 MB / 345.1 MB, free: 6.309 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004152/0.2079, allocations: 5.983 MB / 351.1 MB, free: 14.83 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.679e-05/0.2079, allocations: 40 kB / 351.1 MB, free: 14.79 MB / 330.7 MB Notification: Performance of matching and sorting (n=732) (initialization): time 0.003682/0.2116, allocations: 3.893 MB / 355 MB, free: 10.89 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.213e-05/0.2117, allocations: 64 kB / 355.1 MB, free: 10.83 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.339e-05/0.2118, allocations: 146.9 kB / 355.2 MB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002658/0.212, allocations: 225.6 kB / 355.5 MB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002029/0.2141, allocations: 1.419 MB / 356.9 MB, free: 9.047 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008796/0.2149, allocations: 1.52 MB / 358.4 MB, free: 7.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001925/0.2169, allocations: 262.5 kB / 358.7 MB, free: 7.176 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002701/0.2171, allocations: 320 kB / 359 MB, free: 6.863 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 630 * Number of states: 0 () * Number of discrete variables: 38 (torque.torqueArrow.arrowLine.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 (706): * Single equations (assignments): 702 * 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.001273/0.2184, allocations: 0.603 MB / 359.6 MB, free: 6.246 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002088/0.2186, allocations: 173.5 kB / 359.7 MB, free: 6.078 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006043/0.2192, allocations: 0.4902 MB / 360.2 MB, free: 5.578 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.204e-05/0.2192, allocations: 11.98 kB / 360.2 MB, free: 5.566 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.2192, allocations: 0 / 360.2 MB, free: 5.566 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.2192, allocations: 4 kB / 360.2 MB, free: 5.562 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003187/0.2224, allocations: 2.825 MB / 363.1 MB, free: 3.211 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.176e-05/0.2224, allocations: 8 kB / 363.1 MB, free: 3.203 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003788/0.2228, allocations: 147.8 kB / 363.2 MB, free: 3.059 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002541/0.2231, allocations: 280.3 kB / 363.5 MB, free: 2.785 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001414/0.2232, allocations: 47.62 kB / 363.5 MB, free: 2.734 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.839e-05/0.2232, allocations: 12 kB / 363.6 MB, free: 2.723 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009153/0.2242, allocations: 1.451 MB / 365 MB, free: 1.18 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.2242, allocations: 3.984 kB / 365 MB, free: 1.176 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009816/0.2251, allocations: 1.202 MB / 366.2 MB, free: 15.95 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001653/0.2253, allocations: 19.94 kB / 366.2 MB, free: 15.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000447/0.2258, allocations: 19.98 kB / 366.3 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.637e-05/0.2259, allocations: 55.84 kB / 366.3 MB, free: 15.86 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.87e-05/0.2259, allocations: 23.12 kB / 366.3 MB, free: 15.84 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009419/0.2268, allocations: 1.141 MB / 367.5 MB, free: 14.85 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.2268, allocations: 0 / 367.5 MB, free: 14.85 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002995/0.2298, allocations: 0.8694 MB / 368.3 MB, free: 13.98 MB / 346.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.0003212/0.2302, allocations: 158.6 kB / 368.5 MB, free: 13.82 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002112/0.2323, allocations: 2.289 MB / 370.8 MB, free: 11.83 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001663/0.2324, allocations: 104.2 kB / 370.9 MB, free: 11.71 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003594/0.2328, allocations: 379.3 kB / 371.3 MB, free: 11.35 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002343/0.2351, allocations: 2.861 MB / 374.1 MB, free: 8.102 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01003/0.2452, allocations: 6.636 MB / 380.8 MB, free: 1.395 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000926/0.2461, allocations: 1.137 MB / 381.9 MB, free: 240 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0009849/0.2471, allocations: 444.6 kB / 382.3 MB, free: 15.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005213/0.2476, allocations: 473.2 kB / 382.8 MB, free: 15.34 MB / 362.7 MB Notification: Performance of SimCode: time 3.597e-06/0.2476, allocations: 4 kB / 382.8 MB, free: 15.34 MB / 362.7 MB Notification: Performance of Templates: time 0.03404/0.2816, allocations: 21.16 MB / 404 MB, free: 10.3 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/ActuatedDrive/ActuatedDrive.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: 2.816279594786465]