Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) 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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",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: 114.4 kB / 17.72 MB, free: 5.434 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.001617/0.001617, allocations: 183.1 kB / 18.65 MB, free: 4.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.338/1.338, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 52.39 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08182/0.08319, allocations: 46.62 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.1751/0.2584, allocations: 11.76 MB / 386.4 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007423/0.2658, allocations: 3.912 MB / 390.3 MB, free: 4.359 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002013/0.268, allocations: 67.5 kB / 390.4 MB, free: 4.348 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005205/0.2732, allocations: 2.711 MB / 393.1 MB, free: 3.086 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005146/0.2784, allocations: 1.925 MB / 395 MB, free: 2.195 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001585/0.28, allocations: 0.5764 MB / 395.6 MB, free: 1.953 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005376/0.2854, allocations: 3.752 MB / 399.3 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005052/0.2904, allocations: 3.693 MB / 403 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003036/0.2935, allocations: 1.526 MB / 404.5 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003465/0.297, allocations: 2.13 MB / 406.7 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001263/0.2983, allocations: 341.3 kB / 407 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002926/0.3012, allocations: 1.062 MB / 408.1 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002562/0.3038, allocations: 1.933 MB / 410 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004366/0.3082, allocations: 2.249 MB / 412.3 MB, free: 9.453 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01034/0.3185, allocations: 7.224 MB / 419.5 MB, free: 2.785 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.3186, allocations: 8 kB / 419.5 MB, free: 2.777 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3186, allocations: 4 kB / 419.5 MB, free: 2.773 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002456/0.3188, allocations: 0 / 419.5 MB, free: 2.773 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.01869/0.3375, allocations: 5.454 MB / 424.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.3376, allocations: 12.03 kB / 425 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001718/0.3393, allocations: 0.7278 MB / 425.7 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007517/0.3469, allocations: 1.917 MB / 427.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006245/0.3531, allocations: 2.827 MB / 430.4 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002203/0.3534, allocations: 238 kB / 430.7 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001216/0.3546, allocations: 315.8 kB / 431 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02158/0.3762, allocations: 10.72 MB / 441.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001841/0.3764, allocations: 39.64 kB / 441.7 MB, free: 11.69 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001062/0.3775, allocations: 155.8 kB / 441.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00364/0.3812, allocations: 1.978 MB / 443.9 MB, free: 9.559 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01935/0.4005, allocations: 9.566 MB / 453.4 MB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05266/0.4532, allocations: 39.85 MB / 493.3 MB, free: 6.988 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01406/0.4674, allocations: 3.844 MB / 497.1 MB, free: 2.996 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002738/0.4701, allocations: 1.842 MB / 499 MB, free: 1.145 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007186/0.4709, allocations: 364 kB / 499.3 MB, free: 0.7344 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.854e-05/0.471, allocations: 51.55 kB / 499.4 MB, free: 0.6719 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 4.638e-06/0.471, allocations: 7.938 kB / 499.4 MB, free: 0.6641 MB / 414.1 MB Notification: Performance of matching and sorting (n=154): time 0.04781/0.5188, allocations: 14.03 MB / 0.5014 GB, free: 2.547 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.872e-05/0.5189, allocations: 141.5 kB / 0.5015 GB, free: 2.379 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006607/0.5255, allocations: 4.196 MB / 0.5056 GB, free: 14.16 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003163/0.5259, allocations: 45.7 kB / 0.5057 GB, free: 14.11 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002323/0.5282, allocations: 3.287 MB / 0.5089 GB, free: 10.79 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008344/0.5291, allocations: 0.6475 MB / 0.5095 GB, free: 10.14 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002181/0.5313, allocations: 1.226 MB / 0.5107 GB, free: 8.898 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.981e-05/0.5314, allocations: 305.1 kB / 0.511 GB, free: 8.598 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003244/0.5346, allocations: 2.12 MB / 0.5131 GB, free: 6.473 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005549/0.5402, allocations: 5.96 MB / 0.5189 GB, free: 14.59 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009567/0.5498, allocations: 8.752 MB / 0.5274 GB, free: 3.926 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001332/0.5499, allocations: 36 kB / 0.5275 GB, free: 3.891 MB / 462.1 MB Notification: Performance of matching and sorting (n=775) (initialization): time 0.01651/0.5665, allocations: 8.583 MB / 0.5358 GB, free: 11.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001661/0.5667, allocations: 64 kB / 0.5359 GB, free: 11.24 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002299/0.5669, allocations: 136 kB / 0.536 GB, free: 11.11 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002663/0.5696, allocations: 0.9146 MB / 0.5369 GB, free: 10.19 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004852/0.5745, allocations: 1.388 MB / 0.5383 GB, free: 8.797 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007167/0.5817, allocations: 5.212 MB / 0.5434 GB, free: 3.441 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004745/0.5864, allocations: 327.7 kB / 0.5437 GB, free: 3.121 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001084/0.5876, allocations: 388 kB / 0.544 GB, free: 2.742 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 620 * Number of states: 0 () * Number of discrete variables: 36 (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 (736): * Single equations (assignments): 732 * 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.004235/0.5918, allocations: 2.103 MB / 0.5461 GB, free: 0.625 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000955/0.5928, allocations: 373.5 kB / 0.5465 GB, free: 264 kB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1725/0.7653, allocations: 3.139 MB / 0.5495 GB, free: 145.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.715e-05/0.7654, allocations: 18.03 kB / 0.5495 GB, free: 145.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.72e-05/0.7654, allocations: 4.562 kB / 0.5495 GB, free: 145.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.069e-05/0.7655, allocations: 8.203 kB / 0.5496 GB, free: 145.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0169/0.7824, allocations: 7.806 MB / 0.5572 GB, free: 143 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.632e-05/0.7824, allocations: 1.938 kB / 0.5572 GB, free: 143 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001448/0.7839, allocations: 255.7 kB / 0.5574 GB, free: 143 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002411/0.7863, allocations: 0.7215 MB / 0.5581 GB, free: 142.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002521/0.7866, allocations: 36.78 kB / 0.5582 GB, free: 142.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005796/0.7924, allocations: 4.754 MB / 0.5628 GB, free: 140.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/0.7924, allocations: 6.562 kB / 0.5628 GB, free: 140.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008972/0.8014, allocations: 5.699 MB / 0.5684 GB, free: 138.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001941/0.8034, allocations: 0.6402 MB / 0.569 GB, free: 138 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008981/0.8043, allocations: 31.02 kB / 0.569 GB, free: 137.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001854/0.8062, allocations: 82.45 kB / 0.5691 GB, free: 137.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000324/0.8065, allocations: 109.2 kB / 0.5692 GB, free: 137.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001558/0.8067, allocations: 54.45 kB / 0.5693 GB, free: 137.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004579/0.8113, allocations: 2.616 MB / 0.5718 GB, free: 137 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.8113, allocations: 1.344 kB / 0.5718 GB, free: 137 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005358/0.8167, allocations: 0.9552 MB / 0.5728 GB, free: 136.9 MB / 478.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 (123): * Single equations (assignments): 119 * 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.008377/0.825, allocations: 6.349 MB / 0.579 GB, free: 134.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006697/0.8318, allocations: 5.086 MB / 0.5839 GB, free: 132.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.8318, allocations: 0 / 0.5839 GB, free: 132.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00186/0.8337, allocations: 1.534 MB / 0.5854 GB, free: 132.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003213/0.8369, allocations: 452.8 kB / 0.5859 GB, free: 131.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05949/0.8964, allocations: 46.34 MB / 0.6311 GB, free: 79.65 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003874/0.9003, allocations: 3.239 MB / 0.6343 GB, free: 76.39 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003925/0.9043, allocations: 1.935 MB / 0.6362 GB, free: 74.45 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002405/0.9067, allocations: 1.882 MB / 0.638 GB, free: 72.57 MB / 478.1 MB Notification: Performance of SimCode: time 1.162e-06/0.9067, allocations: 0 / 0.638 GB, free: 72.57 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09875/1.005, allocations: 67.54 MB / 0.7039 GB, free: 4.953 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.59/19.6, allocations: 13.75 kB / 0.704 GB, free: 4.941 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/ActuatedDrive/ActuatedDrive.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches