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.0009695/0.0009695, allocations: 75.75 kB / 21.69 MB, free: 2.859 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.0009461/0.0009461, allocations: 160.9 kB / 24.99 MB, free: 9.324 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.9364/0.9364, allocations: 177.1 MB / 205.3 MB, free: 5.633 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.533e-06/1.533e-06, allocations: 0 / 273.1 MB, free: 1.852 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.704e-05/1.858e-05, allocations: 2.312 kB / 273.1 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.008678/0.008697, allocations: 10.69 MB / 283.7 MB, free: 7.109 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0046/0.0133, allocations: 3.738 MB / 287.5 MB, free: 3.359 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00056/0.01386, allocations: 75.62 kB / 287.6 MB, free: 3.285 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002725/0.01658, allocations: 2.885 MB / 290.4 MB, free: 400 kB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1238/0.1404, allocations: 1.857 MB / 292.3 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001057/0.1415, allocations: 0.6316 MB / 292.9 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004106/0.1456, allocations: 3.968 MB / 296.9 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003615/0.1492, allocations: 3.084 MB / 300 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002406/0.1516, allocations: 2.213 MB / 302.2 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002032/0.1536, allocations: 2.172 MB / 304.4 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003691/0.154, allocations: 319.8 kB / 304.7 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001022/0.155, allocations: 0.999 MB / 305.7 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008178/0.1558, allocations: 1.929 MB / 307.6 MB, free: 10.99 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007743/0.1566, allocations: 1.202 MB / 308.8 MB, free: 10.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002493/0.1591, allocations: 4.279 MB / 313.1 MB, free: 7.746 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1591, allocations: 0 / 313.1 MB, free: 7.746 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1591, allocations: 0 / 313.1 MB, free: 7.746 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.264e-05/0.1592, allocations: 0 / 313.1 MB, free: 7.746 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.007577/0.1667, allocations: 5.614 MB / 318.7 MB, free: 2.168 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.1668, allocations: 8.031 kB / 318.7 MB, free: 2.16 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003634/0.1704, allocations: 2.318 MB / 321 MB, free: 15.87 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002088/0.1725, allocations: 2.027 MB / 323.1 MB, free: 13.96 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001083/0.1726, allocations: 224 kB / 323.3 MB, free: 13.77 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000354/0.173, allocations: 299.5 kB / 323.6 MB, free: 13.51 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007326/0.1803, allocations: 6.019 MB / 329.6 MB, free: 6.754 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.075e-05/0.1804, allocations: 52 kB / 329.6 MB, free: 6.723 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002762/0.1806, allocations: 145 kB / 329.8 MB, free: 6.613 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00188/0.1825, allocations: 1.805 MB / 331.6 MB, free: 4.84 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006207/0.1887, allocations: 3.299 MB / 334.9 MB, free: 1.738 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02788/0.2166, allocations: 41.68 MB / 376.6 MB, free: 7.207 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007916/0.2245, allocations: 1.841 MB / 378.4 MB, free: 5.332 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008553/0.2254, allocations: 0.4888 MB / 378.9 MB, free: 4.824 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003097/0.2257, allocations: 124.4 kB / 379 MB, free: 4.703 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.2257, allocations: 50.05 kB / 379.1 MB, free: 4.641 MB / 330.7 MB Notification: Performance of pre-optimization done (n=127): time 4.538e-06/0.2257, allocations: 0 / 379.1 MB, free: 4.641 MB / 330.7 MB Notification: Performance of matching and sorting (n=133): time 0.02684/0.2526, allocations: 9.468 MB / 388.5 MB, free: 11.12 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.652e-05/0.2526, allocations: 141.2 kB / 388.7 MB, free: 10.96 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003956/0.2566, allocations: 3.434 MB / 392.1 MB, free: 7.512 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.343e-05/0.2567, allocations: 49.7 kB / 392.2 MB, free: 7.457 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001911/0.2586, allocations: 3.288 MB / 395.4 MB, free: 4.184 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004695/0.259, allocations: 0.5896 MB / 396 MB, free: 3.602 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001353/0.2604, allocations: 1.267 MB / 397.3 MB, free: 2.316 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.787e-05/0.2605, allocations: 484.8 kB / 397.8 MB, free: 1.84 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008963/0.2614, allocations: 0.577 MB / 398.4 MB, free: 1.258 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003408/0.2648, allocations: 6.071 MB / 404.4 MB, free: 8.648 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004983/0.2698, allocations: 7.343 MB / 411.8 MB, free: 14.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.702e-05/0.2698, allocations: 40 kB / 411.8 MB, free: 14.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=738) (initialization): time 0.006793/0.2766, allocations: 5.416 MB / 417.2 MB, free: 9.336 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.452e-05/0.2767, allocations: 64 kB / 417.3 MB, free: 9.273 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.032e-05/0.2767, allocations: 132 kB / 417.4 MB, free: 9.145 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001235/0.278, allocations: 0.6177 MB / 418 MB, free: 8.523 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002111/0.2801, allocations: 1.318 MB / 419.3 MB, free: 7.203 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00305/0.2831, allocations: 3.22 MB / 422.6 MB, free: 3.867 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001818/0.285, allocations: 351.6 kB / 422.9 MB, free: 3.523 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002792/0.2852, allocations: 369.4 kB / 423.3 MB, free: 3.164 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * 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 (699): * Single equations (assignments): 695 * 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.0009389/0.2862, allocations: 0.638 MB / 423.9 MB, free: 2.512 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003151/0.2865, allocations: 348.7 kB / 424.3 MB, free: 2.172 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002128/0.2886, allocations: 1.399 MB / 425.7 MB, free: 0.7539 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-05/0.2886, allocations: 12 kB / 425.7 MB, free: 0.7422 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.2886, allocations: 8 kB / 425.7 MB, free: 0.7344 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/0.2887, allocations: 15.92 kB / 425.7 MB, free: 0.7188 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006854/0.2955, allocations: 4.732 MB / 430.4 MB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.146e-05/0.2955, allocations: 0 / 430.4 MB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007298/0.2962, allocations: 219.7 kB / 430.6 MB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001071/0.2973, allocations: 439.9 kB / 431.1 MB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.35e-05/0.2974, allocations: 43.97 kB / 431.1 MB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002722/0.3001, allocations: 2.93 MB / 434 MB, free: 8.211 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3001, allocations: 0 / 434 MB, free: 8.211 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003216/0.3033, allocations: 2.407 MB / 436.4 MB, free: 5.762 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004168/0.3038, allocations: 297.8 kB / 436.7 MB, free: 5.469 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002052/0.304, allocations: 20 kB / 436.8 MB, free: 5.449 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007216/0.3047, allocations: 106.9 kB / 436.9 MB, free: 5.348 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001928/0.3049, allocations: 96.42 kB / 437 MB, free: 5.254 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.252e-05/0.305, allocations: 51.97 kB / 437 MB, free: 5.203 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001716/0.3067, allocations: 1.462 MB / 438.5 MB, free: 3.75 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3067, allocations: 0 / 438.5 MB, free: 3.75 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00297/0.3096, allocations: 0.9491 MB / 439.4 MB, free: 2.801 MB / 394.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 (101): * Single equations (assignments): 97 * 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.0003563/0.31, allocations: 170.8 kB / 439.6 MB, free: 2.629 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.1034/0.4134, allocations: 2.793 MB / 442.4 MB, free: 135.2 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.4134, allocations: 0 / 442.4 MB, free: 135.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00111/0.4145, allocations: 0.6639 MB / 443 MB, free: 135 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001715/0.4162, allocations: 392 kB / 443.4 MB, free: 135 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008751/0.425, allocations: 6.785 MB / 450.2 MB, free: 132.3 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001215/0.4262, allocations: 1.145 MB / 451.3 MB, free: 132.1 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002398/0.4286, allocations: 1.552 MB / 452.9 MB, free: 132 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004311/0.429, allocations: 257.2 kB / 453.2 MB, free: 132 MB / 394.7 MB Notification: Performance of SimCode: time 1.733e-06/0.429, allocations: 0 / 453.2 MB, free: 132 MB / 394.7 MB Notification: Performance of Templates: time 0.03762/0.4667, allocations: 29.28 MB / 482.4 MB, free: 110.8 MB / 394.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.720420803874731]