Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008639/0.0008639, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007637/0.0007637, allocations: 149.4 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8681/0.8681, allocations: 173.4 MB / 200.4 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.357e-05/1.484e-05, allocations: 2.281 kB / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.008025/0.00804, allocations: 9.79 MB / 328.2 MB, free: 12.51 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006239/0.01428, allocations: 3.648 MB / 331.9 MB, free: 8.852 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001202/0.01548, allocations: 75.62 kB / 331.9 MB, free: 8.777 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002811/0.01829, allocations: 2.772 MB / 334.7 MB, free: 5.996 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003434/0.02173, allocations: 1.916 MB / 336.6 MB, free: 4.074 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001033/0.02276, allocations: 0.6198 MB / 337.2 MB, free: 3.453 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003454/0.02621, allocations: 3.94 MB / 341.2 MB, free: 15.5 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002945/0.02916, allocations: 3.028 MB / 344.2 MB, free: 12.41 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002168/0.03133, allocations: 2.233 MB / 346.4 MB, free: 10.17 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001749/0.03307, allocations: 2.128 MB / 348.6 MB, free: 8.039 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003327/0.03341, allocations: 328 kB / 348.9 MB, free: 7.719 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001158/0.03457, allocations: 1.006 MB / 349.9 MB, free: 6.711 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001033/0.0356, allocations: 1.967 MB / 351.9 MB, free: 4.738 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009136/0.03651, allocations: 1.234 MB / 353.1 MB, free: 3.5 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004748/0.04126, allocations: 6.857 MB / 360 MB, free: 12.62 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.04126, allocations: 0 / 360 MB, free: 12.62 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.04127, allocations: 7.938 kB / 360 MB, free: 12.61 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002756/0.04154, allocations: 0 / 360 MB, free: 12.61 MB / 330.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.01077/0.05231, allocations: 5.32 MB / 365.3 MB, free: 7.238 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.05236, allocations: 12.92 kB / 365.3 MB, free: 7.227 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008071/0.05317, allocations: 0.6866 MB / 366 MB, free: 6.531 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003725/0.05689, allocations: 1.936 MB / 367.9 MB, free: 4.59 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002816/0.05971, allocations: 2.263 MB / 370.2 MB, free: 2.281 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001158/0.05982, allocations: 233.7 kB / 370.4 MB, free: 2.051 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004162/0.06024, allocations: 307.8 kB / 370.7 MB, free: 1.75 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01068/0.07091, allocations: 10.28 MB / 381 MB, free: 6.785 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.172e-05/0.07099, allocations: 47.62 kB / 381 MB, free: 6.738 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002808/0.07127, allocations: 143.9 kB / 381.2 MB, free: 6.598 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001741/0.07301, allocations: 1.868 MB / 383.1 MB, free: 4.73 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01073/0.08374, allocations: 9.182 MB / 392.2 MB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02932/0.1131, allocations: 36.82 MB / 429.1 MB, free: 5.617 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006701/0.1198, allocations: 3.229 MB / 432.3 MB, free: 2.352 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001319/0.1211, allocations: 1.577 MB / 433.9 MB, free: 0.7656 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002619/0.1213, allocations: 120.5 kB / 434 MB, free: 0.6445 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.655e-05/0.1214, allocations: 47.16 kB / 434 MB, free: 0.5898 MB / 394.7 MB Notification: Performance of pre-optimization done (n=127): time 3.186e-06/0.1214, allocations: 0 / 434 MB, free: 0.5898 MB / 394.7 MB Notification: Performance of matching and sorting (n=133): time 0.02315/0.1445, allocations: 13.43 MB / 447.4 MB, free: 3.105 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.383e-05/0.1446, allocations: 141.2 kB / 447.6 MB, free: 2.938 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1623/0.3069, allocations: 4.478 MB / 452.1 MB, free: 118.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003693/0.3073, allocations: 43.73 kB / 452.1 MB, free: 118.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001177/0.3084, allocations: 3.14 MB / 455.2 MB, free: 116.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003852/0.3088, allocations: 0.5559 MB / 455.8 MB, free: 116.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001001/0.3098, allocations: 1.175 MB / 457 MB, free: 115.9 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.99e-05/0.3099, allocations: 308.2 kB / 457.3 MB, free: 115.6 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001709/0.3116, allocations: 1.954 MB / 459.2 MB, free: 115 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002371/0.3139, allocations: 5.658 MB / 464.9 MB, free: 109.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00471/0.3187, allocations: 8.266 MB / 473.2 MB, free: 102.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.673e-05/0.3187, allocations: 39 kB / 473.2 MB, free: 102.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=737) (initialization): time 0.00696/0.3257, allocations: 8.09 MB / 481.3 MB, free: 95.61 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.634e-05/0.3257, allocations: 60 kB / 481.3 MB, free: 95.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-05/0.3258, allocations: 132 kB / 481.5 MB, free: 95.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001194/0.327, allocations: 0.9024 MB / 482.4 MB, free: 94.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001853/0.3288, allocations: 1.326 MB / 483.7 MB, free: 93.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003445/0.3323, allocations: 5.044 MB / 488.7 MB, free: 88.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002736/0.335, allocations: 343.7 kB / 489.1 MB, free: 87.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002617/0.3353, allocations: 372 kB / 489.4 MB, free: 87.46 MB / 410.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 (698): * Single equations (assignments): 694 * 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.001726/0.337, allocations: 2.016 MB / 491.5 MB, free: 85.44 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002629/0.3373, allocations: 365.5 kB / 491.8 MB, free: 85.08 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002536/0.3398, allocations: 2.751 MB / 494.6 MB, free: 82.32 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.361e-05/0.3398, allocations: 16 kB / 494.6 MB, free: 82.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.3398, allocations: 4 kB / 494.6 MB, free: 82.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.3398, allocations: 3.984 kB / 494.6 MB, free: 82.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006066/0.3459, allocations: 6.9 MB / 0.4897 GB, free: 75.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.3459, allocations: 4 kB / 0.4897 GB, free: 75.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004709/0.3464, allocations: 226.4 kB / 0.49 GB, free: 75.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001019/0.3474, allocations: 0.7158 MB / 0.4907 GB, free: 74.42 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.586e-05/0.3475, allocations: 39.98 kB / 0.4907 GB, free: 74.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003072/0.3505, allocations: 4.635 MB / 0.4952 GB, free: 69.63 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.3505, allocations: 0 / 0.4952 GB, free: 69.63 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003775/0.3543, allocations: 5.094 MB / 0.5002 GB, free: 64.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003581/0.3547, allocations: 361.4 kB / 0.5005 GB, free: 64.15 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000197/0.3549, allocations: 26.06 kB / 0.5006 GB, free: 64.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006659/0.3555, allocations: 99.86 kB / 0.5007 GB, free: 64.03 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001567/0.3557, allocations: 104.3 kB / 0.5008 GB, free: 63.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.963e-05/0.3557, allocations: 55.48 kB / 0.5008 GB, free: 63.88 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00189/0.3576, allocations: 2.682 MB / 0.5034 GB, free: 61.18 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.3576, allocations: 4 kB / 0.5034 GB, free: 61.18 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002516/0.3601, allocations: 0.9842 MB / 0.5044 GB, free: 60.19 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 (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 {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004058/0.3642, allocations: 5.741 MB / 0.51 GB, free: 54.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003547/0.3677, allocations: 4.518 MB / 0.5144 GB, free: 49.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3678, allocations: 4 kB / 0.5144 GB, free: 49.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009164/0.3687, allocations: 1.275 MB / 0.5157 GB, free: 48.62 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001308/0.37, allocations: 434.8 kB / 0.5161 GB, free: 48.21 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03198/0.402, allocations: 44.23 MB / 0.5593 GB, free: 14.29 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002273/0.4042, allocations: 2.563 MB / 0.5618 GB, free: 11.7 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00254/0.4068, allocations: 1.853 MB / 0.5636 GB, free: 9.832 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001543/0.4083, allocations: 1.805 MB / 0.5653 GB, free: 8.027 MB / 426.7 MB Notification: Performance of SimCode: time 8.82e-07/0.4083, allocations: 0 / 0.5653 GB, free: 8.027 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2358/0.6441, allocations: 66.63 MB / 0.6304 GB, free: 136.5 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.235/9.879, allocations: 10.88 kB / 0.6304 GB, free: 136.5 MB / 458.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.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: 11.946575704962015]