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.001138/0.001138, allocations: 80.62 kB / 22.21 MB, free: 2.297 MB / 18.57 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.001174/0.001174, allocations: 153.2 kB / 25.6 MB, free: 8.934 MB / 18.57 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.9202/0.9202, allocations: 173.4 MB / 202.3 MB, free: 8.312 MB / 186.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.453e-06/1.453e-06, allocations: 0 / 269.2 MB, free: 9.781 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.33e-05/1.475e-05, allocations: 6.312 kB / 269.2 MB, free: 9.773 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.008216/0.008231, allocations: 10.53 MB / 279.7 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005798/0.01403, allocations: 3.725 MB / 283.5 MB, free: 11.48 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009643/0.01499, allocations: 75.62 kB / 283.5 MB, free: 11.41 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002916/0.01791, allocations: 2.846 MB / 286.4 MB, free: 8.555 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003482/0.02139, allocations: 1.94 MB / 288.3 MB, free: 6.605 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001053/0.02244, allocations: 0.6276 MB / 288.9 MB, free: 5.977 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00296/0.0254, allocations: 3.959 MB / 292.9 MB, free: 2.012 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002494/0.0279, allocations: 3.1 MB / 296 MB, free: 14.84 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001868/0.02977, allocations: 2.335 MB / 298.3 MB, free: 12.5 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001704/0.03147, allocations: 2.116 MB / 300.5 MB, free: 10.38 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002838/0.03175, allocations: 320 kB / 300.8 MB, free: 10.07 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001093/0.03285, allocations: 0.9908 MB / 301.8 MB, free: 9.078 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001292/0.03414, allocations: 1.967 MB / 303.7 MB, free: 7.105 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008729/0.03501, allocations: 1.227 MB / 304.9 MB, free: 5.875 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003305/0.03832, allocations: 4.347 MB / 309.3 MB, free: 1.512 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.03832, allocations: 0 / 309.3 MB, free: 1.512 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.03832, allocations: 0 / 309.3 MB, free: 1.512 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.526e-05/0.03836, allocations: 0 / 309.3 MB, free: 1.512 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: 1442 * Number of variables: 1442 Notification: Performance of Generate backend data structure: time 0.00559/0.04395, allocations: 5.309 MB / 314.6 MB, free: 12.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.04398, allocations: 8.031 kB / 314.6 MB, free: 12.13 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002883/0.04687, allocations: 1.414 MB / 316 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001942/0.04881, allocations: 1.828 MB / 317.9 MB, free: 8.828 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001128/0.04892, allocations: 228.6 kB / 318.1 MB, free: 8.605 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003343/0.04925, allocations: 307.8 kB / 318.4 MB, free: 8.305 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00489/0.05414, allocations: 5.176 MB / 323.6 MB, free: 2.203 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.772e-05/0.05421, allocations: 43.62 kB / 323.6 MB, free: 2.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002445/0.05446, allocations: 143.9 kB / 323.7 MB, free: 2.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00127/0.05573, allocations: 1.564 MB / 325.3 MB, free: 468 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003218/0.05894, allocations: 2.205 MB / 327.5 MB, free: 14.23 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.16/0.2189, allocations: 41.24 MB / 368.7 MB, free: 50.63 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002251/0.2212, allocations: 0.9937 MB / 369.7 MB, free: 50.48 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003354/0.2215, allocations: 301.3 kB / 370 MB, free: 50.44 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002949/0.2245, allocations: 2.814 MB / 372.8 MB, free: 49.6 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.958e-05/0.2245, allocations: 50.88 kB / 372.9 MB, free: 49.56 MB / 330.7 MB Notification: Performance of pre-optimization done (n=93): time 2.094e-06/0.2245, allocations: 0 / 372.9 MB, free: 49.56 MB / 330.7 MB Notification: Performance of matching and sorting (n=94): time 0.004941/0.2294, allocations: 2.605 MB / 375.5 MB, free: 48.96 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.582e-05/0.2295, allocations: 147.2 kB / 375.6 MB, free: 48.8 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00226/0.2317, allocations: 3.55 MB / 379.2 MB, free: 48.27 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.578e-05/0.2318, allocations: 35.8 kB / 379.2 MB, free: 48.24 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001051/0.2328, allocations: 3.478 MB / 382.7 MB, free: 46.31 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002046/0.233, allocations: 461.6 kB / 383.2 MB, free: 46.09 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008147/0.2338, allocations: 1.266 MB / 384.4 MB, free: 45.94 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.576e-05/0.2339, allocations: 477.3 kB / 384.9 MB, free: 45.47 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006042/0.2345, allocations: 461.5 kB / 385.3 MB, free: 45.45 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001814/0.2363, allocations: 6.214 MB / 391.6 MB, free: 37.88 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003595/0.2399, allocations: 7.321 MB / 398.9 MB, free: 29.94 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-05/0.2399, allocations: 39.31 kB / 398.9 MB, free: 29.94 MB / 330.7 MB Notification: Performance of matching and sorting (n=732) (initialization): time 0.004087/0.244, allocations: 4.561 MB / 403.5 MB, free: 25.94 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.5e-05/0.244, allocations: 67.94 kB / 403.5 MB, free: 25.88 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.495e-05/0.2441, allocations: 136 kB / 403.7 MB, free: 25.74 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002487/0.2444, allocations: 233.6 kB / 403.9 MB, free: 25.53 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001703/0.2461, allocations: 1.277 MB / 405.2 MB, free: 24.39 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007698/0.2468, allocations: 2.055 MB / 407.2 MB, free: 22.29 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001768/0.2486, allocations: 263.7 kB / 407.5 MB, free: 22.03 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001912/0.2488, allocations: 319.6 kB / 407.8 MB, free: 21.72 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.0007031/0.2495, allocations: 0.6388 MB / 408.4 MB, free: 21.08 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002442/0.2498, allocations: 329.9 kB / 408.8 MB, free: 20.75 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005627/0.2503, allocations: 0.5383 MB / 409.3 MB, free: 20.25 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.057e-05/0.2503, allocations: 15.98 kB / 409.3 MB, free: 20.23 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.2503, allocations: 0 / 409.3 MB, free: 20.23 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.423e-06/0.2503, allocations: 7.984 kB / 409.3 MB, free: 20.22 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003403/0.2537, allocations: 3.408 MB / 412.7 MB, free: 16.74 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/0.2537, allocations: 3.938 kB / 412.7 MB, free: 16.74 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003032/0.254, allocations: 131.8 kB / 412.9 MB, free: 16.61 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001283/0.2542, allocations: 47.86 kB / 412.9 MB, free: 16.56 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.404e-05/0.2542, allocations: 19.98 kB / 412.9 MB, free: 16.54 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005296/0.2547, allocations: 1.787 MB / 414.7 MB, free: 14.64 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.2547, allocations: 4 kB / 414.7 MB, free: 14.64 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009036/0.2556, allocations: 1.466 MB / 416.2 MB, free: 13.12 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002201/0.2559, allocations: 281.8 kB / 416.5 MB, free: 12.84 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001715/0.256, allocations: 20 kB / 416.5 MB, free: 12.82 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004396/0.2565, allocations: 19.94 kB / 416.5 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.44e-05/0.2566, allocations: 62.89 kB / 416.6 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.171e-05/0.2566, allocations: 27.98 kB / 416.6 MB, free: 12.72 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008754/0.2575, allocations: 1.399 MB / 418 MB, free: 11.33 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2575, allocations: 4 kB / 418 MB, free: 11.33 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002128/0.2596, allocations: 0.871 MB / 418.9 MB, free: 10.46 MB / 330.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.0002373/0.2598, allocations: 165 kB / 419 MB, free: 10.29 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001781/0.2616, allocations: 2.379 MB / 421.4 MB, free: 7.91 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2616, allocations: 4.062 kB / 421.4 MB, free: 7.906 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002582/0.2619, allocations: 415.1 kB / 421.8 MB, free: 7.477 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001055/0.2629, allocations: 377.9 kB / 422.2 MB, free: 7.133 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005649/0.2686, allocations: 6.59 MB / 428.8 MB, free: 456 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008687/0.2694, allocations: 1.141 MB / 429.9 MB, free: 15.28 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0009204/0.2704, allocations: 460.8 kB / 430.4 MB, free: 14.83 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005635/0.2709, allocations: 0.5098 MB / 430.9 MB, free: 14.32 MB / 346.7 MB Notification: Performance of SimCode: time 9.42e-07/0.2709, allocations: 0 / 430.9 MB, free: 14.32 MB / 346.7 MB Notification: Performance of Templates: time 0.03643/0.3074, allocations: 23.2 MB / 454.1 MB, free: 7.613 MB / 362.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.647596370894462]