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.001688/0.001688, allocations: 110.5 kB / 16.92 MB, free: 6.332 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.00188/0.00188, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.482/2.482, allocations: 222.9 MB / 241.6 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002241/0.002241, allocations: 55.83 kB / 300.7 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1871/0.1894, allocations: 49.44 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.02688/0.2163, allocations: 13.1 MB / 363.3 MB, free: 7.152 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01702/0.2334, allocations: 4.287 MB / 367.6 MB, free: 2.852 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005344/0.2389, allocations: 83.75 kB / 367.6 MB, free: 2.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.3696/0.6086, allocations: 3.715 MB / 371.3 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01308/0.6218, allocations: 2.027 MB / 373.4 MB, free: 9.348 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004048/0.6259, allocations: 0.6816 MB / 374.1 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01507/0.641, allocations: 4.222 MB / 378.3 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01363/0.6547, allocations: 4.774 MB / 383.1 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006391/0.6611, allocations: 1.836 MB / 384.9 MB, free: 7.828 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006599/0.6678, allocations: 2.487 MB / 387.4 MB, free: 6.965 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001981/0.6698, allocations: 411.3 kB / 387.8 MB, free: 6.965 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00454/0.6744, allocations: 1.144 MB / 388.9 MB, free: 6.781 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003652/0.678, allocations: 2.22 MB / 391.1 MB, free: 5.688 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005293/0.6834, allocations: 2.641 MB / 393.8 MB, free: 3.707 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01382/0.6972, allocations: 7.981 MB / 401.8 MB, free: 13.58 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.606e-06/0.6973, allocations: 4 kB / 401.8 MB, free: 13.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.6973, allocations: 0 / 401.8 MB, free: 13.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003629/0.6977, allocations: 0 / 401.8 MB, free: 13.57 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: 1765 * Number of variables: 1765 Notification: Performance of Generate backend data structure: time 0.03952/0.7372, allocations: 6.227 MB / 408 MB, free: 7.387 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.089e-05/0.7373, allocations: 11.97 kB / 408 MB, free: 7.375 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003971/0.7413, allocations: 0.8407 MB / 408.8 MB, free: 6.566 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01422/0.7555, allocations: 1.966 MB / 410.8 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01229/0.7679, allocations: 2.962 MB / 413.8 MB, free: 1.617 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006215/0.7685, allocations: 298.6 kB / 414.1 MB, free: 1.363 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002954/0.7715, allocations: 389.8 kB / 414.4 MB, free: 1.023 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04854/0.8201, allocations: 12.36 MB / 426.8 MB, free: 4.031 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004035/0.8206, allocations: 55.52 kB / 426.9 MB, free: 3.977 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003335/0.8239, allocations: 184.3 kB / 427 MB, free: 3.836 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00843/0.8324, allocations: 2.257 MB / 429.3 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.043/0.8755, allocations: 11.29 MB / 440.6 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09126/0.9668, allocations: 46.99 MB / 487.6 MB, free: 6.371 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02188/0.9887, allocations: 5.344 MB / 492.9 MB, free: 0.8789 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005175/0.994, allocations: 3.32 MB / 496.2 MB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009123/0.9949, allocations: 377.9 kB / 496.6 MB, free: 13.14 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.016e-05/0.995, allocations: 51.88 kB / 496.7 MB, free: 13.08 MB / 414.1 MB Notification: Performance of pre-optimization done (n=200): time 7.424e-06/0.995, allocations: 0 / 496.7 MB, free: 13.08 MB / 414.1 MB Notification: Performance of matching and sorting (n=231): time 0.1393/1.134, allocations: 26.82 MB / 0.5112 GB, free: 2.145 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001554/1.135, allocations: 150.5 kB / 0.5114 GB, free: 1.969 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01393/1.149, allocations: 4.52 MB / 0.5158 GB, free: 13.43 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001077/1.15, allocations: 57.7 kB / 0.5158 GB, free: 13.37 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004751/1.154, allocations: 3.465 MB / 0.5192 GB, free: 9.902 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002467/1.157, allocations: 0.882 MB / 0.5201 GB, free: 9.031 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005565/1.163, allocations: 1.442 MB / 0.5215 GB, free: 7.578 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001751/1.163, allocations: 305.1 kB / 0.5218 GB, free: 7.277 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006268/1.169, allocations: 3.277 MB / 0.525 GB, free: 3.996 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3949/1.564, allocations: 7.23 MB / 0.532 GB, free: 140.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02673/1.591, allocations: 11.32 MB / 0.5431 GB, free: 132.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0006557/1.592, allocations: 40.03 kB / 0.5431 GB, free: 132.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=872) (initialization): time 0.03295/1.625, allocations: 11.41 MB / 0.5543 GB, free: 129.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005227/1.625, allocations: 67.12 kB / 0.5543 GB, free: 129.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004988/1.626, allocations: 136.8 kB / 0.5545 GB, free: 129.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003751/1.629, allocations: 1.126 MB / 0.5556 GB, free: 128.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007291/1.637, allocations: 1.723 MB / 0.5572 GB, free: 128.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008587/1.645, allocations: 6.347 MB / 0.5634 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007747/1.653, allocations: 400.5 kB / 0.5638 GB, free: 125.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001892/1.655, allocations: 458.2 kB / 0.5643 GB, free: 125.3 MB / 446.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.006568/1.662, allocations: 2.354 MB / 0.5666 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00187/1.664, allocations: 407 kB / 0.5669 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01444/1.678, allocations: 6.107 MB / 0.5729 GB, free: 121 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.346e-05/1.678, allocations: 28 kB / 0.5729 GB, free: 120.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.118e-05/1.678, allocations: 4 kB / 0.5729 GB, free: 120.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.623e-05/1.678, allocations: 13.94 kB / 0.5729 GB, free: 120.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02457/1.703, allocations: 12.92 MB / 0.5856 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.994e-05/1.703, allocations: 4 kB / 0.5856 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003241/1.706, allocations: 0.5346 MB / 0.5861 GB, free: 107.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00266/1.709, allocations: 0.9487 MB / 0.587 GB, free: 106.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005838/1.709, allocations: 87.89 kB / 0.5871 GB, free: 106.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00672/1.716, allocations: 6.056 MB / 0.593 GB, free: 100.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/1.716, allocations: 7.938 kB / 0.593 GB, free: 100.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01418/1.73, allocations: 10.33 MB / 0.6031 GB, free: 90.29 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002631/1.733, allocations: 0.8785 MB / 0.604 GB, free: 89.38 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001435/1.735, allocations: 39.98 kB / 0.604 GB, free: 89.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00485/1.739, allocations: 167.4 kB / 0.6042 GB, free: 89.18 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001048/1.741, allocations: 177.3 kB / 0.6043 GB, free: 89.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006961/1.741, allocations: 115.1 kB / 0.6045 GB, free: 88.91 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.01025/1.752, allocations: 2.834 MB / 0.6072 GB, free: 86.07 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.81e-07/1.752, allocations: 0 / 0.6072 GB, free: 86.07 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01299/1.765, allocations: 1.207 MB / 0.6084 GB, free: 84.87 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 (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.02057/1.785, allocations: 11.01 MB / 0.6191 GB, free: 73.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01804/1.803, allocations: 9.748 MB / 0.6287 GB, free: 64.09 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.099e-05/1.803, allocations: 0 / 0.6287 GB, free: 64.09 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004166/1.808, allocations: 2.973 MB / 0.6316 GB, free: 61.11 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004767/1.812, allocations: 0.5032 MB / 0.6321 GB, free: 60.63 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1556/1.968, allocations: 67.52 MB / 0.698 GB, free: 476 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3328/2.301, allocations: 3.656 MB / 0.7016 GB, free: 156.4 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.01116/2.312, allocations: 2.299 MB / 0.7038 GB, free: 156.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00672/2.319, allocations: 2.352 MB / 0.7061 GB, free: 155.9 MB / 462.1 MB Notification: Performance of SimCode: time 2.495e-06/2.319, allocations: 0 / 0.7061 GB, free: 155.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2574/2.576, allocations: 96.04 MB / 0.7999 GB, free: 76.23 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.91/22.48, allocations: 1.688 kB / 0.7999 GB, free: 76.23 MB / 462.1 MB (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