Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001163/0.001163, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001758/0.002921, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001171/0.001171, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001612/0.002783, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9649/0.9649, allocations: 177.5 MB / 190 MB, free: 4.734 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07793/1.043, allocations: 53.87 MB / 243.9 MB, free: 14.8 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 245.2 MB, free: 13.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.803e-05/1.957e-05, allocations: 2.312 kB / 245.2 MB, free: 13.52 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.007804/0.007823, allocations: 10.55 MB / 255.8 MB, free: 2.918 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006129/0.01395, allocations: 3.912 MB / 259.7 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008992/0.01485, allocations: 75.62 kB / 259.7 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002548/0.0174, allocations: 2.725 MB / 262.5 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002785/0.02018, allocations: 1.835 MB / 264.3 MB, free: 10.34 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009122/0.0211, allocations: 0.5886 MB / 264.9 MB, free: 9.75 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004201/0.0253, allocations: 3.879 MB / 268.8 MB, free: 5.863 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002817/0.02811, allocations: 2.886 MB / 271.7 MB, free: 2.895 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00265/0.03076, allocations: 2.373 MB / 274 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1139/0.1446, allocations: 1.984 MB / 276 MB, free: 5.52 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00105/0.1457, allocations: 313.7 kB / 276.3 MB, free: 5.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002035/0.1477, allocations: 1.003 MB / 277.3 MB, free: 5.52 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001419/0.1491, allocations: 1.717 MB / 279 MB, free: 5.52 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001594/0.1507, allocations: 0.9793 MB / 280 MB, free: 5.52 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005133/0.1559, allocations: 3.948 MB / 284 MB, free: 4.996 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.52e-05/0.1559, allocations: 0 / 284 MB, free: 4.996 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.886e-06/0.1559, allocations: 2.719 kB / 284 MB, free: 4.996 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002527/0.1561, allocations: 3.406 kB / 284 MB, free: 4.996 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.008036/0.1642, allocations: 5.314 MB / 289.3 MB, free: 3.078 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.1642, allocations: 12.23 kB / 289.3 MB, free: 3.078 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002418/0.1666, allocations: 1.04 MB / 290.3 MB, free: 3.066 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001792/0.1684, allocations: 1.683 MB / 292 MB, free: 2.531 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.386e-05/0.1685, allocations: 229 kB / 292.2 MB, free: 2.523 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002953/0.1688, allocations: 296.5 kB / 292.5 MB, free: 2.52 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004164/0.173, allocations: 4.579 MB / 297.1 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.54e-05/0.173, allocations: 39.88 kB / 297.1 MB, free: 0.6445 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002306/0.1733, allocations: 149.7 kB / 297.3 MB, free: 0.6445 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001047/0.1743, allocations: 1.417 MB / 298.7 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003449/0.1778, allocations: 2.249 MB / 301 MB, free: 15.23 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02681/0.2046, allocations: 29.23 MB / 330.2 MB, free: 1.973 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003112/0.2077, allocations: 1.008 MB / 331.2 MB, free: 0.9531 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004028/0.2081, allocations: 235.8 kB / 331.4 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004708/0.2128, allocations: 2.645 MB / 334.1 MB, free: 14.09 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.946e-05/0.2128, allocations: 44.66 kB / 334.1 MB, free: 14.04 MB / 314.7 MB Notification: Performance of pre-optimization done (n=93): time 2.936e-06/0.2128, allocations: 0 / 334.1 MB, free: 14.04 MB / 314.7 MB Notification: Performance of matching and sorting (n=94): time 0.006511/0.2193, allocations: 2.315 MB / 336.4 MB, free: 11.73 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.587e-05/0.2194, allocations: 138.3 kB / 336.6 MB, free: 11.57 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003264/0.2227, allocations: 3.17 MB / 339.7 MB, free: 8.969 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.378e-05/0.2227, allocations: 37.7 kB / 339.8 MB, free: 8.926 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001587/0.2243, allocations: 3.044 MB / 342.8 MB, free: 6.039 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003207/0.2246, allocations: 437.2 kB / 343.2 MB, free: 5.633 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00107/0.2257, allocations: 1.074 MB / 344.3 MB, free: 4.672 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.786e-05/0.2258, allocations: 313 kB / 344.6 MB, free: 4.363 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001377/0.2271, allocations: 0.6414 MB / 345.3 MB, free: 3.719 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002977/0.2301, allocations: 4.333 MB / 349.6 MB, free: 13.67 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004279/0.2344, allocations: 5.953 MB / 355.6 MB, free: 6.199 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.781e-05/0.2345, allocations: 44 kB / 355.6 MB, free: 6.156 MB / 330.7 MB Notification: Performance of matching and sorting (n=729) (initialization): time 0.004552/0.239, allocations: 3.855 MB / 359.5 MB, free: 2.289 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.595e-05/0.2391, allocations: 64 kB / 359.5 MB, free: 2.227 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001174/0.2392, allocations: 144 kB / 359.7 MB, free: 2.086 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002908/0.2395, allocations: 228.4 kB / 359.9 MB, free: 1.859 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002204/0.2417, allocations: 1.415 MB / 361.3 MB, free: 452 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009387/0.2426, allocations: 1.515 MB / 362.8 MB, free: 14.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002045/0.2447, allocations: 263.7 kB / 363.1 MB, free: 14.58 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002482/0.2449, allocations: 316.1 kB / 363.4 MB, free: 14.27 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 627 * 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 (703): * Single equations (assignments): 699 * 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.001265/0.2462, allocations: 0.6121 MB / 364 MB, free: 13.64 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002525/0.2464, allocations: 175.8 kB / 364.2 MB, free: 13.47 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005963/0.247, allocations: 488.5 kB / 364.6 MB, free: 12.99 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.177e-05/0.2471, allocations: 15.88 kB / 364.6 MB, free: 12.97 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.2471, allocations: 4 kB / 364.7 MB, free: 12.97 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.2471, allocations: 3.984 kB / 364.7 MB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003275/0.2503, allocations: 2.776 MB / 367.4 MB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.347e-05/0.2504, allocations: 8 kB / 367.4 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003735/0.2507, allocations: 147.8 kB / 367.6 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002711/0.251, allocations: 278 kB / 367.9 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001412/0.2511, allocations: 51.62 kB / 367.9 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.018e-05/0.2512, allocations: 12 kB / 367.9 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008704/0.2521, allocations: 1.438 MB / 369.4 MB, free: 8.629 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.2521, allocations: 7.938 kB / 369.4 MB, free: 8.621 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009322/0.253, allocations: 1.206 MB / 370.6 MB, free: 7.391 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001578/0.2531, allocations: 16 kB / 370.6 MB, free: 7.375 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000414/0.2536, allocations: 22.03 kB / 370.6 MB, free: 7.355 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.798e-05/0.2537, allocations: 55.77 kB / 370.7 MB, free: 7.301 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.892e-05/0.2537, allocations: 39.97 kB / 370.7 MB, free: 7.262 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009477/0.2546, allocations: 1.135 MB / 371.8 MB, free: 6.277 MB / 346.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2546, allocations: 0 / 371.8 MB, free: 6.277 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00263/0.2573, allocations: 0.8372 MB / 372.7 MB, free: 5.441 MB / 346.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.0002765/0.2575, allocations: 146.6 kB / 372.8 MB, free: 5.293 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002212/0.2598, allocations: 2.273 MB / 375.1 MB, free: 3.109 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001688/0.2599, allocations: 104.1 kB / 375.2 MB, free: 3 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003702/0.2603, allocations: 375.5 kB / 375.6 MB, free: 2.629 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002378/0.2627, allocations: 2.816 MB / 378.4 MB, free: 15.43 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01014/0.2728, allocations: 6.529 MB / 384.9 MB, free: 8.828 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009352/0.2738, allocations: 1.116 MB / 386 MB, free: 7.688 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001067/0.2748, allocations: 452.3 kB / 386.5 MB, free: 7.246 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005257/0.2753, allocations: 473.2 kB / 386.9 MB, free: 6.785 MB / 362.7 MB Notification: Performance of SimCode: time 1.743e-06/0.2753, allocations: 0 / 386.9 MB, free: 6.785 MB / 362.7 MB Notification: Performance of Templates: time 0.03702/0.3124, allocations: 20.87 MB / 407.8 MB, free: 2.047 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.996967381797731]