Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.MovingActuatedDrive,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_3_2_3_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.001302/0.001302, allocations: 110.4 kB / 17.73 MB, free: 5.34 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.001284/0.001284, allocations: 183.1 kB / 18.66 MB, free: 4.414 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.3/1.3, 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.001187/0.001187, allocations: 59.91 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07336/0.07455, allocations: 46.62 MB / 374.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.1717/0.2463, allocations: 13.76 MB / 388.4 MB, free: 5.383 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009156/0.2555, allocations: 4.366 MB / 392.8 MB, free: 2.707 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003115/0.2587, allocations: 85.47 kB / 392.9 MB, free: 2.691 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007061/0.2658, allocations: 3.745 MB / 396.6 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007024/0.2729, allocations: 2.16 MB / 398.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002323/0.2753, allocations: 0.6901 MB / 399.5 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00702/0.2823, allocations: 4.415 MB / 403.9 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006062/0.2884, allocations: 4.828 MB / 408.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003744/0.2922, allocations: 1.918 MB / 410.6 MB, free: 9.883 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004088/0.2963, allocations: 2.606 MB / 413.2 MB, free: 8.277 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001532/0.2979, allocations: 432.3 kB / 413.6 MB, free: 8.277 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003141/0.301, allocations: 1.156 MB / 414.8 MB, free: 7.609 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002891/0.3039, allocations: 2.338 MB / 417.1 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004545/0.3085, allocations: 2.762 MB / 419.9 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01151/0.32, allocations: 8.647 MB / 428.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.3201, allocations: 0 / 428.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3201, allocations: 0 / 428.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003139/0.3204, allocations: 0 / 428.6 MB, free: 9.809 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1851 * Number of variables: 1851 Notification: Performance of Generate backend data structure: time 0.02241/0.3428, allocations: 6.606 MB / 435.2 MB, free: 3.121 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.387e-05/0.3429, allocations: 12.03 kB / 435.2 MB, free: 3.109 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002474/0.3454, allocations: 0.8766 MB / 436 MB, free: 2.219 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008034/0.3534, allocations: 2.033 MB / 438.1 MB, free: 184 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007369/0.3609, allocations: 3.258 MB / 441.3 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003051/0.3612, allocations: 299.8 kB / 441.6 MB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001638/0.3629, allocations: 407.8 kB / 442 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02451/0.3874, allocations: 12.87 MB / 454.9 MB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001374/0.3876, allocations: 43.64 kB / 454.9 MB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005972/0.3882, allocations: 187.8 kB / 455.1 MB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00434/0.3925, allocations: 2.37 MB / 457.5 MB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02382/0.4164, allocations: 11.75 MB / 469.2 MB, free: 192 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06598/0.4824, allocations: 48.52 MB / 0.5056 GB, free: 14.48 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01852/0.501, allocations: 5.56 MB / 0.5111 GB, free: 8.773 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004448/0.5055, allocations: 3.49 MB / 0.5145 GB, free: 5.273 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007317/0.5062, allocations: 380.5 kB / 0.5148 GB, free: 4.844 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.244e-05/0.5063, allocations: 55.88 kB / 0.5149 GB, free: 4.781 MB / 446.1 MB Notification: Performance of pre-optimization done (n=221): time 6.051e-06/0.5063, allocations: 0 / 0.5149 GB, free: 4.781 MB / 446.1 MB Notification: Performance of matching and sorting (n=252): time 0.08172/0.5881, allocations: 28.26 MB / 0.5425 GB, free: 8.41 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.173e-05/0.5882, allocations: 154.5 kB / 0.5426 GB, free: 8.227 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005705/0.5939, allocations: 4.636 MB / 0.5472 GB, free: 3.578 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005248/0.5944, allocations: 61.7 kB / 0.5472 GB, free: 3.512 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1798/0.7742, allocations: 3.726 MB / 0.5508 GB, free: 148.6 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001374/0.7757, allocations: 0.9859 MB / 0.5518 GB, free: 148.6 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002626/0.7783, allocations: 1.511 MB / 0.5533 GB, free: 148.6 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.713e-05/0.7784, allocations: 305.1 kB / 0.5536 GB, free: 148.3 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005624/0.784, allocations: 3.445 MB / 0.5569 GB, free: 147.6 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007824/0.7919, allocations: 7.512 MB / 0.5643 GB, free: 141.1 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01287/0.8048, allocations: 11.8 MB / 0.5758 GB, free: 132.4 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001989/0.805, allocations: 44 kB / 0.5758 GB, free: 132.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=910) (initialization): time 0.01813/0.8231, allocations: 11.88 MB / 0.5875 GB, free: 128.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.578e-05/0.8233, allocations: 74.48 kB / 0.5875 GB, free: 128.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001251/0.8234, allocations: 142.5 kB / 0.5877 GB, free: 128.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00245/0.8258, allocations: 1.126 MB / 0.5888 GB, free: 128.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005629/0.8315, allocations: 1.801 MB / 0.5905 GB, free: 127.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00622/0.8377, allocations: 6.349 MB / 0.5967 GB, free: 123.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005637/0.8434, allocations: 423.7 kB / 0.5971 GB, free: 123.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00109/0.8445, allocations: 464.7 kB / 0.5976 GB, free: 122.8 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 651 * Number of states: 0 () * Number of discrete variables: 42 (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 (871): * Single equations (assignments): 867 * 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.003733/0.8482, allocations: 2.448 MB / 0.6 GB, free: 120.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008497/0.8491, allocations: 441 kB / 0.6004 GB, free: 120.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008417/0.8575, allocations: 6.478 MB / 0.6067 GB, free: 114.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.408e-05/0.8576, allocations: 28 kB / 0.6067 GB, free: 114.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.8576, allocations: 4 kB / 0.6067 GB, free: 114.6 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.137e-05/0.8576, allocations: 11.95 kB / 0.6067 GB, free: 114.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01762/0.8753, allocations: 13.5 MB / 0.6199 GB, free: 101.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.608e-05/0.8753, allocations: 5.125 kB / 0.6199 GB, free: 101.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002787/0.8781, allocations: 0.5809 MB / 0.6205 GB, free: 100.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002215/0.8803, allocations: 0.9519 MB / 0.6214 GB, free: 99.53 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002894/0.8806, allocations: 87.83 kB / 0.6215 GB, free: 99.45 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005817/0.8865, allocations: 6.088 MB / 0.6275 GB, free: 93.23 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.8865, allocations: 11.94 kB / 0.6275 GB, free: 93.22 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01203/0.8985, allocations: 10.96 MB / 0.6382 GB, free: 82.16 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002081/0.9006, allocations: 0.9604 MB / 0.6391 GB, free: 81.19 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006348/0.9013, allocations: 40 kB / 0.6391 GB, free: 81.15 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002212/0.9035, allocations: 167.8 kB / 0.6393 GB, free: 80.98 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004231/0.9039, allocations: 197.6 kB / 0.6395 GB, free: 80.79 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002165/0.9042, allocations: 119.3 kB / 0.6396 GB, free: 80.68 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003327/0.9075, allocations: 2.904 MB / 0.6424 GB, free: 77.78 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.9075, allocations: 0 / 0.6424 GB, free: 77.78 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005514/0.913, allocations: 1.268 MB / 0.6437 GB, free: 76.52 MB / 478.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 (225): * Single equations (assignments): 221 * 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.01246/0.9255, allocations: 11.62 MB / 0.655 GB, free: 64.79 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01/0.9355, allocations: 8.144 MB / 0.663 GB, free: 56.67 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/0.9356, allocations: 0 / 0.663 GB, free: 56.67 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003567/0.9392, allocations: 3.165 MB / 0.6661 GB, free: 53.49 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002806/0.942, allocations: 0.5075 MB / 0.6666 GB, free: 53 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07414/1.016, allocations: 62.44 MB / 0.7276 GB, free: 60 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003813/1.02, allocations: 3.799 MB / 0.7313 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005252/1.025, allocations: 2.392 MB / 0.7336 GB, free: 9.824 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003667/1.029, allocations: 2.446 MB / 0.736 GB, free: 7.379 MB / 0.4981 GB Notification: Performance of SimCode: time 1.252e-06/1.029, allocations: 0 / 0.736 GB, free: 7.379 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2949/1.324, allocations: 94.78 MB / 0.8285 GB, free: 103.7 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.92/21.24, allocations: 3.938 kB / 0.8286 GB, free: 103.7 MB / 0.4981 GB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/MovingActuatedDrive/MovingActuatedDrive.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches