Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.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.0009756/0.0009756, allocations: 80.34 kB / 20.67 MB, free: 3.883 MB / 18.57 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.0008993/0.0008993, allocations: 156.9 kB / 23.95 MB, free: 0.6055 MB / 18.57 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.8784/0.8784, allocations: 177 MB / 204.1 MB, free: 5.738 MB / 186.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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.224e-06/2.224e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.417e-05/2.639e-05, allocations: 3.125 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.01078/0.01081, allocations: 11.37 MB / 335.9 MB, free: 4.473 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006676/0.01749, allocations: 4.112 MB / 340 MB, free: 352 kB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001851/0.01934, allocations: 95.56 kB / 340.1 MB, free: 256 kB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004044/0.02338, allocations: 3.792 MB / 343.9 MB, free: 12.45 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003985/0.02737, allocations: 2.099 MB / 346 MB, free: 10.34 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001227/0.02859, allocations: 0.7523 MB / 346.7 MB, free: 9.582 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004528/0.03312, allocations: 4.64 MB / 351.4 MB, free: 4.934 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00358/0.0367, allocations: 3.877 MB / 355.3 MB, free: 0.9922 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003935/0.04064, allocations: 2.76 MB / 358 MB, free: 14.23 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002704/0.04334, allocations: 2.509 MB / 360.5 MB, free: 11.71 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000562/0.0439, allocations: 419.9 kB / 360.9 MB, free: 11.3 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001373/0.04527, allocations: 1.081 MB / 362 MB, free: 10.22 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001408/0.04668, allocations: 2.341 MB / 364.4 MB, free: 7.871 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001359/0.04804, allocations: 1.515 MB / 365.9 MB, free: 6.352 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007476/0.05552, allocations: 8.119 MB / 374 MB, free: 14.21 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.293e-06/0.05552, allocations: 0 / 374 MB, free: 14.21 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.325e-06/0.05553, allocations: 0 / 374 MB, free: 14.21 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002625/0.05579, allocations: 0 / 374 MB, free: 14.21 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1736 * Number of variables: 1736 Notification: Performance of Generate backend data structure: time 0.01245/0.06823, allocations: 6.42 MB / 380.4 MB, free: 7.727 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.06828, allocations: 15.92 kB / 380.4 MB, free: 7.711 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009196/0.0692, allocations: 0.8269 MB / 381.3 MB, free: 6.875 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003888/0.07309, allocations: 2.049 MB / 383.3 MB, free: 4.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004017/0.07711, allocations: 2.686 MB / 386 MB, free: 2.086 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003297/0.07744, allocations: 295.4 kB / 386.3 MB, free: 1.797 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009261/0.07836, allocations: 399.8 kB / 386.7 MB, free: 1.406 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01681/0.09517, allocations: 12.24 MB / 398.9 MB, free: 4.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001169/0.09529, allocations: 59.56 kB / 399 MB, free: 4.352 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005682/0.09585, allocations: 183.8 kB / 399.1 MB, free: 4.172 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002397/0.09825, allocations: 2.19 MB / 401.3 MB, free: 1.98 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01553/0.1138, allocations: 11.18 MB / 412.5 MB, free: 6.773 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2058/0.3195, allocations: 44.81 MB / 457.3 MB, free: 85.16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00907/0.3286, allocations: 4.945 MB / 462.3 MB, free: 85.06 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002605/0.3312, allocations: 3.065 MB / 465.3 MB, free: 84.52 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003295/0.3316, allocations: 137.2 kB / 465.5 MB, free: 84.49 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.954e-05/0.3316, allocations: 59.48 kB / 465.5 MB, free: 84.44 MB / 410.7 MB Notification: Performance of pre-optimization done (n=200): time 5.36e-06/0.3316, allocations: 0 / 465.5 MB, free: 84.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=231): time 0.04031/0.3719, allocations: 27.75 MB / 493.3 MB, free: 62.72 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.879e-05/0.3719, allocations: 150.5 kB / 493.4 MB, free: 62.54 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00405/0.376, allocations: 4.921 MB / 498.4 MB, free: 57.77 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006078/0.3766, allocations: 62.92 kB / 498.4 MB, free: 57.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001229/0.3778, allocations: 3.53 MB / 0.4902 GB, free: 54.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008978/0.3787, allocations: 0.901 MB / 0.4911 GB, free: 53.52 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001319/0.38, allocations: 1.47 MB / 0.4925 GB, free: 52.04 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.619e-05/0.3801, allocations: 304.6 kB / 0.4928 GB, free: 51.74 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002633/0.3827, allocations: 3.281 MB / 0.496 GB, free: 48.46 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003649/0.3864, allocations: 7.217 MB / 0.503 GB, free: 39.36 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007822/0.3942, allocations: 11.32 MB / 0.5141 GB, free: 26.29 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.683e-05/0.3943, allocations: 36 kB / 0.5141 GB, free: 26.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=869) (initialization): time 0.01258/0.4069, allocations: 11.44 MB / 0.5253 GB, free: 14.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.928e-05/0.4069, allocations: 71.94 kB / 0.5254 GB, free: 14.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.667e-05/0.407, allocations: 139.9 kB / 0.5255 GB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001448/0.4084, allocations: 1.122 MB / 0.5266 GB, free: 13.47 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003402/0.4118, allocations: 1.751 MB / 0.5283 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004337/0.4162, allocations: 6.189 MB / 0.5344 GB, free: 5.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003929/0.4201, allocations: 443.6 kB / 0.5348 GB, free: 4.977 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007234/0.4208, allocations: 468.2 kB / 0.5352 GB, free: 4.52 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 631 * Number of states: 0 () * Number of discrete variables: 44 (torque.torqueArrow.twoHeadedArrow,torque.torqueArrow.headAtOrigin,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 (830): * Single equations (assignments): 826 * 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.00297/0.4238, allocations: 2.334 MB / 0.5375 GB, free: 2.18 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007183/0.4245, allocations: 429.2 kB / 0.5379 GB, free: 1.758 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006366/0.4309, allocations: 6.144 MB / 0.5439 GB, free: 11.59 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.442e-05/0.4309, allocations: 35.45 kB / 0.5439 GB, free: 11.56 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/0.4309, allocations: 7.984 kB / 0.544 GB, free: 11.55 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.138e-05/0.431, allocations: 7.969 kB / 0.544 GB, free: 11.55 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01547/0.4464, allocations: 12.23 MB / 0.5559 GB, free: 15.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.705e-05/0.4464, allocations: 320 / 0.5559 GB, free: 15.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001711/0.4481, allocations: 0.5733 MB / 0.5565 GB, free: 14.69 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001449/0.4496, allocations: 0.9495 MB / 0.5574 GB, free: 13.74 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003114/0.4499, allocations: 99.72 kB / 0.5575 GB, free: 13.64 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005089/0.455, allocations: 5.935 MB / 0.5633 GB, free: 7.598 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.455, allocations: 7.062 kB / 0.5633 GB, free: 7.594 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01065/0.4657, allocations: 10.41 MB / 0.5735 GB, free: 13.12 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002384/0.468, allocations: 0.8679 MB / 0.5743 GB, free: 12.25 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000781/0.4688, allocations: 47.94 kB / 0.5744 GB, free: 12.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001779/0.4706, allocations: 199.7 kB / 0.5745 GB, free: 12.01 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004259/0.471, allocations: 193.6 kB / 0.5747 GB, free: 11.82 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001883/0.4712, allocations: 123.8 kB / 0.5748 GB, free: 11.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003817/0.475, allocations: 2.963 MB / 0.5777 GB, free: 8.738 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.475, allocations: 0 / 0.5777 GB, free: 8.738 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004662/0.4797, allocations: 1.258 MB / 0.579 GB, free: 7.48 MB / 458.7 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 (203): * Single equations (assignments): 199 * 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.01031/0.49, allocations: 11.09 MB / 0.5898 GB, free: 12.33 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008538/0.4985, allocations: 7.501 MB / 0.5971 GB, free: 4.844 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/0.4985, allocations: 4 kB / 0.5971 GB, free: 4.84 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002942/0.5015, allocations: 2.809 MB / 0.5999 GB, free: 2.023 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002599/0.5041, allocations: 0.5082 MB / 0.6004 GB, free: 1.527 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2029/0.707, allocations: 60.08 MB / 0.659 GB, free: 176.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002402/0.7094, allocations: 3.097 MB / 0.6621 GB, free: 173.9 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.003101/0.7125, allocations: 2.291 MB / 0.6643 GB, free: 171.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002274/0.7148, allocations: 2.375 MB / 0.6666 GB, free: 169.3 MB / 0.4948 GB Notification: Performance of SimCode: time 1.453e-06/0.7148, allocations: 0 / 0.6666 GB, free: 169.3 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08331/0.7981, allocations: 94.06 MB / 0.7585 GB, free: 75.91 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.85, allocations: 4 kB / 0.7585 GB, free: 75.9 MB / 0.4948 GB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/MovingActuatedDrive/MovingActuatedDrive.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.12605141568929]