Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001492/0.001492, allocations: 75.75 kB / 21.97 MB, free: 2.602 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.001562/0.001562, allocations: 173 kB / 25.33 MB, free: 9.461 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8565/0.8565, allocations: 158.6 MB / 187.2 MB, free: 2.52 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.582e-06/1.582e-06, allocations: 0 / 251 MB, free: 3.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.828e-05/2.987e-05, allocations: 2.312 kB / 251 MB, free: 3.594 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.01191/0.01194, allocations: 11.45 MB / 262.5 MB, free: 8.086 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007298/0.01924, allocations: 3.856 MB / 266.3 MB, free: 4.219 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001304/0.02055, allocations: 75.69 kB / 266.4 MB, free: 4.145 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003171/0.02372, allocations: 2.924 MB / 269.3 MB, free: 1.211 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00357/0.02729, allocations: 2.014 MB / 271.4 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009818/0.02827, allocations: 0.6276 MB / 272 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003878/0.03215, allocations: 4.121 MB / 276.1 MB, free: 10.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003162/0.03531, allocations: 3.201 MB / 279.3 MB, free: 7.156 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003074/0.03838, allocations: 2.339 MB / 281.6 MB, free: 4.812 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002614/0.041, allocations: 2.315 MB / 284 MB, free: 2.492 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007383/0.04173, allocations: 344 kB / 284.3 MB, free: 2.156 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001564/0.0433, allocations: 1.022 MB / 285.3 MB, free: 1.133 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001601/0.0449, allocations: 2.08 MB / 287.4 MB, free: 15.05 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001872/0.04677, allocations: 1.312 MB / 288.7 MB, free: 13.73 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005122/0.05189, allocations: 4.608 MB / 293.3 MB, free: 9.105 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.0519, allocations: 0 / 293.3 MB, free: 9.105 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.0519, allocations: 0 / 293.3 MB, free: 9.105 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001546/0.05206, allocations: 0 / 293.3 MB, free: 9.105 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.01106/0.06311, allocations: 5.887 MB / 299.2 MB, free: 3.152 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.06316, allocations: 11.98 kB / 299.2 MB, free: 3.141 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004571/0.06773, allocations: 2.397 MB / 301.6 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1233/0.191, allocations: 2.11 MB / 303.7 MB, free: 49.2 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001773/0.1912, allocations: 239.8 kB / 304 MB, free: 49.19 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006551/0.1918, allocations: 317.8 kB / 304.3 MB, free: 49.19 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009741/0.2016, allocations: 6.331 MB / 310.6 MB, free: 46.46 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001208/0.2017, allocations: 48.08 kB / 310.6 MB, free: 46.46 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003169/0.202, allocations: 151.1 kB / 310.8 MB, free: 46.46 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002094/0.2041, allocations: 1.986 MB / 312.8 MB, free: 46.44 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008167/0.2123, allocations: 3.517 MB / 316.3 MB, free: 46.02 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02852/0.2408, allocations: 43.52 MB / 359.8 MB, free: 3.598 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005938/0.2467, allocations: 1.939 MB / 361.8 MB, free: 1.617 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007775/0.2475, allocations: 0.5444 MB / 362.3 MB, free: 1.059 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002824/0.2478, allocations: 130.5 kB / 362.4 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.61e-05/0.2478, allocations: 46.39 kB / 362.5 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of pre-optimization done (n=148): time 3.656e-06/0.2478, allocations: 4 kB / 362.5 MB, free: 0.875 MB / 282.7 MB Notification: Performance of matching and sorting (n=154): time 0.02272/0.2705, allocations: 10.1 MB / 372.6 MB, free: 6.941 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.197e-05/0.2706, allocations: 149.5 kB / 372.7 MB, free: 6.762 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00351/0.2741, allocations: 3.524 MB / 376.3 MB, free: 3.262 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.967e-05/0.2742, allocations: 53.06 kB / 376.3 MB, free: 3.207 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002016/0.2762, allocations: 3.462 MB / 379.8 MB, free: 15.76 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005514/0.2768, allocations: 0.6675 MB / 380.4 MB, free: 15.11 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001246/0.278, allocations: 1.33 MB / 381.8 MB, free: 13.76 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.2781, allocations: 480.7 kB / 382.2 MB, free: 13.29 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00121/0.2793, allocations: 0.6362 MB / 382.9 MB, free: 12.65 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004091/0.2834, allocations: 6.313 MB / 389.2 MB, free: 3.719 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006483/0.2899, allocations: 7.698 MB / 396.9 MB, free: 9.441 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004631/0.2904, allocations: 43.75 kB / 396.9 MB, free: 9.402 MB / 330.7 MB Notification: Performance of matching and sorting (n=779) (initialization): time 0.009075/0.2994, allocations: 5.71 MB / 402.6 MB, free: 3.684 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.751e-05/0.2995, allocations: 64 kB / 402.7 MB, free: 3.621 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.681e-05/0.2996, allocations: 136 kB / 402.8 MB, free: 3.488 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001366/0.301, allocations: 0.6252 MB / 403.5 MB, free: 2.859 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00277/0.3037, allocations: 1.4 MB / 404.9 MB, free: 1.457 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003253/0.307, allocations: 3.245 MB / 408.1 MB, free: 14.11 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002855/0.3099, allocations: 355.7 kB / 408.4 MB, free: 13.76 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003734/0.3102, allocations: 395.9 kB / 408.8 MB, free: 13.37 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 620 * Number of states: 0 () * Number of discrete variables: 36 (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 (740): * Single equations (assignments): 736 * 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 {(3,13,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001385/0.3116, allocations: 0.6574 MB / 409.5 MB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004762/0.3121, allocations: 373.7 kB / 409.9 MB, free: 12.33 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002696/0.3148, allocations: 1.589 MB / 411.4 MB, free: 10.72 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.058e-05/0.3148, allocations: 19.94 kB / 411.5 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/0.3148, allocations: 8 kB / 411.5 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.27e-05/0.3148, allocations: 7.969 kB / 411.5 MB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007281/0.3221, allocations: 5.175 MB / 416.7 MB, free: 5.473 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/0.3221, allocations: 0 / 416.7 MB, free: 5.473 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006909/0.3228, allocations: 267.6 kB / 416.9 MB, free: 5.211 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001154/0.324, allocations: 439 kB / 417.3 MB, free: 4.777 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001059/0.3241, allocations: 47.91 kB / 417.4 MB, free: 4.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002969/0.327, allocations: 2.925 MB / 420.3 MB, free: 1.691 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.327, allocations: 8.562 kB / 420.3 MB, free: 1.684 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003462/0.3305, allocations: 2.626 MB / 423 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008827/0.3314, allocations: 0.517 MB / 423.5 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002606/0.3316, allocations: 24 kB / 423.5 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007593/0.3324, allocations: 122.7 kB / 423.6 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002017/0.3326, allocations: 116.7 kB / 423.7 MB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.298e-05/0.3327, allocations: 51.97 kB / 423.8 MB, free: 14.19 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002036/0.3347, allocations: 1.512 MB / 425.3 MB, free: 12.69 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3347, allocations: 4 kB / 425.3 MB, free: 12.69 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003823/0.3385, allocations: 1.027 MB / 426.3 MB, free: 11.66 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (123): * Single equations (assignments): 119 * 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,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000412/0.339, allocations: 182.4 kB / 426.5 MB, free: 11.48 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004537/0.3435, allocations: 3.018 MB / 429.5 MB, free: 8.457 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3435, allocations: 0 / 429.5 MB, free: 8.457 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009282/0.3444, allocations: 0.755 MB / 430.3 MB, free: 7.68 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001523/0.346, allocations: 406.6 kB / 430.7 MB, free: 7.293 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1148/0.4607, allocations: 7.323 MB / 438 MB, free: 111.6 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002075/0.4628, allocations: 1.225 MB / 439.2 MB, free: 111.4 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.003143/0.4659, allocations: 1.634 MB / 440.8 MB, free: 111.4 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005785/0.4665, allocations: 271.9 kB / 441.1 MB, free: 111.4 MB / 362.7 MB Notification: Performance of SimCode: time 2.745e-06/0.4665, allocations: 0 / 441.1 MB, free: 111.4 MB / 362.7 MB Notification: Performance of Templates: time 0.04237/0.5089, allocations: 31.11 MB / 472.2 MB, free: 93.32 MB / 362.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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: 4.010734092444181]