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.001686/0.001686, allocations: 96.73 kB / 17.58 MB, free: 5.418 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.001697/0.001697, allocations: 192.1 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.344/2.344, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.002545/0.002545, allocations: 47.94 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1897/0.1922, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.03174/0.2241, allocations: 13.76 MB / 341.1 MB, free: 6.551 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02017/0.2443, allocations: 4.381 MB / 345.5 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007026/0.2515, allocations: 83.75 kB / 345.6 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01678/0.2685, allocations: 3.742 MB / 349.3 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01339/0.282, allocations: 2.116 MB / 351.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004497/0.2866, allocations: 0.6824 MB / 352.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01362/0.3002, allocations: 4.408 MB / 356.5 MB, free: 7.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01192/0.3123, allocations: 4.843 MB / 361.4 MB, free: 2.184 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005449/0.3178, allocations: 1.908 MB / 363.3 MB, free: 276 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009025/0.3269, allocations: 2.59 MB / 365.9 MB, free: 13.67 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003546/0.3305, allocations: 432 kB / 366.3 MB, free: 13.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005697/0.3362, allocations: 1.151 MB / 367.5 MB, free: 12.1 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006059/0.3424, allocations: 2.314 MB / 369.8 MB, free: 9.777 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01029/0.3527, allocations: 2.765 MB / 372.5 MB, free: 6.996 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3862/0.739, allocations: 8.349 MB / 380.9 MB, free: 24.11 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-05/0.7392, allocations: 0 / 380.9 MB, free: 24.11 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.41e-06/0.7392, allocations: 0 / 380.9 MB, free: 24.11 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0007396/0.74, allocations: 0.6875 kB / 380.9 MB, free: 24.11 MB / 318.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.05532/0.7953, allocations: 6.445 MB / 387.3 MB, free: 21.96 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.804e-05/0.7954, allocations: 9.75 kB / 387.3 MB, free: 21.96 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005761/0.8012, allocations: 0.8746 MB / 388.2 MB, free: 21.87 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01189/0.8131, allocations: 2 MB / 390.2 MB, free: 21.53 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01337/0.8266, allocations: 3.181 MB / 393.4 MB, free: 20.88 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007655/0.8275, allocations: 312 kB / 393.7 MB, free: 20.87 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003532/0.831, allocations: 406.4 kB / 394.1 MB, free: 20.87 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04802/0.8791, allocations: 12.87 MB / 407 MB, free: 16.24 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000623/0.8798, allocations: 47.41 kB / 407 MB, free: 16.24 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003774/0.8836, allocations: 194 kB / 407.2 MB, free: 16.14 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005846/0.8895, allocations: 2.373 MB / 409.6 MB, free: 15.24 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03003/0.9195, allocations: 11.74 MB / 421.3 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1017/1.021, allocations: 48.64 MB / 470 MB, free: 3.523 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02117/1.043, allocations: 5.572 MB / 475.5 MB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006207/1.049, allocations: 3.486 MB / 479 MB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009778/1.05, allocations: 374.1 kB / 479.4 MB, free: 9.914 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.649e-05/1.05, allocations: 64.73 kB / 479.4 MB, free: 9.848 MB / 382.1 MB Notification: Performance of pre-optimization done (n=221): time 7.434e-06/1.05, allocations: 0 / 479.4 MB, free: 9.848 MB / 382.1 MB Notification: Performance of matching and sorting (n=252): time 0.1117/1.162, allocations: 27.98 MB / 0.4955 GB, free: 13.79 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002442/1.162, allocations: 157.9 kB / 0.4957 GB, free: 13.61 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0121/1.174, allocations: 4.617 MB / 0.5002 GB, free: 8.98 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001274/1.176, allocations: 61.7 kB / 0.5003 GB, free: 8.914 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004104/1.18, allocations: 3.589 MB / 0.5038 GB, free: 5.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00273/1.182, allocations: 0.9485 MB / 0.5047 GB, free: 4.398 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008105/1.191, allocations: 1.504 MB / 0.5062 GB, free: 2.887 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/1.191, allocations: 301.1 kB / 0.5064 GB, free: 2.59 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007969/1.199, allocations: 3.441 MB / 0.5098 GB, free: 15.14 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01629/1.215, allocations: 7.517 MB / 0.5171 GB, free: 5.699 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02458/1.24, allocations: 11.81 MB / 0.5287 GB, free: 8.473 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003084/1.24, allocations: 40 kB / 0.5287 GB, free: 8.434 MB / 446.1 MB Notification: Performance of matching and sorting (n=910) (initialization): time 0.386/1.626, allocations: 11.86 MB / 0.5403 GB, free: 155.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004721/1.627, allocations: 67.11 kB / 0.5404 GB, free: 155.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006236/1.628, allocations: 142.2 kB / 0.5405 GB, free: 155.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006618/1.634, allocations: 1.138 MB / 0.5416 GB, free: 155.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01403/1.648, allocations: 1.797 MB / 0.5434 GB, free: 155.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.015/1.663, allocations: 6.348 MB / 0.5496 GB, free: 152.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01286/1.676, allocations: 425.2 kB / 0.55 GB, free: 152.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002745/1.679, allocations: 473.6 kB / 0.5504 GB, free: 152.7 MB / 446.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.01076/1.69, allocations: 2.439 MB / 0.5528 GB, free: 151.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003462/1.693, allocations: 419.2 kB / 0.5532 GB, free: 151.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02157/1.715, allocations: 6.482 MB / 0.5595 GB, free: 149.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001081/1.715, allocations: 25.62 kB / 0.5596 GB, free: 149.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.136e-05/1.715, allocations: 7.219 kB / 0.5596 GB, free: 149.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001217/1.715, allocations: 14.25 kB / 0.5596 GB, free: 149.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06038/1.776, allocations: 13.62 MB / 0.5729 GB, free: 142.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.907e-05/1.776, allocations: 4 kB / 0.5729 GB, free: 142.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005812/1.782, allocations: 0.587 MB / 0.5735 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004807/1.786, allocations: 0.9488 MB / 0.5744 GB, free: 140.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001081/1.788, allocations: 95.56 kB / 0.5745 GB, free: 140.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01234/1.8, allocations: 6.056 MB / 0.5804 GB, free: 134.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.444e-05/1.8, allocations: 4 kB / 0.5804 GB, free: 134.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03175/1.832, allocations: 10.92 MB / 0.5911 GB, free: 123.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004047/1.836, allocations: 0.9338 MB / 0.592 GB, free: 122.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002327/1.838, allocations: 41.78 kB / 0.592 GB, free: 122.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005588/1.844, allocations: 175.8 kB / 0.5922 GB, free: 122.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001438/1.845, allocations: 193.2 kB / 0.5924 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008721/1.846, allocations: 111.9 kB / 0.5925 GB, free: 122.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.009708/1.856, allocations: 2.904 MB / 0.5953 GB, free: 119.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.31e-07/1.856, allocations: 0 / 0.5953 GB, free: 119.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01503/1.871, allocations: 1.264 MB / 0.5965 GB, free: 118.1 MB / 446.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.04403/1.915, allocations: 11.59 MB / 0.6079 GB, free: 106.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.03984/1.955, allocations: 10.63 MB / 0.6182 GB, free: 95.92 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.725e-05/1.955, allocations: 2.406 kB / 0.6182 GB, free: 95.92 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01554/1.971, allocations: 3.165 MB / 0.6213 GB, free: 92.75 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01224/1.983, allocations: 0.5227 MB / 0.6218 GB, free: 92.24 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1974/2.181, allocations: 70.74 MB / 0.6909 GB, free: 12.68 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01266/2.193, allocations: 3.806 MB / 0.6946 GB, free: 8.84 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.01293/2.206, allocations: 2.392 MB / 0.697 GB, free: 6.441 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00787/2.214, allocations: 2.448 MB / 0.6994 GB, free: 3.992 MB / 446.1 MB Notification: Performance of SimCode: time 1.312e-06/2.214, allocations: 4 kB / 0.6994 GB, free: 3.988 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6311/2.845, allocations: 99.14 MB / 0.7962 GB, free: 82.86 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.87/22.71, allocations: 4.375 kB / 0.7962 GB, free: 82.85 MB / 446.1 MB (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