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.0009292/0.0009292, allocations: 194 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.248/1.248, allocations: 226.5 MB / 244.7 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007932/0.0007931, allocations: 96.28 kB / 296.8 MB, free: 6.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002466/0.0002467, allocations: 4 kB / 356.8 MB, free: 10.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2238/0.2241, allocations: 51.29 MB / 408 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.03183/0.256, allocations: 44.96 MB / 453 MB, free: 14.58 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02139/0.2774, allocations: 9.739 MB / 462.7 MB, free: 4.82 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009967/0.2874, allocations: 207.5 kB / 462.9 MB, free: 4.617 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009188/0.2967, allocations: 2.325 MB / 465.3 MB, free: 2.281 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01883/0.3155, allocations: 6.93 MB / 472.2 MB, free: 11.32 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003088/0.3187, allocations: 0.5382 MB / 472.7 MB, free: 10.79 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.005943/0.3246, allocations: 4.268 MB / 477 MB, free: 6.508 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007438/0.3321, allocations: 4.756 MB / 481.8 MB, free: 1.668 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00262/0.3347, allocations: 1.167 MB / 482.9 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003175/0.3379, allocations: 1.826 MB / 484.8 MB, free: 14.66 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008343/0.3388, allocations: 128 kB / 484.9 MB, free: 14.54 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002336/0.3412, allocations: 0.9126 MB / 485.8 MB, free: 13.62 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002209/0.3434, allocations: 1.582 MB / 487.4 MB, free: 12.04 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003317/0.3467, allocations: 1.792 MB / 489.2 MB, free: 10.23 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006429/0.3532, allocations: 5.226 MB / 494.4 MB, free: 4.992 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.3532, allocations: 0 / 494.4 MB, free: 4.992 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.325e-06/0.3532, allocations: 0 / 494.4 MB, free: 4.992 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002877/0.3535, allocations: 0 / 494.4 MB, free: 4.992 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.01466/0.3682, allocations: 4.236 MB / 498.6 MB, free: 0.6914 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.3682, allocations: 12.02 kB / 498.6 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00657/0.3748, allocations: 1.93 MB / 0.4888 GB, free: 14.74 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004148/0.379, allocations: 2.217 MB / 0.491 GB, free: 12.46 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001679/0.3792, allocations: 221.8 kB / 0.4912 GB, free: 12.25 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008476/0.38, allocations: 299.8 kB / 0.4915 GB, free: 11.95 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01569/0.3957, allocations: 10.21 MB / 0.5015 GB, free: 1.062 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001046/0.3959, allocations: 47.59 kB / 0.5015 GB, free: 1.016 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003793/0.3963, allocations: 135.9 kB / 0.5016 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2023/0.5985, allocations: 1.871 MB / 0.5035 GB, free: 92.8 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02712/0.6257, allocations: 9.103 MB / 0.5124 GB, free: 90.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03589/0.6617, allocations: 38.28 MB / 0.5497 GB, free: 51.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01074/0.6725, allocations: 3.58 MB / 0.5532 GB, free: 48.2 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001979/0.6745, allocations: 1.672 MB / 0.5549 GB, free: 46.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004768/0.675, allocations: 363.7 kB / 0.5552 GB, free: 46.12 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.053e-05/0.675, allocations: 47.06 kB / 0.5553 GB, free: 46.06 MB / 378.7 MB Notification: Performance of pre-optimization done (n=127): time 4.318e-06/0.675, allocations: 0 / 0.5553 GB, free: 46.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=133): time 0.03494/0.71, allocations: 12.73 MB / 0.5677 GB, free: 33.22 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.73e-05/0.7101, allocations: 141.2 kB / 0.5678 GB, free: 33.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004626/0.7147, allocations: 4.045 MB / 0.5718 GB, free: 28.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000314/0.715, allocations: 45.7 kB / 0.5718 GB, free: 28.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001362/0.7164, allocations: 3.042 MB / 0.5748 GB, free: 25.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004932/0.7169, allocations: 0.554 MB / 0.5753 GB, free: 25.34 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002051/0.7171, allocations: 109.6 kB / 0.5754 GB, free: 25.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002234/0.7174, allocations: 0.5534 MB / 0.576 GB, free: 24.67 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002381/0.7197, allocations: 1.947 MB / 0.5779 GB, free: 22.71 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003577/0.7233, allocations: 5.665 MB / 0.5834 GB, free: 15.18 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006862/0.7302, allocations: 8.269 MB / 0.5915 GB, free: 5.055 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.425e-05/0.7303, allocations: 40 kB / 0.5915 GB, free: 5.016 MB / 378.7 MB Notification: Performance of matching and sorting (n=741) (initialization): time 0.01336/0.7437, allocations: 8.067 MB / 0.5994 GB, free: 12.93 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.426e-05/0.7438, allocations: 64.25 kB / 0.5995 GB, free: 12.87 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001317/0.744, allocations: 132 kB / 0.5996 GB, free: 12.74 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002321/0.7463, allocations: 0.909 MB / 0.6005 GB, free: 11.83 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004173/0.7505, allocations: 1.322 MB / 0.6018 GB, free: 10.51 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006185/0.7567, allocations: 4.864 MB / 0.6065 GB, free: 5.512 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004154/0.7609, allocations: 307.7 kB / 0.6068 GB, free: 5.211 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000924/0.7618, allocations: 364.9 kB / 0.6072 GB, free: 4.855 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.003853/0.7657, allocations: 2.019 MB / 0.6091 GB, free: 2.824 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007347/0.7664, allocations: 339.5 kB / 0.6095 GB, free: 2.488 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005508/0.7719, allocations: 2.77 MB / 0.6122 GB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.523e-05/0.772, allocations: 19.94 kB / 0.6122 GB, free: 15.68 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.772, allocations: 0 / 0.6122 GB, free: 15.68 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.711e-05/0.772, allocations: 11.98 kB / 0.6122 GB, free: 15.67 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01345/0.7855, allocations: 7.127 MB / 0.6192 GB, free: 8.488 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.241e-05/0.7855, allocations: 0 / 0.6192 GB, free: 8.488 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001023/0.7866, allocations: 227.7 kB / 0.6194 GB, free: 8.266 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001998/0.7886, allocations: 0.7133 MB / 0.6201 GB, free: 7.551 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001465/0.7888, allocations: 31.97 kB / 0.6201 GB, free: 7.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005672/0.7944, allocations: 4.416 MB / 0.6244 GB, free: 2.973 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.7945, allocations: 3.938 kB / 0.6244 GB, free: 2.969 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007801/0.8023, allocations: 5.098 MB / 0.6294 GB, free: 13.84 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009984/0.8033, allocations: 404.5 kB / 0.6298 GB, free: 13.42 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007074/0.804, allocations: 24 kB / 0.6298 GB, free: 13.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001543/0.8056, allocations: 71.91 kB / 0.6299 GB, free: 13.32 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003078/0.8059, allocations: 88.41 kB / 0.63 GB, free: 13.24 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001373/0.8061, allocations: 51.72 kB / 0.63 GB, free: 13.19 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00487/0.811, allocations: 2.518 MB / 0.6325 GB, free: 10.66 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.811, allocations: 4 kB / 0.6325 GB, free: 10.66 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005538/0.8165, allocations: 0.9075 MB / 0.6334 GB, free: 9.754 MB / 426.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.0005402/0.8171, allocations: 147 kB / 0.6335 GB, free: 9.602 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007806/0.8249, allocations: 4.671 MB / 0.6381 GB, free: 4.949 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.8249, allocations: 0 / 0.6381 GB, free: 4.949 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001974/0.8269, allocations: 1.349 MB / 0.6394 GB, free: 3.59 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00354/0.8305, allocations: 412.9 kB / 0.6398 GB, free: 3.184 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01638/0.8469, allocations: 10.45 MB / 0.65 GB, free: 8.684 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004157/0.8511, allocations: 3.105 MB / 0.653 GB, free: 5.551 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001021/0.8521, allocations: 295.3 kB / 0.6533 GB, free: 5.262 MB / 442.7 MB Notification: Performance of SimCode: time 9.01e-07/0.8522, allocations: 0 / 0.6533 GB, free: 5.262 MB / 442.7 MB Notification: Performance of Templates: time 0.2952/1.147, allocations: 71.03 MB / 0.7226 GB, free: 118.6 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