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.001497/0.001497, allocations: 108.6 kB / 21.22 MB, free: 0.7305 MB / 14.72 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.001287/0.001287, allocations: 191.5 kB / 24.51 MB, free: 4.086 MB / 14.72 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 1.31/1.31, allocations: 225.6 MB / 253.3 MB, free: 13.01 MB / 206.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 39.94 kB / 371.2 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2397/0.2411, allocations: 52.19 MB / 423.4 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.01229/0.2534, allocations: 11.2 MB / 434.6 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007142/0.2606, allocations: 3.863 MB / 438.5 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001082/0.2616, allocations: 71.69 kB / 438.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004508/0.2661, allocations: 2.733 MB / 441.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003714/0.2699, allocations: 1.86 MB / 443.1 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001096/0.271, allocations: 0.5694 MB / 443.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004303/0.2753, allocations: 3.594 MB / 447.3 MB, free: 6.598 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003214/0.2785, allocations: 2.756 MB / 450.1 MB, free: 3.773 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002133/0.2806, allocations: 1.491 MB / 451.6 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002876/0.2835, allocations: 2.173 MB / 453.7 MB, free: 100 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005746/0.2841, allocations: 320 kB / 454 MB, free: 15.78 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001832/0.2859, allocations: 1.096 MB / 455.1 MB, free: 14.69 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001685/0.2876, allocations: 1.878 MB / 457 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002045/0.2896, allocations: 2.136 MB / 459.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007806/0.2974, allocations: 6.849 MB / 466 MB, free: 3.781 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.2974, allocations: 0 / 466 MB, free: 3.781 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2974, allocations: 0 / 466 MB, free: 3.781 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000114/0.2975, allocations: 0 / 466 MB, free: 3.781 MB / 366.1 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.01657/0.3141, allocations: 5.164 MB / 471.2 MB, free: 14.56 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.3142, allocations: 12.03 kB / 471.2 MB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001246/0.3143, allocations: 98.09 kB / 471.3 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009412/0.3152, allocations: 0.6866 MB / 472 MB, free: 13.76 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006481/0.3217, allocations: 1.897 MB / 473.8 MB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005073/0.3268, allocations: 2.524 MB / 476.4 MB, free: 9.285 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001837/0.327, allocations: 225.8 kB / 476.6 MB, free: 9.062 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006431/0.3276, allocations: 307.7 kB / 476.9 MB, free: 8.762 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0176/0.3452, allocations: 10.2 MB / 487.1 MB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001257/0.3453, allocations: 47.62 kB / 487.1 MB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004013/0.3457, allocations: 147.9 kB / 487.3 MB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003235/0.349, allocations: 1.864 MB / 489.2 MB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01869/0.3677, allocations: 9.119 MB / 498.3 MB, free: 2.691 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04843/0.4161, allocations: 38.07 MB / 0.5238 GB, free: 11.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01265/0.4287, allocations: 3.039 MB / 0.5267 GB, free: 8.426 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002206/0.4309, allocations: 1.59 MB / 0.5283 GB, free: 6.824 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004787/0.4314, allocations: 136.4 kB / 0.5284 GB, free: 6.691 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.348e-05/0.4315, allocations: 43.22 kB / 0.5285 GB, free: 6.637 MB / 446.1 MB Notification: Performance of pre-optimization done (n=127): time 3.446e-06/0.4315, allocations: 4 kB / 0.5285 GB, free: 6.633 MB / 446.1 MB Notification: Performance of matching and sorting (n=133): time 0.2088/0.6403, allocations: 12.79 MB / 0.541 GB, free: 106.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.077e-05/0.6403, allocations: 142.8 kB / 0.5411 GB, free: 106.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004627/0.6449, allocations: 4.079 MB / 0.5451 GB, free: 104.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002163/0.6451, allocations: 45.55 kB / 0.5451 GB, free: 104.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001199/0.6463, allocations: 3.173 MB / 0.5482 GB, free: 102.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000365/0.6467, allocations: 0.5676 MB / 0.5488 GB, free: 102.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001075/0.6478, allocations: 1.188 MB / 0.5499 GB, free: 101.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.024e-05/0.6478, allocations: 305.1 kB / 0.5502 GB, free: 101.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002098/0.6499, allocations: 1.956 MB / 0.5521 GB, free: 100.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003152/0.6531, allocations: 5.669 MB / 0.5577 GB, free: 95.22 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005774/0.6588, allocations: 8.26 MB / 0.5657 GB, free: 85.65 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.571e-05/0.6589, allocations: 43.94 kB / 0.5658 GB, free: 85.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=737) (initialization): time 0.01017/0.6691, allocations: 8.085 MB / 0.5737 GB, free: 77.52 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.97e-05/0.6692, allocations: 64.97 kB / 0.5737 GB, free: 77.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.64e-05/0.6692, allocations: 132 kB / 0.5739 GB, free: 77.33 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001981/0.6712, allocations: 0.9095 MB / 0.5747 GB, free: 76.42 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00309/0.6743, allocations: 1.318 MB / 0.576 GB, free: 75.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004911/0.6792, allocations: 5.085 MB / 0.581 GB, free: 69.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003852/0.6831, allocations: 311.7 kB / 0.5813 GB, free: 69.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005752/0.6836, allocations: 368 kB / 0.5816 GB, free: 69.24 MB / 446.1 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.002709/0.6864, allocations: 2.008 MB / 0.5836 GB, free: 67.22 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007632/0.6871, allocations: 357.5 kB / 0.5839 GB, free: 66.87 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004309/0.6914, allocations: 2.759 MB / 0.5866 GB, free: 64.09 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-05/0.6915, allocations: 16.88 kB / 0.5867 GB, free: 64.07 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/0.6915, allocations: 4 kB / 0.5867 GB, free: 64.07 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.6915, allocations: 3.984 kB / 0.5867 GB, free: 64.06 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009658/0.7011, allocations: 7.083 MB / 0.5936 GB, free: 56.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.137e-06/0.7011, allocations: 7.625 kB / 0.5936 GB, free: 56.94 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009027/0.702, allocations: 215.6 kB / 0.5938 GB, free: 56.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001798/0.7038, allocations: 0.7116 MB / 0.5945 GB, free: 56.02 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.707e-05/0.7039, allocations: 39.97 kB / 0.5945 GB, free: 55.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004372/0.7083, allocations: 4.638 MB / 0.5991 GB, free: 51.23 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.7083, allocations: 1.797 kB / 0.5991 GB, free: 51.23 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005768/0.7141, allocations: 5.101 MB / 0.604 GB, free: 46.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007058/0.7148, allocations: 333.5 kB / 0.6044 GB, free: 45.77 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003232/0.7151, allocations: 24 kB / 0.6044 GB, free: 45.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001085/0.7162, allocations: 75.91 kB / 0.6045 GB, free: 45.68 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002117/0.7164, allocations: 84.48 kB / 0.6045 GB, free: 45.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.805e-05/0.7165, allocations: 51.91 kB / 0.6046 GB, free: 45.54 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002732/0.7192, allocations: 2.542 MB / 0.6071 GB, free: 42.99 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.7192, allocations: 0 / 0.6071 GB, free: 42.99 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003999/0.7232, allocations: 0.9133 MB / 0.608 GB, free: 42.08 MB / 446.1 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.006001/0.7292, allocations: 5.736 MB / 0.6136 GB, free: 36.29 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005484/0.7347, allocations: 4.518 MB / 0.618 GB, free: 31.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.7347, allocations: 0 / 0.618 GB, free: 31.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001371/0.7361, allocations: 1.283 MB / 0.6192 GB, free: 30.51 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002349/0.7384, allocations: 435.2 kB / 0.6196 GB, free: 30.09 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05063/0.7891, allocations: 43.85 MB / 0.6625 GB, free: 12.55 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003325/0.7924, allocations: 3.104 MB / 0.6655 GB, free: 9.418 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003853/0.7963, allocations: 1.849 MB / 0.6673 GB, free: 7.559 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00226/0.7985, allocations: 1.788 MB / 0.669 GB, free: 5.77 MB / 478.1 MB Notification: Performance of SimCode: time 1.252e-06/0.7985, allocations: 0 / 0.669 GB, free: 5.77 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2995/1.098, allocations: 69.61 MB / 0.737 GB, free: 183.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.44/23.54, allocations: 8.781 kB / 0.737 GB, free: 183.5 MB / 0.5294 GB " [Timeout remaining time 636] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/ActuatedDrive/ActuatedDrive.csv","/var/lib/jenkins1/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: 26.986695525993127]