Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.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.ActuatedDrive,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001469/0.001468, allocations: 117.6 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001794/0.001794, allocations: 199.9 kB / 18.73 MB, free: 4.336 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.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 55.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.3061, allocations: 50.55 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.01167/0.3178, allocations: 10.99 MB / 419.7 MB, free: 6.496 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008047/0.3259, allocations: 3.816 MB / 423.6 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002124/0.328, allocations: 63.81 kB / 423.6 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005325/0.3334, allocations: 2.683 MB / 426.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006152/0.3396, allocations: 1.797 MB / 428.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001606/0.3413, allocations: 0.5693 MB / 428.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005594/0.3469, allocations: 3.582 MB / 432.3 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005439/0.3524, allocations: 3.595 MB / 435.8 MB, free: 6.289 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003501/0.3559, allocations: 1.448 MB / 437.3 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003554/0.3595, allocations: 1.994 MB / 439.3 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001352/0.3609, allocations: 316 kB / 439.6 MB, free: 2.527 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002885/0.3638, allocations: 1.034 MB / 440.6 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002589/0.3664, allocations: 1.8 MB / 442.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003927/0.3704, allocations: 2.085 MB / 444.5 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01023/0.3806, allocations: 6.688 MB / 451.2 MB, free: 6.875 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.759e-06/0.3807, allocations: 0 / 451.2 MB, free: 6.875 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3807, allocations: 0 / 451.2 MB, free: 6.875 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002903/0.381, allocations: 0 / 451.2 MB, free: 6.875 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01925/0.4002, allocations: 5.18 MB / 456.4 MB, free: 1.621 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.455e-05/0.4003, allocations: 8.031 kB / 456.4 MB, free: 1.613 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001195/0.4015, allocations: 0.6703 MB / 457.1 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006422/0.408, allocations: 1.897 MB / 459 MB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006361/0.4144, allocations: 2.468 MB / 461.4 MB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002087/0.4146, allocations: 225.7 kB / 461.7 MB, free: 12.28 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000926/0.4155, allocations: 307.8 kB / 462 MB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01832/0.4339, allocations: 10.02 MB / 472 MB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001175/0.434, allocations: 39.64 kB / 472 MB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004224/0.4344, allocations: 147.8 kB / 472.2 MB, free: 1.094 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002878/0.4373, allocations: 1.817 MB / 474 MB, free: 15.28 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01792/0.4553, allocations: 8.959 MB / 482.9 MB, free: 6.309 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04685/0.5022, allocations: 37.81 MB / 0.5085 GB, free: 15.42 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0121/0.5143, allocations: 3.584 MB / 0.512 GB, free: 11.69 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002229/0.5166, allocations: 1.679 MB / 0.5137 GB, free: 10 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005735/0.5172, allocations: 355.8 kB / 0.514 GB, free: 9.602 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.997e-05/0.5172, allocations: 54.98 kB / 0.5141 GB, free: 9.539 MB / 446.1 MB Notification: Performance of pre-optimization done (n=127): time 4.288e-06/0.5172, allocations: 0 / 0.5141 GB, free: 9.539 MB / 446.1 MB Notification: Performance of matching and sorting (n=133): time 0.03904/0.5563, allocations: 12.88 MB / 0.5266 GB, free: 12.55 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.883e-05/0.5564, allocations: 141.2 kB / 0.5268 GB, free: 12.39 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004995/0.5614, allocations: 4.069 MB / 0.5308 GB, free: 8.289 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002697/0.5617, allocations: 41.7 kB / 0.5308 GB, free: 8.242 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00197/0.5637, allocations: 3.131 MB / 0.5339 GB, free: 5.082 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000695/0.5644, allocations: 0.57 MB / 0.5344 GB, free: 4.508 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0015/0.5659, allocations: 1.17 MB / 0.5355 GB, free: 3.324 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.566, allocations: 301.1 kB / 0.5358 GB, free: 3.027 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002879/0.5689, allocations: 1.955 MB / 0.5377 GB, free: 1.066 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2369/0.8058, allocations: 5.643 MB / 0.5433 GB, free: 118.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008688/0.8145, allocations: 8.238 MB / 0.5513 GB, free: 111.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002418/0.8148, allocations: 38.94 kB / 0.5513 GB, free: 111.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=734) (initialization): time 0.01444/0.8293, allocations: 8.07 MB / 0.5592 GB, free: 109.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001002/0.8294, allocations: 62.72 kB / 0.5593 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001336/0.8296, allocations: 131.6 kB / 0.5594 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002138/0.8317, allocations: 0.9117 MB / 0.5603 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003882/0.8356, allocations: 1.314 MB / 0.5616 GB, free: 108.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005387/0.841, allocations: 5.195 MB / 0.5667 GB, free: 103.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004657/0.8457, allocations: 309.6 kB / 0.5669 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008566/0.8466, allocations: 368.8 kB / 0.5673 GB, free: 103.2 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 38 (torque.torqueArrow.twoHeadedArrow,torque.torqueArrow.headAtOrigin,rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[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 (695): * Single equations (assignments): 691 * 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.003021/0.8496, allocations: 1.987 MB / 0.5692 GB, free: 101.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006115/0.8502, allocations: 353.7 kB / 0.5696 GB, free: 101.4 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004353/0.8546, allocations: 2.762 MB / 0.5723 GB, free: 99.06 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-05/0.8546, allocations: 16 kB / 0.5723 GB, free: 99.04 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.8546, allocations: 7.938 kB / 0.5723 GB, free: 99.04 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.651e-05/0.8547, allocations: 3.984 kB / 0.5723 GB, free: 99.03 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01025/0.8649, allocations: 7.054 MB / 0.5792 GB, free: 91.97 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.294e-05/0.865, allocations: 4 kB / 0.5792 GB, free: 91.96 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009711/0.8659, allocations: 215.7 kB / 0.5794 GB, free: 91.75 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001843/0.8678, allocations: 0.7211 MB / 0.5801 GB, free: 91.03 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001325/0.8679, allocations: 39.44 kB / 0.5801 GB, free: 91 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004694/0.8726, allocations: 4.743 MB / 0.5848 GB, free: 86.15 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.8727, allocations: 4.031 kB / 0.5848 GB, free: 86.15 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006139/0.8788, allocations: 5.104 MB / 0.5898 GB, free: 81.12 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009236/0.8798, allocations: 409.6 kB / 0.5902 GB, free: 80.71 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003737/0.8802, allocations: 23.81 kB / 0.5902 GB, free: 80.69 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001123/0.8813, allocations: 67.92 kB / 0.5902 GB, free: 80.62 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002517/0.8816, allocations: 92.52 kB / 0.5903 GB, free: 80.53 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001113/0.8817, allocations: 47.97 kB / 0.5904 GB, free: 80.48 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002866/0.8845, allocations: 2.533 MB / 0.5928 GB, free: 77.94 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.553e-06/0.8846, allocations: 0 / 0.5928 GB, free: 77.94 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004627/0.8892, allocations: 0.8861 MB / 0.5937 GB, free: 77.06 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.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 (101): * Single equations (assignments): 97 * 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 {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00633/0.8955, allocations: 5.753 MB / 0.5993 GB, free: 71.28 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006315/0.9019, allocations: 4.667 MB / 0.6039 GB, free: 66.64 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.9019, allocations: 0 / 0.6039 GB, free: 66.64 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001487/0.9034, allocations: 1.341 MB / 0.6052 GB, free: 65.29 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002322/0.9058, allocations: 440.2 kB / 0.6056 GB, free: 64.86 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05142/0.9572, allocations: 43.54 MB / 0.6481 GB, free: 15.68 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002584/0.9598, allocations: 3.056 MB / 0.6511 GB, free: 12.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003425/0.9633, allocations: 1.842 MB / 0.6529 GB, free: 10.75 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002091/0.9654, allocations: 1.749 MB / 0.6546 GB, free: 9 MB / 462.1 MB Notification: Performance of SimCode: time 1.102e-06/0.9654, allocations: 0 / 0.6546 GB, free: 9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1147/1.08, allocations: 64.16 MB / 0.7173 GB, free: 9.223 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.15/22.23, allocations: 7.375 kB / 0.7173 GB, free: 9.219 MB / 0.5137 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_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_ActuatedDrive.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/ActuatedDrive/ActuatedDrive.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches