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.001571/0.001571, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001822/0.001822, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 59.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2808/0.2821, allocations: 50.55 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.01314/0.2953, allocations: 12.98 MB / 421.7 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008755/0.3041, allocations: 4.295 MB / 426 MB, free: 212 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002282/0.3064, allocations: 79.75 kB / 426.1 MB, free: 132 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006348/0.3128, allocations: 3.707 MB / 429.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005892/0.3187, allocations: 2.019 MB / 431.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001798/0.3205, allocations: 0.6902 MB / 432.5 MB, free: 9.691 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005639/0.3262, allocations: 4.229 MB / 436.8 MB, free: 5.453 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006614/0.3328, allocations: 4.725 MB / 441.5 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003525/0.3364, allocations: 1.826 MB / 443.3 MB, free: 14.83 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003824/0.3402, allocations: 2.465 MB / 445.8 MB, free: 12.36 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001311/0.3415, allocations: 408 kB / 446.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00318/0.3447, allocations: 1.127 MB / 447.3 MB, free: 10.83 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003164/0.3479, allocations: 2.201 MB / 449.5 MB, free: 8.621 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004753/0.3527, allocations: 2.587 MB / 452.1 MB, free: 6.02 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009633/0.3623, allocations: 8.105 MB / 460.2 MB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.3624, allocations: 0 / 460.2 MB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3624, allocations: 0 / 460.2 MB, free: 13.88 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002004/0.3626, allocations: 0 / 460.2 MB, free: 13.88 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.01909/0.3817, allocations: 6.343 MB / 466.5 MB, free: 7.461 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.3817, allocations: 12.03 kB / 466.5 MB, free: 7.449 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001264/0.383, allocations: 0.8307 MB / 467.4 MB, free: 6.609 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006745/0.3898, allocations: 2.002 MB / 469.4 MB, free: 4.602 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005588/0.3954, allocations: 2.922 MB / 472.3 MB, free: 1.621 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001859/0.3956, allocations: 295.4 kB / 472.6 MB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007181/0.3963, allocations: 379.8 kB / 473 MB, free: 0.9609 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02072/0.417, allocations: 12.19 MB / 485.1 MB, free: 4.023 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001324/0.4172, allocations: 51.58 kB / 485.2 MB, free: 3.973 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000491/0.4177, allocations: 179.8 kB / 485.4 MB, free: 3.797 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003892/0.4216, allocations: 2.19 MB / 487.6 MB, free: 1.602 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02048/0.4421, allocations: 11.14 MB / 498.7 MB, free: 6.445 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05767/0.4998, allocations: 46.47 MB / 0.5324 GB, free: 6.82 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01788/0.5177, allocations: 5.344 MB / 0.5376 GB, free: 1.328 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.234/0.7517, allocations: 3.304 MB / 0.5408 GB, free: 123 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000645/0.7524, allocations: 381.4 kB / 0.5412 GB, free: 122.7 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.238e-05/0.7525, allocations: 59.12 kB / 0.5413 GB, free: 122.6 MB / 462.1 MB Notification: Performance of pre-optimization done (n=200): time 4.759e-06/0.7525, allocations: 0 / 0.5413 GB, free: 122.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=231): time 0.06477/0.8173, allocations: 27.01 MB / 0.5676 GB, free: 107.7 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.191e-05/0.8173, allocations: 158.4 kB / 0.5678 GB, free: 107.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005179/0.8225, allocations: 4.504 MB / 0.5722 GB, free: 103.1 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006026/0.8232, allocations: 60.36 kB / 0.5722 GB, free: 103 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001552/0.8247, allocations: 3.561 MB / 0.5757 GB, free: 99.78 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009057/0.8256, allocations: 0.9203 MB / 0.5766 GB, free: 98.87 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001608/0.8273, allocations: 1.447 MB / 0.578 GB, free: 97.41 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.329e-05/0.8273, allocations: 301.1 kB / 0.5783 GB, free: 97.12 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003478/0.8308, allocations: 3.277 MB / 0.5815 GB, free: 93.84 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0047/0.8355, allocations: 7.203 MB / 0.5886 GB, free: 84.73 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009118/0.8446, allocations: 11.3 MB / 0.5996 GB, free: 71.48 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.319e-05/0.8447, allocations: 36 kB / 0.5996 GB, free: 71.45 MB / 462.1 MB Notification: Performance of matching and sorting (n=869) (initialization): time 0.0149/0.8597, allocations: 11.4 MB / 0.6108 GB, free: 60.03 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.306e-05/0.8598, allocations: 70.91 kB / 0.6108 GB, free: 59.96 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001164/0.8599, allocations: 136 kB / 0.611 GB, free: 59.83 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002443/0.8623, allocations: 1.126 MB / 0.6121 GB, free: 58.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005745/0.8681, allocations: 1.708 MB / 0.6137 GB, free: 56.99 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006604/0.8747, allocations: 6.352 MB / 0.6199 GB, free: 50.51 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005795/0.8806, allocations: 399.7 kB / 0.6203 GB, free: 50.12 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001134/0.8817, allocations: 447.8 kB / 0.6207 GB, free: 49.68 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.004269/0.886, allocations: 2.342 MB / 0.623 GB, free: 47.34 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001146/0.8872, allocations: 421.2 kB / 0.6234 GB, free: 46.92 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008683/0.8959, allocations: 6.109 MB / 0.6294 GB, free: 40.79 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.983e-05/0.8959, allocations: 24 kB / 0.6294 GB, free: 40.77 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.896, allocations: 7.938 kB / 0.6294 GB, free: 40.76 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.421e-05/0.896, allocations: 15.95 kB / 0.6294 GB, free: 40.75 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0175/0.9135, allocations: 12.75 MB / 0.6419 GB, free: 27.91 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.461e-05/0.9136, allocations: 4 kB / 0.6419 GB, free: 27.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002557/0.9161, allocations: 0.5346 MB / 0.6424 GB, free: 27.38 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00225/0.9184, allocations: 0.9527 MB / 0.6433 GB, free: 26.42 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002232/0.9186, allocations: 91.5 kB / 0.6434 GB, free: 26.33 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005952/0.9246, allocations: 6.077 MB / 0.6494 GB, free: 20.12 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.9246, allocations: 11.97 kB / 0.6494 GB, free: 20.11 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01176/0.9364, allocations: 10.36 MB / 0.6595 GB, free: 9.691 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002202/0.9386, allocations: 0.9041 MB / 0.6604 GB, free: 8.766 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006676/0.9393, allocations: 44 kB / 0.6604 GB, free: 8.723 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00215/0.9415, allocations: 156 kB / 0.6606 GB, free: 8.57 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004308/0.9419, allocations: 185.6 kB / 0.6608 GB, free: 8.387 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002299/0.9421, allocations: 107.9 kB / 0.6609 GB, free: 8.281 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003791/0.9459, allocations: 2.818 MB / 0.6636 GB, free: 5.461 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.946, allocations: 8 kB / 0.6636 GB, free: 5.453 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005389/0.9514, allocations: 1.183 MB / 0.6648 GB, free: 4.273 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.01447/0.9658, allocations: 11.03 MB / 0.6755 GB, free: 9.172 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0128/0.9787, allocations: 7.719 MB / 0.6831 GB, free: 1.477 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.106e-05/0.9787, allocations: 0 / 0.6831 GB, free: 1.477 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004471/0.9832, allocations: 2.966 MB / 0.686 GB, free: 14.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004552/0.9878, allocations: 0.498 MB / 0.6865 GB, free: 14.01 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3126/1.3, allocations: 59.58 MB / 0.7447 GB, free: 187.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003001/1.303, allocations: 3.629 MB / 0.7482 GB, free: 186.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004403/1.308, allocations: 2.283 MB / 0.7504 GB, free: 186.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002646/1.311, allocations: 2.319 MB / 0.7527 GB, free: 184.6 MB / 0.5294 GB Notification: Performance of SimCode: time 8.52e-07/1.311, allocations: 3.281 kB / 0.7527 GB, free: 184.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.121/1.432, allocations: 91.49 MB / 0.842 GB, free: 97.75 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.03/21.46, allocations: 7.922 kB / 0.842 GB, free: 97.74 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.0.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