Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.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.ActuatedDrive,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_3_2_3_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 4.0.0+maint.om/package.mo): time 0.001857/0.001857, allocations: 109.4 kB / 17.73 MB, free: 5.336 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.001996/0.001996, allocations: 196.2 kB / 18.67 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.407/1.407, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001642/0.001642, allocations: 51.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09128/0.09293, allocations: 46.62 MB / 374.6 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.176/0.269, allocations: 11.75 MB / 386.4 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007048/0.2761, allocations: 3.912 MB / 390.3 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001945/0.2781, allocations: 67.41 kB / 390.4 MB, free: 4.301 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004668/0.2828, allocations: 2.714 MB / 393.1 MB, free: 3.039 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004673/0.2875, allocations: 1.881 MB / 395 MB, free: 2.176 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00137/0.2889, allocations: 0.5705 MB / 395.5 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005161/0.294, allocations: 3.755 MB / 399.3 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004088/0.2981, allocations: 3.691 MB / 403 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002557/0.3007, allocations: 1.525 MB / 404.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003097/0.3038, allocations: 2.129 MB / 406.6 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007343/0.3046, allocations: 339.7 kB / 407 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002216/0.3068, allocations: 1.056 MB / 408 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001858/0.3087, allocations: 1.919 MB / 409.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002807/0.3115, allocations: 2.25 MB / 412.2 MB, free: 9.434 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009395/0.3209, allocations: 7.226 MB / 419.4 MB, free: 2.797 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.321, allocations: 0 / 419.4 MB, free: 2.797 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.185e-06/0.321, allocations: 4 kB / 419.4 MB, free: 2.793 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002001/0.3212, allocations: 0 / 419.4 MB, free: 2.793 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.01752/0.3387, allocations: 5.454 MB / 424.9 MB, free: 13.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.3388, allocations: 16.03 kB / 424.9 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001138/0.3399, allocations: 0.7239 MB / 425.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006955/0.3469, allocations: 1.921 MB / 427.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0051/0.352, allocations: 2.828 MB / 430.4 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001958/0.3522, allocations: 234 kB / 430.6 MB, free: 7.469 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006978/0.3529, allocations: 319.8 kB / 430.9 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01983/0.3728, allocations: 10.71 MB / 441.6 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001265/0.3729, allocations: 47.62 kB / 441.7 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004832/0.3734, allocations: 147.9 kB / 441.8 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003743/0.3772, allocations: 1.986 MB / 443.8 MB, free: 9.574 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02041/0.3976, allocations: 9.57 MB / 453.4 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05252/0.4502, allocations: 39.85 MB / 493.2 MB, free: 7.004 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01422/0.4644, allocations: 3.836 MB / 497.1 MB, free: 3.02 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002867/0.4674, allocations: 1.846 MB / 498.9 MB, free: 1.164 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006489/0.468, allocations: 360 kB / 499.3 MB, free: 0.7578 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.445e-05/0.4681, allocations: 55.48 kB / 499.3 MB, free: 0.6914 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 4.459e-06/0.4681, allocations: 4 kB / 499.3 MB, free: 0.6875 MB / 414.1 MB Notification: Performance of matching and sorting (n=154): time 0.04524/0.5133, allocations: 14.04 MB / 0.5013 GB, free: 2.559 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.618e-05/0.5135, allocations: 141.5 kB / 0.5015 GB, free: 2.391 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006/0.5195, allocations: 4.192 MB / 0.5055 GB, free: 14.18 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003486/0.5199, allocations: 45.7 kB / 0.5056 GB, free: 14.12 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002912/0.5228, allocations: 3.291 MB / 0.5088 GB, free: 10.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001051/0.5239, allocations: 0.6475 MB / 0.5094 GB, free: 10.15 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0018/0.5257, allocations: 1.226 MB / 0.5106 GB, free: 8.91 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.5258, allocations: 301.1 kB / 0.5109 GB, free: 8.613 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003523/0.5294, allocations: 2.127 MB / 0.513 GB, free: 6.48 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006974/0.5364, allocations: 5.952 MB / 0.5188 GB, free: 14.61 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01159/0.548, allocations: 8.752 MB / 0.5274 GB, free: 3.941 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001296/0.5482, allocations: 40 kB / 0.5274 GB, free: 3.902 MB / 462.1 MB Notification: Performance of matching and sorting (n=775) (initialization): time 0.01719/0.5654, allocations: 8.575 MB / 0.5358 GB, free: 11.32 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001021/0.5655, allocations: 64 kB / 0.5358 GB, free: 11.26 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001585/0.5657, allocations: 136 kB / 0.536 GB, free: 11.12 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002516/0.5682, allocations: 0.915 MB / 0.5369 GB, free: 10.21 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004641/0.5729, allocations: 1.392 MB / 0.5382 GB, free: 8.812 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007409/0.5803, allocations: 5.212 MB / 0.5433 GB, free: 3.457 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004612/0.585, allocations: 331.7 kB / 0.5436 GB, free: 3.133 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009734/0.586, allocations: 388 kB / 0.544 GB, free: 2.754 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 620 * Number of states: 0 () * Number of discrete variables: 36 (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 (736): * Single equations (assignments): 732 * 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.004092/0.5901, allocations: 2.103 MB / 0.546 GB, free: 0.6367 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000797/0.5909, allocations: 369.5 kB / 0.5464 GB, free: 280 kB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1798/0.7707, allocations: 3.137 MB / 0.5495 GB, free: 146.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.025e-05/0.7708, allocations: 19.56 kB / 0.5495 GB, free: 146.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.701e-05/0.7708, allocations: 3.531 kB / 0.5495 GB, free: 146.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.849e-05/0.7708, allocations: 10.94 kB / 0.5495 GB, free: 146.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01421/0.7851, allocations: 7.81 MB / 0.5571 GB, free: 143.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.298e-05/0.7851, allocations: 2.25 kB / 0.5571 GB, free: 143.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001294/0.7864, allocations: 259.2 kB / 0.5574 GB, free: 143.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002179/0.7886, allocations: 0.7148 MB / 0.5581 GB, free: 143.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001601/0.7888, allocations: 42.59 kB / 0.5581 GB, free: 143.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005414/0.7942, allocations: 4.744 MB / 0.5627 GB, free: 141.1 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.732e-06/0.7942, allocations: 10.97 kB / 0.5628 GB, free: 141.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008163/0.8024, allocations: 5.697 MB / 0.5683 GB, free: 139.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001439/0.8039, allocations: 0.6378 MB / 0.5689 GB, free: 138.9 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004865/0.8044, allocations: 27.08 kB / 0.569 GB, free: 138.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001286/0.8057, allocations: 88.47 kB / 0.5691 GB, free: 138.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003062/0.806, allocations: 107.4 kB / 0.5692 GB, free: 138.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001297/0.8061, allocations: 51.16 kB / 0.5692 GB, free: 138.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003588/0.8097, allocations: 2.615 MB / 0.5718 GB, free: 138 MB / 478.1 MB Notification: Performance of sort global known variables: time 4e-07/0.8097, allocations: 0 / 0.5718 GB, free: 138 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004594/0.8143, allocations: 0.9595 MB / 0.5727 GB, free: 137.9 MB / 478.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 (123): * Single equations (assignments): 119 * 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.007954/0.8223, allocations: 6.355 MB / 0.5789 GB, free: 135.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007117/0.8295, allocations: 5.081 MB / 0.5839 GB, free: 133.6 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.8295, allocations: 0 / 0.5839 GB, free: 133.6 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001783/0.8313, allocations: 1.536 MB / 0.5854 GB, free: 133 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002589/0.8339, allocations: 453.9 kB / 0.5858 GB, free: 132.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04824/0.8822, allocations: 46.34 MB / 0.631 GB, free: 80.75 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002625/0.8849, allocations: 3.238 MB / 0.6342 GB, free: 77.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003494/0.8884, allocations: 1.934 MB / 0.6361 GB, free: 75.56 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001873/0.8903, allocations: 1.886 MB / 0.6379 GB, free: 73.67 MB / 478.1 MB Notification: Performance of SimCode: time 9.12e-07/0.8903, allocations: 0 / 0.6379 GB, free: 73.67 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1033/0.9936, allocations: 67.53 MB / 0.7039 GB, free: 6.059 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.27/19.26, allocations: 11.84 kB / 0.7039 GB, free: 6.047 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/ActuatedDrive/ActuatedDrive.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches