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.0014/0.0014, allocations: 73.7 kB / 21.24 MB, free: 0.543 MB / 14.72 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.001473/0.001473, allocations: 158.5 kB / 24.5 MB, free: 3.719 MB / 14.72 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 1.413/1.413, allocations: 177.2 MB / 204.9 MB, free: 8.984 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001598/0.001598, allocations: 59.77 kB / 325.6 MB, free: 284 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08965/0.09125, allocations: 53.34 MB / 378.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.01186/0.1031, allocations: 9.667 MB / 388.6 MB, free: 5.926 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007233/0.1103, allocations: 3.649 MB / 392.2 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009805/0.1113, allocations: 75.69 kB / 392.3 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004842/0.1162, allocations: 2.609 MB / 394.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004023/0.1202, allocations: 1.813 MB / 396.7 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001216/0.1214, allocations: 0.5732 MB / 397.3 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004495/0.1259, allocations: 3.578 MB / 400.9 MB, free: 9.594 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003157/0.1291, allocations: 2.721 MB / 403.6 MB, free: 6.805 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001858/0.1309, allocations: 1.468 MB / 405.1 MB, free: 5.332 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0027/0.1336, allocations: 2.028 MB / 407.1 MB, free: 3.297 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005392/0.1342, allocations: 316 kB / 407.4 MB, free: 2.988 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00177/0.1359, allocations: 0.9401 MB / 408.3 MB, free: 2.047 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001737/0.1377, allocations: 1.835 MB / 410.2 MB, free: 212 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001726/0.1394, allocations: 1.545 MB / 411.7 MB, free: 14.65 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00716/0.1465, allocations: 6.696 MB / 418.4 MB, free: 7.93 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.864e-06/0.1466, allocations: 7.984 kB / 418.4 MB, free: 7.922 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1466, allocations: 0 / 418.4 MB, free: 7.922 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001146/0.1467, allocations: 0 / 418.4 MB, free: 7.922 MB / 382.1 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.01714/0.1638, allocations: 5.238 MB / 423.7 MB, free: 2.629 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.1639, allocations: 8.031 kB / 423.7 MB, free: 2.621 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006865/0.1707, allocations: 1.921 MB / 425.6 MB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004499/0.1752, allocations: 2.193 MB / 427.8 MB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001755/0.1754, allocations: 221.7 kB / 428 MB, free: 14.24 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005711/0.176, allocations: 303.8 kB / 428.3 MB, free: 13.94 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01763/0.1936, allocations: 10.1 MB / 438.4 MB, free: 3.16 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001083/0.1937, allocations: 47.62 kB / 438.4 MB, free: 3.113 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003925/0.1941, allocations: 139.9 kB / 438.6 MB, free: 2.977 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003311/0.1974, allocations: 1.809 MB / 440.4 MB, free: 1.168 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01815/0.2156, allocations: 9.032 MB / 449.4 MB, free: 8.129 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2329/0.4484, allocations: 35.46 MB / 484.9 MB, free: 57.55 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0134/0.4618, allocations: 3.227 MB / 488.1 MB, free: 57.45 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002086/0.4639, allocations: 1.574 MB / 489.7 MB, free: 57.41 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000453/0.4644, allocations: 127.4 kB / 489.8 MB, free: 57.41 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.639e-05/0.4644, allocations: 48.69 kB / 489.8 MB, free: 57.37 MB / 430.1 MB Notification: Performance of pre-optimization done (n=127): time 3.397e-06/0.4644, allocations: 0 / 489.8 MB, free: 57.37 MB / 430.1 MB Notification: Performance of matching and sorting (n=133): time 0.04084/0.5053, allocations: 13.23 MB / 0.4913 GB, free: 53.12 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.873e-05/0.5053, allocations: 144.3 kB / 0.4914 GB, free: 52.96 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004998/0.5103, allocations: 3.735 MB / 0.4951 GB, free: 51.3 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002036/0.5105, allocations: 41.2 kB / 0.4951 GB, free: 51.26 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001482/0.512, allocations: 3.161 MB / 0.4982 GB, free: 48.7 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000549/0.5125, allocations: 0.5628 MB / 0.4987 GB, free: 48.23 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001635/0.5142, allocations: 1.185 MB / 0.4999 GB, free: 47.41 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.789e-05/0.5142, allocations: 301.1 kB / 0.5002 GB, free: 47.11 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002366/0.5166, allocations: 1.959 MB / 0.5021 GB, free: 45.14 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003485/0.5201, allocations: 5.658 MB / 0.5076 GB, free: 37.69 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006293/0.5264, allocations: 8.238 MB / 0.5157 GB, free: 27.76 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001294/0.5265, allocations: 40 kB / 0.5157 GB, free: 27.72 MB / 430.1 MB Notification: Performance of matching and sorting (n=738) (initialization): time 0.01163/0.5381, allocations: 8.052 MB / 0.5236 GB, free: 19.66 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.826e-05/0.5382, allocations: 60 kB / 0.5236 GB, free: 19.61 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001617/0.5384, allocations: 135.9 kB / 0.5238 GB, free: 19.47 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002253/0.5406, allocations: 0.9078 MB / 0.5246 GB, free: 18.56 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003517/0.5441, allocations: 1.326 MB / 0.5259 GB, free: 17.23 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005394/0.5495, allocations: 5.02 MB / 0.5308 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003622/0.5532, allocations: 311.1 kB / 0.5311 GB, free: 11.82 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005381/0.5537, allocations: 375.3 kB / 0.5315 GB, free: 11.46 MB / 430.1 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.002435/0.5561, allocations: 1.974 MB / 0.5334 GB, free: 9.473 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005556/0.5567, allocations: 321.9 kB / 0.5337 GB, free: 9.156 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004351/0.561, allocations: 2.72 MB / 0.5364 GB, free: 6.422 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.075e-05/0.5611, allocations: 16.88 kB / 0.5364 GB, free: 6.406 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/0.5611, allocations: 4 kB / 0.5364 GB, free: 6.402 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.186e-05/0.5611, allocations: 7.984 kB / 0.5364 GB, free: 6.395 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01019/0.5713, allocations: 6.12 MB / 0.5424 GB, free: 260 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.628e-06/0.5713, allocations: 0.875 kB / 0.5424 GB, free: 260 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009619/0.5722, allocations: 219.8 kB / 0.5426 GB, free: 40 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002296/0.5745, allocations: 0.7112 MB / 0.5433 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001406/0.5747, allocations: 43.97 kB / 0.5433 GB, free: 15.28 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006817/0.5815, allocations: 4.584 MB / 0.5478 GB, free: 10.61 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/0.5815, allocations: 7.938 kB / 0.5478 GB, free: 10.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008261/0.5898, allocations: 5.04 MB / 0.5527 GB, free: 5.523 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008624/0.5906, allocations: 285.7 kB / 0.553 GB, free: 5.242 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005268/0.5912, allocations: 20 kB / 0.553 GB, free: 5.223 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001333/0.5925, allocations: 79.84 kB / 0.5531 GB, free: 5.145 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002814/0.5928, allocations: 92.48 kB / 0.5532 GB, free: 5.051 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001293/0.5929, allocations: 55.73 kB / 0.5533 GB, free: 5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003767/0.5967, allocations: 2.146 MB / 0.5553 GB, free: 2.863 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5967, allocations: 4 kB / 0.5554 GB, free: 2.859 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004531/0.6012, allocations: 0.8827 MB / 0.5562 GB, free: 1.977 MB / 446.1 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.000377/0.6016, allocations: 154.2 kB / 0.5564 GB, free: 1.816 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00756/0.6091, allocations: 4.512 MB / 0.5608 GB, free: 13.34 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.6091, allocations: 4.25 kB / 0.5608 GB, free: 13.33 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001997/0.6111, allocations: 1.272 MB / 0.562 GB, free: 12.05 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002606/0.6137, allocations: 372 kB / 0.5624 GB, free: 11.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01647/0.6302, allocations: 8.444 MB / 0.5706 GB, free: 3.227 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005426/0.6356, allocations: 2.518 MB / 0.5731 GB, free: 0.6875 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004392/0.64, allocations: 1.792 MB / 0.5748 GB, free: 14.89 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000791/0.6408, allocations: 244.3 kB / 0.5751 GB, free: 14.65 MB / 478.1 MB Notification: Performance of SimCode: time 1.282e-06/0.6408, allocations: 0 / 0.5751 GB, free: 14.65 MB / 478.1 MB Notification: Performance of Templates: time 0.06318/0.704, allocations: 27.92 MB / 0.6023 GB, free: 3.195 MB / 494.1 MB " [Timeout remaining time 659] 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=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/ActuatedDrive/ActuatedDrive.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.95235022995621]