Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.MovingActuatedDrive,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 108 kB / 17.06 MB, free: 5.82 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001218/0.001218, allocations: 195.9 kB / 18 MB, free: 4.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.286/1.286, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009558/0.0009558, allocations: 51.92 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2412/0.2422, allocations: 49.44 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.01301/0.2552, allocations: 13.1 MB / 413.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008452/0.2637, allocations: 4.279 MB / 417.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001792/0.2656, allocations: 83.75 kB / 417.7 MB, free: 7.293 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006654/0.2723, allocations: 3.726 MB / 421.4 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004991/0.2773, allocations: 2.07 MB / 423.5 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001743/0.2791, allocations: 0.6941 MB / 424.2 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005683/0.2848, allocations: 4.228 MB / 428.4 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005972/0.2908, allocations: 4.768 MB / 433.2 MB, free: 7.707 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002989/0.2938, allocations: 1.85 MB / 435 MB, free: 5.852 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003492/0.2973, allocations: 2.477 MB / 437.5 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001213/0.2985, allocations: 412 kB / 437.9 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002657/0.3012, allocations: 1.147 MB / 439.1 MB, free: 1.816 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00253/0.3037, allocations: 2.24 MB / 441.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00386/0.3076, allocations: 2.633 MB / 443.9 MB, free: 12.92 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009259/0.3169, allocations: 8.272 MB / 452.2 MB, free: 4.617 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.291e-06/0.317, allocations: 0 / 452.2 MB, free: 4.617 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.317, allocations: 0 / 452.2 MB, free: 4.617 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002414/0.3172, allocations: 0 / 452.2 MB, free: 4.617 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: 1765 * Number of variables: 1765 Notification: Performance of Generate backend data structure: time 0.02089/0.3381, allocations: 6.375 MB / 458.6 MB, free: 14.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/0.3382, allocations: 15.89 kB / 458.6 MB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00181/0.34, allocations: 0.8354 MB / 459.4 MB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007016/0.347, allocations: 2.002 MB / 461.4 MB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006677/0.3537, allocations: 3.035 MB / 464.5 MB, free: 8.203 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002513/0.354, allocations: 287.5 kB / 464.7 MB, free: 7.922 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001337/0.3554, allocations: 391.8 kB / 465.1 MB, free: 7.539 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02196/0.3774, allocations: 12.36 MB / 477.5 MB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001337/0.3775, allocations: 51.53 kB / 477.5 MB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005162/0.3781, allocations: 183.8 kB / 477.7 MB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004082/0.3821, allocations: 2.253 MB / 480 MB, free: 7.941 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02198/0.4041, allocations: 11.31 MB / 491.3 MB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05719/0.4614, allocations: 46.88 MB / 0.5256 GB, free: 12.56 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01724/0.4787, allocations: 5.34 MB / 0.5308 GB, free: 7.066 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003964/0.4827, allocations: 3.304 MB / 0.534 GB, free: 3.754 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006171/0.4833, allocations: 376.4 kB / 0.5344 GB, free: 3.328 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.881e-05/0.4834, allocations: 55.88 kB / 0.5344 GB, free: 3.266 MB / 462.1 MB Notification: Performance of pre-optimization done (n=200): time 6.402e-06/0.4834, allocations: 112 / 0.5344 GB, free: 3.266 MB / 462.1 MB Notification: Performance of matching and sorting (n=231): time 0.251/0.7344, allocations: 27.08 MB / 0.5609 GB, free: 119.7 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.535e-05/0.7345, allocations: 154.5 kB / 0.561 GB, free: 119.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004824/0.7393, allocations: 4.529 MB / 0.5654 GB, free: 115.1 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004556/0.7398, allocations: 57.7 kB / 0.5655 GB, free: 115 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001426/0.7412, allocations: 3.604 MB / 0.569 GB, free: 111.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000841/0.7421, allocations: 0.9136 MB / 0.5699 GB, free: 110.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001533/0.7436, allocations: 1.459 MB / 0.5713 GB, free: 109.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.161e-05/0.7437, allocations: 305.1 kB / 0.5716 GB, free: 109.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003449/0.7471, allocations: 3.277 MB / 0.5748 GB, free: 105.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004646/0.7518, allocations: 7.232 MB / 0.5819 GB, free: 96.66 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009114/0.7609, allocations: 11.32 MB / 0.5929 GB, free: 83.41 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.011e-05/0.761, allocations: 40 kB / 0.593 GB, free: 83.37 MB / 462.1 MB Notification: Performance of matching and sorting (n=872) (initialization): time 0.01625/0.7773, allocations: 11.43 MB / 0.6041 GB, free: 71.93 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.091e-05/0.7774, allocations: 67.98 kB / 0.6042 GB, free: 71.87 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001096/0.7775, allocations: 140 kB / 0.6043 GB, free: 71.73 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002444/0.78, allocations: 1.123 MB / 0.6054 GB, free: 70.61 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005541/0.7855, allocations: 1.723 MB / 0.6071 GB, free: 68.88 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006322/0.7919, allocations: 6.354 MB / 0.6133 GB, free: 62.39 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005267/0.7972, allocations: 403.5 kB / 0.6137 GB, free: 62 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008618/0.7981, allocations: 459.8 kB / 0.6141 GB, free: 61.55 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * Number of states: 0 () * Number of discrete variables: 44 (torque.torqueArrow.arrowLine.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 (833): * Single equations (assignments): 829 * 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.003119/0.8012, allocations: 2.347 MB / 0.6164 GB, free: 59.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007412/0.8019, allocations: 425.1 kB / 0.6168 GB, free: 58.78 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008025/0.81, allocations: 6.109 MB / 0.6228 GB, free: 52.65 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.712e-05/0.81, allocations: 24 kB / 0.6228 GB, free: 52.62 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/0.8101, allocations: 7.984 kB / 0.6228 GB, free: 52.62 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.543e-05/0.8101, allocations: 7.969 kB / 0.6228 GB, free: 52.61 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01951/0.8296, allocations: 12.8 MB / 0.6353 GB, free: 39.72 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.009e-05/0.8297, allocations: 4 kB / 0.6353 GB, free: 39.72 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002838/0.8325, allocations: 0.5385 MB / 0.6359 GB, free: 39.18 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002314/0.8349, allocations: 0.945 MB / 0.6368 GB, free: 38.23 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003736/0.8352, allocations: 83.89 kB / 0.6369 GB, free: 38.15 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006128/0.8414, allocations: 6.089 MB / 0.6428 GB, free: 31.93 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.8414, allocations: 11.88 kB / 0.6428 GB, free: 31.91 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01206/0.8535, allocations: 10.35 MB / 0.6529 GB, free: 21.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002249/0.8558, allocations: 0.9193 MB / 0.6538 GB, free: 20.57 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007519/0.8566, allocations: 41.5 kB / 0.6539 GB, free: 20.53 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002284/0.8588, allocations: 159.8 kB / 0.654 GB, free: 20.37 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004664/0.8593, allocations: 182.8 kB / 0.6542 GB, free: 20.19 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002189/0.8596, allocations: 107.9 kB / 0.6543 GB, free: 20.09 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003512/0.8631, allocations: 2.83 MB / 0.6571 GB, free: 17.25 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.8631, allocations: 0 / 0.6571 GB, free: 17.25 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005292/0.8684, allocations: 1.211 MB / 0.6582 GB, free: 16.04 MB / 462.1 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.01267/0.8811, allocations: 11.04 MB / 0.669 GB, free: 4.941 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01085/0.892, allocations: 7.734 MB / 0.6766 GB, free: 13.23 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/0.892, allocations: 0.5625 kB / 0.6766 GB, free: 13.23 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004445/0.8965, allocations: 2.974 MB / 0.6795 GB, free: 10.24 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003484/0.9, allocations: 0.5089 MB / 0.68 GB, free: 9.75 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2836/1.184, allocations: 59.82 MB / 0.7384 GB, free: 171 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003273/1.187, allocations: 3.662 MB / 0.742 GB, free: 169.6 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004406/1.191, allocations: 2.288 MB / 0.7442 GB, free: 169.6 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003194/1.195, allocations: 2.348 MB / 0.7465 GB, free: 167.8 MB / 0.5137 GB Notification: Performance of SimCode: time 1.884e-06/1.195, allocations: 0 / 0.7465 GB, free: 167.8 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1249/1.319, allocations: 91.83 MB / 0.8362 GB, free: 76.95 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.65/20.97, allocations: 4.625 kB / 0.8362 GB, free: 76.95 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/MovingActuatedDrive/MovingActuatedDrive.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches