Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.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.MovingActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|position1.w|position2.w|r1.phi|r2.phi|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|position1.w|position2.w|r1.phi|r2.phi|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 112.5 kB / 18.36 MB, free: 4.84 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.001099/0.0011, allocations: 184.5 kB / 19.29 MB, free: 3.918 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.4/1.4, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001266/0.001266, allocations: 52.34 kB / 329.1 MB, free: 3.344 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1032, allocations: 46.62 MB / 375.8 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.2124/0.3156, allocations: 13.75 MB / 389.5 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01041/0.3261, allocations: 4.371 MB / 393.9 MB, free: 2.684 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004161/0.3303, allocations: 84.72 kB / 394 MB, free: 2.668 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007935/0.3383, allocations: 3.742 MB / 397.7 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006566/0.3449, allocations: 2.107 MB / 399.8 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002149/0.3471, allocations: 0.6931 MB / 400.5 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008/0.3551, allocations: 4.411 MB / 404.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008048/0.3632, allocations: 4.838 MB / 409.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004732/0.368, allocations: 1.913 MB / 411.7 MB, free: 9.844 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004746/0.3728, allocations: 2.6 MB / 414.3 MB, free: 8.242 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001776/0.3746, allocations: 432.2 kB / 414.7 MB, free: 8.242 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003769/0.3784, allocations: 1.151 MB / 415.9 MB, free: 7.414 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003446/0.3818, allocations: 2.318 MB / 418.2 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004903/0.3868, allocations: 2.754 MB / 420.9 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01008/0.3969, allocations: 8.596 MB / 429.5 MB, free: 9.695 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.3969, allocations: 0 / 429.5 MB, free: 9.695 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3969, allocations: 0 / 429.5 MB, free: 9.695 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002776/0.3972, allocations: 4 kB / 429.5 MB, free: 9.691 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1851 * Number of variables: 1851 Notification: Performance of Generate backend data structure: time 0.0216/0.4188, allocations: 6.424 MB / 436 MB, free: 3.195 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.4189, allocations: 12.03 kB / 436 MB, free: 3.184 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007441/0.4263, allocations: 1.99 MB / 438 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005664/0.432, allocations: 2.815 MB / 440.8 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002759/0.4324, allocations: 299.8 kB / 441.1 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0015/0.4339, allocations: 403.7 kB / 441.5 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02666/0.4605, allocations: 12.87 MB / 454.3 MB, free: 15.99 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001961/0.4608, allocations: 51.53 kB / 454.4 MB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001199/0.462, allocations: 191.8 kB / 454.6 MB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004584/0.4666, allocations: 2.374 MB / 456.9 MB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02481/0.4914, allocations: 11.73 MB / 468.7 MB, free: 1.629 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06584/0.5573, allocations: 48.41 MB / 0.505 GB, free: 20 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01845/0.5758, allocations: 5.564 MB / 0.5104 GB, free: 10.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004966/0.5808, allocations: 3.49 MB / 0.5138 GB, free: 6.805 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008419/0.5817, allocations: 388.4 kB / 0.5142 GB, free: 6.367 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.975e-05/0.5818, allocations: 51.88 kB / 0.5142 GB, free: 6.309 MB / 446.1 MB Notification: Performance of pre-optimization done (n=221): time 6.633e-06/0.5818, allocations: 0 / 0.5142 GB, free: 6.309 MB / 446.1 MB Notification: Performance of matching and sorting (n=252): time 0.083/0.6648, allocations: 27.94 MB / 0.5415 GB, free: 10.23 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.665, allocations: 162.5 kB / 0.5417 GB, free: 10.04 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008362/0.6734, allocations: 4.607 MB / 0.5462 GB, free: 5.418 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000767/0.6742, allocations: 65.7 kB / 0.5462 GB, free: 5.348 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002913/0.6771, allocations: 3.582 MB / 0.5497 GB, free: 1.715 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001656/0.6788, allocations: 0.9446 MB / 0.5506 GB, free: 0.7578 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2169/0.8957, allocations: 1.504 MB / 0.5521 GB, free: 147.8 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.42e-05/0.8958, allocations: 302.4 kB / 0.5524 GB, free: 147.5 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006771/0.9026, allocations: 3.457 MB / 0.5558 GB, free: 147.4 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008743/0.9113, allocations: 7.517 MB / 0.5631 GB, free: 140.9 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01497/0.9264, allocations: 11.83 MB / 0.5747 GB, free: 132.2 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003679/0.9268, allocations: 40.44 kB / 0.5747 GB, free: 132.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=914) (initialization): time 0.02453/0.9513, allocations: 11.89 MB / 0.5863 GB, free: 128.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004268/0.9518, allocations: 69.06 kB / 0.5864 GB, free: 128.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003853/0.9522, allocations: 147.8 kB / 0.5865 GB, free: 128.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002999/0.9552, allocations: 1.129 MB / 0.5876 GB, free: 128.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006514/0.9617, allocations: 1.8 MB / 0.5894 GB, free: 127.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007421/0.9692, allocations: 6.345 MB / 0.5956 GB, free: 124.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006114/0.9754, allocations: 427.2 kB / 0.596 GB, free: 124 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001589/0.977, allocations: 477.1 kB / 0.5964 GB, free: 123.5 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 651 * Number of states: 0 () * Number of discrete variables: 42 (fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[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 (875): * Single equations (assignments): 871 * 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.005248/0.9822, allocations: 2.43 MB / 0.5988 GB, free: 121.4 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001292/0.9836, allocations: 424.8 kB / 0.5992 GB, free: 121.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0111/0.9947, allocations: 6.482 MB / 0.6056 GB, free: 115.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.071e-05/0.9948, allocations: 24 kB / 0.6056 GB, free: 115.8 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.692e-05/0.9948, allocations: 6.5 kB / 0.6056 GB, free: 115.8 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.715e-05/0.9948, allocations: 15.95 kB / 0.6056 GB, free: 115.8 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02409/1.019, allocations: 13.48 MB / 0.6188 GB, free: 102.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-05/1.019, allocations: 4.75 kB / 0.6188 GB, free: 102.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003151/1.022, allocations: 0.5775 MB / 0.6193 GB, free: 101.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002451/1.025, allocations: 0.9489 MB / 0.6203 GB, free: 100.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006045/1.025, allocations: 91.89 kB / 0.6204 GB, free: 100.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006389/1.032, allocations: 6.09 MB / 0.6263 GB, free: 94.48 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/1.032, allocations: 7.938 kB / 0.6263 GB, free: 94.47 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01497/1.047, allocations: 10.93 MB / 0.637 GB, free: 83.61 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002493/1.049, allocations: 0.9329 MB / 0.6379 GB, free: 82.65 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001287/1.051, allocations: 44 kB / 0.6379 GB, free: 82.61 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003193/1.054, allocations: 170.2 kB / 0.6381 GB, free: 82.44 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008227/1.055, allocations: 205.4 kB / 0.6383 GB, free: 82.25 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005071/1.055, allocations: 112.6 kB / 0.6384 GB, free: 82.14 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004897/1.06, allocations: 2.895 MB / 0.6412 GB, free: 79.25 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.5e-07/1.06, allocations: 0 / 0.6412 GB, free: 79.25 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007792/1.068, allocations: 1.272 MB / 0.6425 GB, free: 77.98 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,position1.phi,position1.w,position2.phi,position2.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 (225): * Single equations (assignments): 221 * 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 Backend phase and start with SimCode phase: time 0.001012/1.069, allocations: 188.5 kB / 0.6427 GB, free: 77.79 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01207/1.081, allocations: 8.153 MB / 0.6506 GB, free: 69.66 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/1.081, allocations: 0 / 0.6506 GB, free: 69.66 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004674/1.086, allocations: 3.171 MB / 0.6537 GB, free: 66.48 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005167/1.091, allocations: 0.5068 MB / 0.6542 GB, free: 66 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02447/1.115, allocations: 13.01 MB / 0.6669 GB, free: 52.93 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005609/1.121, allocations: 3.802 MB / 0.6706 GB, free: 49.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002427/1.124, allocations: 487.1 kB / 0.6711 GB, free: 48.62 MB / 478.1 MB Notification: Performance of SimCode: time 1.774e-06/1.124, allocations: 0 / 0.6711 GB, free: 48.62 MB / 478.1 MB Notification: Performance of Templates: time 0.3448/1.468, allocations: 98.34 MB / 0.7671 GB, free: 137.6 MB / 494.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/MovingActuatedDrive/MovingActuatedDrive.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches