Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 114.5 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001409/0.001409, allocations: 190.1 kB / 19.35 MB, free: 3.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.278/1.278, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 51.94 kB / 329.2 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07125/0.07246, allocations: 46.62 MB / 375.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.1569/0.2294, allocations: 11.75 MB / 387.6 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006399/0.2358, allocations: 3.917 MB / 391.5 MB, free: 4.441 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001069/0.237, allocations: 63.06 kB / 391.5 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004343/0.2413, allocations: 2.716 MB / 394.3 MB, free: 3.168 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003838/0.2452, allocations: 1.926 MB / 396.2 MB, free: 2.277 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001169/0.2464, allocations: 0.5755 MB / 396.8 MB, free: 2.035 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004286/0.2507, allocations: 3.754 MB / 400.5 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003639/0.2543, allocations: 3.689 MB / 404.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002064/0.2564, allocations: 1.526 MB / 405.7 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002565/0.259, allocations: 2.131 MB / 407.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000582/0.2596, allocations: 340.4 kB / 408.2 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001947/0.2615, allocations: 1.064 MB / 409.3 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001518/0.263, allocations: 1.933 MB / 411.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001959/0.265, allocations: 2.242 MB / 413.4 MB, free: 9.457 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00681/0.2718, allocations: 7.214 MB / 420.7 MB, free: 2.613 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2719, allocations: 0 / 420.7 MB, free: 2.613 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2719, allocations: 4 kB / 420.7 MB, free: 2.609 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.114e-05/0.272, allocations: 0 / 420.7 MB, free: 2.609 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.0159/0.2879, allocations: 5.431 MB / 426.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.2879, allocations: 15.97 kB / 426.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006641/0.2946, allocations: 1.913 MB / 428 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004195/0.2988, allocations: 2.39 MB / 430.4 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001738/0.299, allocations: 246 kB / 430.6 MB, free: 8.477 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006786/0.2997, allocations: 319.8 kB / 431 MB, free: 8.164 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01703/0.3167, allocations: 10.72 MB / 441.7 MB, free: 12.76 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.847e-05/0.3168, allocations: 43.64 kB / 441.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003974/0.3172, allocations: 147.9 kB / 441.9 MB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00324/0.3205, allocations: 1.982 MB / 443.8 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01723/0.3377, allocations: 9.567 MB / 453.4 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0428/0.3806, allocations: 39.84 MB / 493.2 MB, free: 8.027 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01322/0.3938, allocations: 3.836 MB / 497.1 MB, free: 4.043 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002334/0.3962, allocations: 1.841 MB / 498.9 MB, free: 2.195 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005774/0.3968, allocations: 368 kB / 499.3 MB, free: 1.781 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/0.3968, allocations: 55.55 kB / 499.3 MB, free: 1.715 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 5.5e-06/0.3968, allocations: 3.984 kB / 499.3 MB, free: 1.711 MB / 414.1 MB Notification: Performance of matching and sorting (n=154): time 0.04311/0.4399, allocations: 13.99 MB / 0.5013 GB, free: 3.629 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.694e-05/0.44, allocations: 141.5 kB / 0.5014 GB, free: 3.461 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005966/0.446, allocations: 4.176 MB / 0.5055 GB, free: 15.26 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000183/0.4462, allocations: 57.62 kB / 0.5056 GB, free: 15.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002138/0.4484, allocations: 3.291 MB / 0.5088 GB, free: 11.88 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006369/0.449, allocations: 0.6358 MB / 0.5094 GB, free: 11.23 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001738/0.4507, allocations: 1.238 MB / 0.5106 GB, free: 9.984 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.737e-05/0.4508, allocations: 309.3 kB / 0.5109 GB, free: 9.68 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00318/0.454, allocations: 2.132 MB / 0.513 GB, free: 7.543 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005509/0.4596, allocations: 5.968 MB / 0.5188 GB, free: 15.66 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009318/0.4689, allocations: 8.772 MB / 0.5274 GB, free: 4.969 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.845e-05/0.469, allocations: 40 kB / 0.5274 GB, free: 4.93 MB / 462.1 MB Notification: Performance of matching and sorting (n=779) (initialization): time 0.01495/0.4839, allocations: 8.59 MB / 0.5358 GB, free: 12.33 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000103/0.4841, allocations: 64 kB / 0.5359 GB, free: 12.27 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001782/0.4843, allocations: 136 kB / 0.536 GB, free: 12.14 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002529/0.4868, allocations: 0.9149 MB / 0.5369 GB, free: 11.22 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004446/0.4913, allocations: 1.4 MB / 0.5383 GB, free: 9.816 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006808/0.4981, allocations: 5.197 MB / 0.5433 GB, free: 4.477 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003971/0.5021, allocations: 343.5 kB / 0.5437 GB, free: 4.141 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006565/0.5028, allocations: 388 kB / 0.544 GB, free: 3.762 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 620 * Number of states: 0 () * Number of discrete variables: 36 (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 (740): * Single equations (assignments): 736 * 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.003079/0.5058, allocations: 2.107 MB / 0.5461 GB, free: 1.641 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006227/0.5065, allocations: 365.5 kB / 0.5464 GB, free: 1.281 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1599/0.6664, allocations: 3.131 MB / 0.5495 GB, free: 145.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.769e-05/0.6665, allocations: 8 kB / 0.5495 GB, free: 145.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.6665, allocations: 1.906 kB / 0.5495 GB, free: 145.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001279/0.6678, allocations: 0.641 MB / 0.5501 GB, free: 145.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003815/0.6682, allocations: 28.95 kB / 0.5502 GB, free: 145.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00129/0.6695, allocations: 91.34 kB / 0.5503 GB, free: 145.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003052/0.6698, allocations: 108.8 kB / 0.5504 GB, free: 145.3 MB / 478.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006124/0.6759, allocations: 3.592 MB / 0.5539 GB, free: 144.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005809/0.6817, allocations: 4.989 MB / 0.5587 GB, free: 142.7 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001557/0.6833, allocations: 1.258 MB / 0.56 GB, free: 142.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003652/0.687, allocations: 2.604 MB / 0.5625 GB, free: 141.4 MB / 478.1 MB Notification: Performance of Backend: time 5.01e-07/0.687, allocations: 0 / 0.5625 GB, free: 141.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007493/0.6945, allocations: 4.182 MB / 0.5666 GB, free: 140 MB / 478.1 MB Notification: Performance of SimCode: time 0.01138/0.7059, allocations: 9.22 MB / 0.5756 GB, free: 135.7 MB / 478.1 MB Notification: Performance of Templates: time 0.06497/0.7709, allocations: 44.77 MB / 0.6193 GB, free: 98.85 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/ActuatedDrive/ActuatedDrive.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches