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.001562/0.001562, allocations: 87.89 kB / 21.19 MB, free: 3.379 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.001468/0.001468, allocations: 145.1 kB / 24.54 MB, free: 24 kB / 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.9076/0.9076, allocations: 173.4 MB / 201.1 MB, free: 9.32 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 2.345e-06/2.345e-06, allocations: 4 kB / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.538e-05/1.772e-05, allocations: 6.25 kB / 268 MB, free: 6.422 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.00854/0.008558, allocations: 10.86 MB / 278.8 MB, free: 11.51 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004204/0.01276, allocations: 3.753 MB / 282.6 MB, free: 7.746 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004631/0.01322, allocations: 79.62 kB / 282.7 MB, free: 7.668 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002817/0.01604, allocations: 2.897 MB / 285.6 MB, free: 4.762 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001912/0.01795, allocations: 1.936 MB / 287.5 MB, free: 2.816 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005918/0.01854, allocations: 0.6315 MB / 288.1 MB, free: 2.184 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1191/0.1376, allocations: 3.94 MB / 292.1 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003987/0.1416, allocations: 3.107 MB / 295.2 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003375/0.145, allocations: 2.326 MB / 297.5 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003344/0.1483, allocations: 2.13 MB / 299.6 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001279/0.1496, allocations: 317.3 kB / 300 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002243/0.1519, allocations: 0.9972 MB / 301 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001399/0.1532, allocations: 1.97 MB / 302.9 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001258/0.1545, allocations: 1.226 MB / 304.2 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003731/0.1582, allocations: 4.347 MB / 308.5 MB, free: 11.82 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1582, allocations: 2.281 kB / 308.5 MB, free: 11.82 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1582, allocations: 0 / 308.5 MB, free: 11.82 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001215/0.1584, allocations: 0 / 308.5 MB, free: 11.82 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.005101/0.1635, allocations: 5.461 MB / 314 MB, free: 8.543 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.1635, allocations: 9.672 kB / 314 MB, free: 8.543 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003469/0.167, allocations: 2.326 MB / 316.3 MB, free: 6.855 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001698/0.1687, allocations: 2.002 MB / 318.3 MB, free: 4.957 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.578e-05/0.1687, allocations: 229.1 kB / 318.5 MB, free: 4.766 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002767/0.169, allocations: 300 kB / 318.8 MB, free: 4.508 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004949/0.174, allocations: 5.648 MB / 324.5 MB, free: 14.12 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.141e-05/0.174, allocations: 38.23 kB / 324.5 MB, free: 14.11 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000248/0.1743, allocations: 147.1 kB / 324.6 MB, free: 14 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00157/0.1759, allocations: 1.746 MB / 326.4 MB, free: 12.29 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004797/0.1807, allocations: 2.766 MB / 329.2 MB, free: 9.703 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0236/0.2043, allocations: 41.65 MB / 370.8 MB, free: 15.14 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002493/0.2068, allocations: 1.126 MB / 371.9 MB, free: 13.97 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004428/0.2072, allocations: 351.1 kB / 372.3 MB, free: 13.61 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003429/0.2106, allocations: 2.956 MB / 375.2 MB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.79e-05/0.2107, allocations: 49.72 kB / 375.3 MB, free: 10.61 MB / 330.7 MB Notification: Performance of pre-optimization done (n=93): time 3.236e-06/0.2107, allocations: 0 / 375.3 MB, free: 10.61 MB / 330.7 MB Notification: Performance of matching and sorting (n=94): time 0.006944/0.2176, allocations: 5.438 MB / 380.7 MB, free: 5.117 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.382e-05/0.2177, allocations: 136.5 kB / 380.8 MB, free: 4.953 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00318/0.2208, allocations: 3.57 MB / 384.4 MB, free: 1.379 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.434e-05/0.2209, allocations: 37.7 kB / 384.5 MB, free: 1.336 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001621/0.2225, allocations: 3.447 MB / 387.9 MB, free: 13.9 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003075/0.2228, allocations: 457.8 kB / 388.3 MB, free: 13.46 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009876/0.2238, allocations: 1.237 MB / 389.6 MB, free: 12.2 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.2239, allocations: 484.7 kB / 390.1 MB, free: 11.73 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008018/0.2247, allocations: 0.5028 MB / 390.6 MB, free: 11.22 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003181/0.2279, allocations: 6.222 MB / 396.8 MB, free: 2.391 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004946/0.2328, allocations: 7.438 MB / 404.2 MB, free: 8.465 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.889e-05/0.2329, allocations: 36 kB / 404.3 MB, free: 8.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=732) (initialization): time 0.005641/0.2385, allocations: 4.87 MB / 409.1 MB, free: 3.555 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.198e-05/0.2386, allocations: 64 kB / 409.2 MB, free: 3.492 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001057/0.2387, allocations: 136 kB / 409.3 MB, free: 3.359 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003306/0.239, allocations: 220.2 kB / 409.5 MB, free: 3.141 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002096/0.2411, allocations: 1.314 MB / 410.9 MB, free: 1.824 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001159/0.2423, allocations: 2.079 MB / 412.9 MB, free: 15.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001888/0.2442, allocations: 335.6 kB / 413.3 MB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002719/0.2444, allocations: 360 kB / 413.6 MB, free: 14.94 MB / 378.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.0009613/0.2454, allocations: 0.6523 MB / 414.3 MB, free: 14.28 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002888/0.2457, allocations: 329.9 kB / 414.6 MB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006999/0.2464, allocations: 0.5641 MB / 415.1 MB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.2464, allocations: 8 kB / 415.2 MB, free: 13.37 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.2464, allocations: 4 kB / 415.2 MB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.575e-06/0.2464, allocations: 3.984 kB / 415.2 MB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004095/0.2505, allocations: 3.435 MB / 418.6 MB, free: 9.867 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.2505, allocations: 0 / 418.6 MB, free: 9.867 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003645/0.2509, allocations: 155.8 kB / 418.8 MB, free: 9.715 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001467/0.251, allocations: 51.84 kB / 418.8 MB, free: 9.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.887e-05/0.2511, allocations: 16 kB / 418.8 MB, free: 9.645 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008751/0.2519, allocations: 1.826 MB / 420.6 MB, free: 7.703 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.2519, allocations: 4 kB / 420.6 MB, free: 7.699 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001347/0.2533, allocations: 1.541 MB / 422.2 MB, free: 6.098 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002931/0.2536, allocations: 289.8 kB / 422.5 MB, free: 5.812 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001722/0.2538, allocations: 16 kB / 422.5 MB, free: 5.797 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004785/0.2542, allocations: 63.91 kB / 422.5 MB, free: 5.734 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001219/0.2544, allocations: 71.75 kB / 422.6 MB, free: 5.664 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.02e-05/0.2544, allocations: 28 kB / 422.6 MB, free: 5.637 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001501/0.2559, allocations: 1.505 MB / 424.2 MB, free: 4.145 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2559, allocations: 0 / 424.2 MB, free: 4.145 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002622/0.2585, allocations: 0.87 MB / 425 MB, free: 3.277 MB / 378.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.0003117/0.2588, allocations: 173 kB / 425.2 MB, free: 3.102 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002852/0.2617, allocations: 2.505 MB / 427.7 MB, free: 0.6016 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.2617, allocations: 0 / 427.7 MB, free: 0.6016 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003869/0.2621, allocations: 451.1 kB / 428.1 MB, free: 144 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1045/0.3665, allocations: 370 kB / 428.5 MB, free: 121.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008358/0.3749, allocations: 6.602 MB / 435.1 MB, free: 118.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001038/0.3759, allocations: 1.136 MB / 436.2 MB, free: 118.4 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002383/0.3783, allocations: 1.516 MB / 437.8 MB, free: 118.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000307/0.3786, allocations: 202.3 kB / 437.9 MB, free: 118.2 MB / 378.7 MB Notification: Performance of SimCode: time 1.302e-06/0.3786, allocations: 0 / 437.9 MB, free: 118.2 MB / 378.7 MB Notification: Performance of Templates: time 0.03193/0.4106, allocations: 21.08 MB / 459 MB, free: 106.4 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 -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.5993174598552287]