Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001602/0.001602, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.271/1.271, allocations: 226.6 MB / 244.4 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008007/0.0008005, allocations: 102.1 kB / 296.4 MB, free: 6.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001941/0.0001942, allocations: 4 kB / 356.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1844/0.1846, allocations: 51.3 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.03072/0.2154, allocations: 44.95 MB / 452.4 MB, free: 14.75 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01978/0.2352, allocations: 9.747 MB / 462.2 MB, free: 4.977 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00948/0.2447, allocations: 207.5 kB / 462.4 MB, free: 4.773 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007474/0.2523, allocations: 2.325 MB / 464.7 MB, free: 2.438 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01801/0.2703, allocations: 6.895 MB / 471.6 MB, free: 11.52 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002414/0.2727, allocations: 0.5071 MB / 472.1 MB, free: 11.01 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.004989/0.2777, allocations: 4.237 MB / 476.4 MB, free: 6.766 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006021/0.2838, allocations: 4.245 MB / 480.6 MB, free: 2.465 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002243/0.286, allocations: 1.167 MB / 481.8 MB, free: 1.293 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00273/0.2888, allocations: 1.834 MB / 483.6 MB, free: 15.45 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007234/0.2895, allocations: 132 kB / 483.7 MB, free: 15.32 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001931/0.2915, allocations: 0.7684 MB / 484.5 MB, free: 14.55 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001863/0.2934, allocations: 1.578 MB / 486.1 MB, free: 12.97 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001306/0.2947, allocations: 0.796 MB / 486.9 MB, free: 12.17 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005385/0.3001, allocations: 5.223 MB / 492.1 MB, free: 6.934 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.3001, allocations: 0 / 492.1 MB, free: 6.934 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3001, allocations: 0 / 492.1 MB, free: 6.934 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002564/0.3004, allocations: 0 / 492.1 MB, free: 6.934 MB / 362.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.01569/0.3161, allocations: 4.291 MB / 496.4 MB, free: 2.578 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.3161, allocations: 8.031 kB / 496.4 MB, free: 2.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00679/0.3229, allocations: 1.94 MB / 498.3 MB, free: 0.6211 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004155/0.3271, allocations: 2.163 MB / 0.4888 GB, free: 14.4 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001851/0.3273, allocations: 225.8 kB / 0.489 GB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009453/0.3283, allocations: 299.8 kB / 0.4893 GB, free: 13.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01864/0.3469, allocations: 10.21 MB / 0.4992 GB, free: 2.992 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001592/0.3471, allocations: 47.59 kB / 0.4993 GB, free: 2.945 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008525/0.348, allocations: 143.8 kB / 0.4994 GB, free: 2.805 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003131/0.3511, allocations: 1.868 MB / 0.5012 GB, free: 0.9297 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1821/0.5332, allocations: 9.098 MB / 0.5101 GB, free: 89.76 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03171/0.565, allocations: 38.25 MB / 0.5475 GB, free: 53.58 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01118/0.5762, allocations: 3.585 MB / 0.551 GB, free: 49.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002033/0.5783, allocations: 1.683 MB / 0.5526 GB, free: 48.17 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006496/0.579, allocations: 358.3 kB / 0.553 GB, free: 47.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.282e-05/0.5791, allocations: 43.12 kB / 0.553 GB, free: 47.72 MB / 378.7 MB Notification: Performance of pre-optimization done (n=127): time 7.413e-06/0.5791, allocations: 7.984 kB / 0.553 GB, free: 47.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=133): time 0.03626/0.6153, allocations: 12.72 MB / 0.5654 GB, free: 34.88 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.338e-05/0.6154, allocations: 145.2 kB / 0.5656 GB, free: 34.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004146/0.6196, allocations: 4.045 MB / 0.5695 GB, free: 30.63 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001486/0.6197, allocations: 42.41 kB / 0.5696 GB, free: 30.58 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001139/0.6209, allocations: 3.055 MB / 0.5726 GB, free: 27.53 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003427/0.6212, allocations: 0.5475 MB / 0.5731 GB, free: 26.99 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001736/0.6214, allocations: 108 kB / 0.5732 GB, free: 26.88 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.6216, allocations: 0.5457 MB / 0.5737 GB, free: 26.33 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002089/0.6237, allocations: 1.951 MB / 0.5756 GB, free: 24.37 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003158/0.6269, allocations: 5.665 MB / 0.5812 GB, free: 16.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00314/0.63, allocations: 3.242 MB / 0.5843 GB, free: 13.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.869e-05/0.6301, allocations: 36 kB / 0.5844 GB, free: 13.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=741) (initialization): time 0.009873/0.64, allocations: 8.067 MB / 0.5922 GB, free: 5.477 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.119e-05/0.6401, allocations: 64 kB / 0.5923 GB, free: 5.414 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.635e-05/0.6402, allocations: 132 kB / 0.5924 GB, free: 5.285 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001993/0.6422, allocations: 0.9237 MB / 0.5933 GB, free: 4.359 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00314/0.6453, allocations: 1.326 MB / 0.5946 GB, free: 3.031 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005224/0.6505, allocations: 4.864 MB / 0.5994 GB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003239/0.6538, allocations: 303.7 kB / 0.5997 GB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004498/0.6543, allocations: 381.2 kB / 0.6 GB, free: 13.37 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 603 * 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 (702): * Single equations (assignments): 698 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002661/0.6569, allocations: 2.01 MB / 0.602 GB, free: 11.35 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000473/0.6574, allocations: 335.6 kB / 0.6023 GB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004711/0.6621, allocations: 2.774 MB / 0.605 GB, free: 8.223 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.306e-05/0.6622, allocations: 19.94 kB / 0.605 GB, free: 8.203 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/0.6622, allocations: 7.984 kB / 0.605 GB, free: 8.195 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.145e-05/0.6622, allocations: 7.922 kB / 0.6051 GB, free: 8.188 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01066/0.6729, allocations: 7.131 MB / 0.612 GB, free: 0.9961 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.024e-05/0.6729, allocations: 4 kB / 0.612 GB, free: 0.9922 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009421/0.6738, allocations: 211.7 kB / 0.6122 GB, free: 0.7852 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002009/0.6759, allocations: 0.7134 MB / 0.6129 GB, free: 72 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001011/0.676, allocations: 35.91 kB / 0.613 GB, free: 36 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005283/0.6813, allocations: 4.407 MB / 0.6173 GB, free: 11.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.6813, allocations: 15.86 kB / 0.6173 GB, free: 11.48 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007167/0.6885, allocations: 5.094 MB / 0.6222 GB, free: 6.352 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008466/0.6893, allocations: 400.6 kB / 0.6226 GB, free: 5.938 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005451/0.6899, allocations: 20 kB / 0.6227 GB, free: 5.918 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001307/0.6912, allocations: 71.92 kB / 0.6227 GB, free: 5.848 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000204/0.6914, allocations: 96.22 kB / 0.6228 GB, free: 5.758 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001037/0.6915, allocations: 47.97 kB / 0.6229 GB, free: 5.711 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003417/0.6949, allocations: 2.518 MB / 0.6253 GB, free: 3.18 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.695, allocations: 0 / 0.6253 GB, free: 3.18 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003948/0.6989, allocations: 0.9114 MB / 0.6262 GB, free: 2.273 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (101): * Single equations (assignments): 97 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000329/0.6992, allocations: 153.6 kB / 0.6264 GB, free: 2.117 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006327/0.7056, allocations: 4.653 MB / 0.6309 GB, free: 13.48 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.7056, allocations: 0.5625 kB / 0.6309 GB, free: 13.48 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001702/0.7073, allocations: 1.354 MB / 0.6322 GB, free: 12.11 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002069/0.7094, allocations: 415.5 kB / 0.6326 GB, free: 11.71 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01306/0.7225, allocations: 10.44 MB / 0.6428 GB, free: 1.215 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002842/0.7254, allocations: 3.109 MB / 0.6458 GB, free: 14.08 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008778/0.7262, allocations: 291.3 kB / 0.6461 GB, free: 13.79 MB / 442.7 MB Notification: Performance of SimCode: time 7.02e-07/0.7262, allocations: 0 / 0.6461 GB, free: 13.79 MB / 442.7 MB Notification: Performance of Templates: time 0.2482/0.9744, allocations: 71.16 MB / 0.7156 GB, free: 124 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches