Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001554/0.001554, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001968/0.001968, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.631/1.631, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002003/0.002003, allocations: 67.88 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2729, allocations: 50.55 MB / 408.8 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.01606/0.289, allocations: 12.99 MB / 421.7 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01072/0.2998, allocations: 4.283 MB / 426 MB, free: 244 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00267/0.3025, allocations: 83.81 kB / 426.1 MB, free: 160 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008457/0.311, allocations: 3.699 MB / 429.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006261/0.3174, allocations: 1.98 MB / 431.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002382/0.3198, allocations: 0.6902 MB / 432.5 MB, free: 9.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007636/0.3275, allocations: 4.226 MB / 436.7 MB, free: 5.531 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008142/0.3357, allocations: 4.741 MB / 441.4 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004153/0.3399, allocations: 1.822 MB / 443.3 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00459/0.3445, allocations: 2.453 MB / 445.7 MB, free: 12.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001639/0.3462, allocations: 408 kB / 446.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003321/0.3496, allocations: 1.124 MB / 447.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003417/0.353, allocations: 2.178 MB / 449.4 MB, free: 8.727 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005194/0.3583, allocations: 2.594 MB / 452 MB, free: 6.117 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01246/0.3708, allocations: 8.112 MB / 460.1 MB, free: 13.97 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.515e-06/0.3708, allocations: 0 / 460.1 MB, free: 13.97 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3708, allocations: 0 / 460.1 MB, free: 13.97 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003566/0.3712, allocations: 0 / 460.1 MB, free: 13.97 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1736 * Number of variables: 1736 Notification: Performance of Generate backend data structure: time 0.03017/0.4014, allocations: 6.335 MB / 466.5 MB, free: 7.559 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.457e-05/0.4015, allocations: 8.031 kB / 466.5 MB, free: 7.551 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003232/0.4047, allocations: 0.8307 MB / 467.3 MB, free: 6.711 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009514/0.4143, allocations: 2.002 MB / 469.3 MB, free: 4.703 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008713/0.423, allocations: 2.926 MB / 472.2 MB, free: 1.719 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004876/0.4236, allocations: 287.5 kB / 472.5 MB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002283/0.4259, allocations: 387.8 kB / 472.9 MB, free: 1.059 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03553/0.4614, allocations: 12.18 MB / 485.1 MB, free: 4.125 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002506/0.4617, allocations: 51.56 kB / 485.1 MB, free: 4.074 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001516/0.4633, allocations: 183.8 kB / 485.3 MB, free: 3.895 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004584/0.4679, allocations: 2.186 MB / 487.5 MB, free: 1.703 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02507/0.493, allocations: 11.14 MB / 498.6 MB, free: 6.547 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06944/0.5625, allocations: 46.48 MB / 0.5323 GB, free: 6.918 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01835/0.5809, allocations: 5.336 MB / 0.5375 GB, free: 1.434 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2177/0.7986, allocations: 3.304 MB / 0.5408 GB, free: 123.1 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006836/0.7993, allocations: 377.8 kB / 0.5411 GB, free: 122.8 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.168e-05/0.7994, allocations: 52.47 kB / 0.5412 GB, free: 122.8 MB / 462.1 MB Notification: Performance of pre-optimization done (n=200): time 5.23e-06/0.7994, allocations: 6.875 kB / 0.5412 GB, free: 122.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=231): time 0.06666/0.866, allocations: 27.02 MB / 0.5676 GB, free: 107.8 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.825e-05/0.8661, allocations: 154.5 kB / 0.5677 GB, free: 107.6 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006309/0.8725, allocations: 4.504 MB / 0.5721 GB, free: 103.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008157/0.8733, allocations: 57.7 kB / 0.5722 GB, free: 103.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002115/0.8755, allocations: 3.561 MB / 0.5756 GB, free: 99.89 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001253/0.8768, allocations: 0.9162 MB / 0.5765 GB, free: 98.98 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003248/0.88, allocations: 1.451 MB / 0.578 GB, free: 97.52 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.039e-05/0.8801, allocations: 305.1 kB / 0.5782 GB, free: 97.22 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004506/0.8846, allocations: 3.269 MB / 0.5814 GB, free: 93.95 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006544/0.8912, allocations: 7.206 MB / 0.5885 GB, free: 84.84 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01144/0.9027, allocations: 11.3 MB / 0.5995 GB, free: 71.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001526/0.9029, allocations: 40 kB / 0.5996 GB, free: 71.56 MB / 462.1 MB Notification: Performance of matching and sorting (n=869) (initialization): time 0.01965/0.9226, allocations: 11.4 MB / 0.6107 GB, free: 60.15 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001603/0.9228, allocations: 72.19 kB / 0.6108 GB, free: 60.08 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002041/0.923, allocations: 140 kB / 0.6109 GB, free: 59.95 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002734/0.9258, allocations: 1.121 MB / 0.612 GB, free: 58.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005798/0.9316, allocations: 1.715 MB / 0.6137 GB, free: 57.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006972/0.9386, allocations: 6.339 MB / 0.6199 GB, free: 50.63 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005582/0.9442, allocations: 403.7 kB / 0.6202 GB, free: 50.24 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001394/0.9457, allocations: 459.5 kB / 0.6207 GB, free: 49.79 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 631 * Number of states: 0 () * Number of discrete variables: 44 (torque.torqueArrow.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 (830): * Single equations (assignments): 826 * 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.004633/0.9503, allocations: 2.33 MB / 0.6229 GB, free: 47.45 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00117/0.9515, allocations: 421.2 kB / 0.6234 GB, free: 47.04 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01053/0.962, allocations: 6.109 MB / 0.6293 GB, free: 40.91 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.81e-05/0.9621, allocations: 32 kB / 0.6293 GB, free: 40.88 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.64e-05/0.9622, allocations: 7.938 kB / 0.6294 GB, free: 40.87 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.25e-05/0.9622, allocations: 11.95 kB / 0.6294 GB, free: 40.86 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02151/0.9837, allocations: 12.75 MB / 0.6418 GB, free: 28.03 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.396e-05/0.9838, allocations: 384 / 0.6418 GB, free: 28.03 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002798/0.9866, allocations: 0.5343 MB / 0.6423 GB, free: 27.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002349/0.989, allocations: 0.9529 MB / 0.6433 GB, free: 26.54 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005237/0.9895, allocations: 83.84 kB / 0.6433 GB, free: 26.46 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006284/0.9958, allocations: 6.091 MB / 0.6493 GB, free: 20.23 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.304e-06/0.9958, allocations: 11.94 kB / 0.6493 GB, free: 20.22 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01351/1.009, allocations: 10.36 MB / 0.6594 GB, free: 9.805 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002127/1.012, allocations: 0.908 MB / 0.6603 GB, free: 8.875 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001093/1.013, allocations: 40 kB / 0.6603 GB, free: 8.836 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002769/1.015, allocations: 159.8 kB / 0.6605 GB, free: 8.68 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007527/1.016, allocations: 181.6 kB / 0.6607 GB, free: 8.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004432/1.017, allocations: 103.9 kB / 0.6608 GB, free: 8.398 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005094/1.022, allocations: 2.826 MB / 0.6635 GB, free: 5.57 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.02e-07/1.022, allocations: 0 / 0.6635 GB, free: 5.57 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006838/1.029, allocations: 1.184 MB / 0.6647 GB, free: 4.387 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.01884/1.048, allocations: 11.03 MB / 0.6755 GB, free: 9.289 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01433/1.062, allocations: 7.715 MB / 0.683 GB, free: 1.598 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.248e-06/1.062, allocations: 4 kB / 0.683 GB, free: 1.594 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005609/1.068, allocations: 2.965 MB / 0.6859 GB, free: 14.62 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005212/1.073, allocations: 0.5045 MB / 0.6864 GB, free: 14.12 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3487/1.422, allocations: 59.58 MB / 0.7446 GB, free: 187.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005111/1.427, allocations: 3.632 MB / 0.7481 GB, free: 186.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005948/1.433, allocations: 2.287 MB / 0.7504 GB, free: 186.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004267/1.437, allocations: 2.317 MB / 0.7526 GB, free: 184.4 MB / 0.5294 GB Notification: Performance of SimCode: time 9.82e-07/1.437, allocations: 0 / 0.7526 GB, free: 184.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1943/1.631, allocations: 91.49 MB / 0.842 GB, free: 97.63 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.86/21.49, allocations: 6.719 kB / 0.842 GB, free: 97.63 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/MovingActuatedDrive/MovingActuatedDrive.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches