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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 83.62 kB / 21.43 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.006573/0.006573, allocations: 162.8 kB / 24.69 MB, free: 9.418 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9093/0.9093, allocations: 158.6 MB / 186.5 MB, free: 3.043 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 298.4 MB, free: 3.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.858e-05/2.033e-05, allocations: 2.281 kB / 298.4 MB, free: 3.523 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.1541/0.1542, allocations: 10.32 MB / 308.8 MB, free: 10.21 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00829/0.1624, allocations: 3.743 MB / 312.5 MB, free: 7.863 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002155/0.1646, allocations: 79.34 kB / 312.6 MB, free: 7.84 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003899/0.1685, allocations: 2.776 MB / 315.3 MB, free: 6.664 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005008/0.1735, allocations: 1.997 MB / 317.3 MB, free: 5.723 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00117/0.1747, allocations: 0.6246 MB / 318 MB, free: 5.453 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004715/0.1794, allocations: 4.126 MB / 322.1 MB, free: 3.473 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003356/0.1828, allocations: 3.111 MB / 325.2 MB, free: 1.348 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002876/0.1856, allocations: 2.327 MB / 327.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002772/0.1884, allocations: 2.246 MB / 329.8 MB, free: 14.63 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000512/0.1889, allocations: 346.4 kB / 330.1 MB, free: 14.63 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00152/0.1904, allocations: 1.025 MB / 331.1 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0013/0.1917, allocations: 2.069 MB / 333.2 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001102/0.1928, allocations: 1.301 MB / 334.5 MB, free: 10.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00538/0.1982, allocations: 7.258 MB / 341.8 MB, free: 3.258 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.1982, allocations: 1.875 kB / 341.8 MB, free: 3.258 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1982, allocations: 0 / 341.8 MB, free: 3.258 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.122e-05/0.1983, allocations: 0 / 341.8 MB, free: 3.258 MB / 298.7 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.0106/0.2089, allocations: 5.543 MB / 347.3 MB, free: 13.65 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.78e-05/0.209, allocations: 19.91 kB / 347.3 MB, free: 13.63 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007383/0.2097, allocations: 0.7278 MB / 348.1 MB, free: 12.89 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003823/0.2136, allocations: 1.975 MB / 350 MB, free: 10.91 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003341/0.2169, allocations: 2.498 MB / 352.5 MB, free: 8.363 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001361/0.217, allocations: 238 kB / 352.8 MB, free: 8.129 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004642/0.2175, allocations: 323.8 kB / 353.1 MB, free: 7.812 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01181/0.2293, allocations: 10.78 MB / 363.9 MB, free: 12.34 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.669e-05/0.2294, allocations: 43.64 kB / 363.9 MB, free: 12.3 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003217/0.2297, allocations: 159.8 kB / 364.1 MB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002059/0.2318, allocations: 1.989 MB / 366.1 MB, free: 10.15 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01274/0.2445, allocations: 9.606 MB / 375.7 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03389/0.2784, allocations: 38.39 MB / 414.1 MB, free: 9.035 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007689/0.2861, allocations: 3.452 MB / 417.5 MB, free: 5.547 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001675/0.2877, allocations: 1.725 MB / 419.2 MB, free: 3.812 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002964/0.288, allocations: 116.9 kB / 419.3 MB, free: 3.695 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.054e-05/0.2881, allocations: 51.5 kB / 419.4 MB, free: 3.637 MB / 378.7 MB Notification: Performance of pre-optimization done (n=148): time 3.747e-06/0.2881, allocations: 0 / 419.4 MB, free: 3.637 MB / 378.7 MB Notification: Performance of matching and sorting (n=154): time 0.02639/0.3145, allocations: 14.54 MB / 433.9 MB, free: 5.043 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.166e-05/0.3145, allocations: 141.5 kB / 434.1 MB, free: 4.875 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005233/0.3198, allocations: 4.627 MB / 438.7 MB, free: 228 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001627/0.3199, allocations: 49.7 kB / 438.7 MB, free: 172 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001535/0.3215, allocations: 3.268 MB / 442 MB, free: 12.87 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005694/0.322, allocations: 0.632 MB / 442.6 MB, free: 12.23 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001186/0.3232, allocations: 1.226 MB / 443.9 MB, free: 10.99 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.284e-05/0.3233, allocations: 301.1 kB / 444.2 MB, free: 10.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002436/0.3257, allocations: 2.12 MB / 446.3 MB, free: 8.57 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004072/0.3298, allocations: 5.944 MB / 452.2 MB, free: 0.7031 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00638/0.3362, allocations: 8.758 MB / 461 MB, free: 6.035 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.67e-05/0.3362, allocations: 39.94 kB / 461 MB, free: 5.996 MB / 426.7 MB Notification: Performance of matching and sorting (n=775) (initialization): time 0.1783/0.5146, allocations: 8.552 MB / 469.6 MB, free: 129.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.524e-05/0.5147, allocations: 62.84 kB / 469.6 MB, free: 129.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001559/0.5148, allocations: 136.5 kB / 469.8 MB, free: 129.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001745/0.5166, allocations: 0.9112 MB / 470.7 MB, free: 129.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00297/0.5195, allocations: 1.399 MB / 472.1 MB, free: 129.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004738/0.5243, allocations: 5.065 MB / 477.1 MB, free: 127.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003576/0.5278, allocations: 368 kB / 477.5 MB, free: 127.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005513/0.5284, allocations: 387.2 kB / 477.9 MB, free: 127.8 MB / 426.7 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.003611/0.532, allocations: 2.103 MB / 480 MB, free: 127 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006819/0.5327, allocations: 374.4 kB / 480.4 MB, free: 127 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004473/0.5372, allocations: 3.131 MB / 483.5 MB, free: 126 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.772e-05/0.5372, allocations: 23.48 kB / 483.5 MB, free: 126 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.424e-05/0.5372, allocations: 3.938 kB / 483.5 MB, free: 126 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.457e-05/0.5372, allocations: 10.05 kB / 483.5 MB, free: 126 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009188/0.5464, allocations: 7.576 MB / 491.1 MB, free: 123.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.5464, allocations: 3.938 kB / 491.1 MB, free: 123.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006252/0.547, allocations: 267.5 kB / 491.4 MB, free: 123.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001098/0.5481, allocations: 0.7184 MB / 492.1 MB, free: 123.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.108e-05/0.5482, allocations: 38.12 kB / 492.1 MB, free: 123.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003346/0.5516, allocations: 4.64 MB / 496.8 MB, free: 120.7 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.5516, allocations: 0 / 496.8 MB, free: 120.7 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00485/0.5564, allocations: 5.683 MB / 0.4907 GB, free: 118.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001298/0.5577, allocations: 0.6107 MB / 0.4913 GB, free: 118.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002498/0.558, allocations: 30.88 kB / 0.4913 GB, free: 118.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000834/0.5588, allocations: 122.4 kB / 0.4914 GB, free: 118.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002316/0.559, allocations: 105.5 kB / 0.4915 GB, free: 118.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.422e-05/0.5591, allocations: 57.88 kB / 0.4916 GB, free: 118.3 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002895/0.562, allocations: 2.78 MB / 0.4943 GB, free: 116.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.562, allocations: 0 / 0.4943 GB, free: 116.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003569/0.5656, allocations: 1.045 MB / 0.4953 GB, free: 115.1 MB / 426.7 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.005079/0.5706, allocations: 6.363 MB / 0.5015 GB, free: 108.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005848/0.5765, allocations: 4.896 MB / 0.5063 GB, free: 103.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.636e-06/0.5765, allocations: 0 / 0.5063 GB, free: 103.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001153/0.5777, allocations: 1.441 MB / 0.5077 GB, free: 102.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001749/0.5794, allocations: 447.5 kB / 0.5081 GB, free: 102 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0386/0.618, allocations: 46.92 MB / 0.5539 GB, free: 49.23 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002132/0.6201, allocations: 2.706 MB / 0.5566 GB, free: 46.49 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002635/0.6228, allocations: 1.937 MB / 0.5585 GB, free: 44.54 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001356/0.6241, allocations: 1.906 MB / 0.5603 GB, free: 42.64 MB / 426.7 MB Notification: Performance of SimCode: time 1.854e-06/0.6241, allocations: 0 / 0.5603 GB, free: 42.64 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2367/0.8609, allocations: 69.81 MB / 0.6285 GB, free: 139.9 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.744/10.6, allocations: 5.078 kB / 0.6285 GB, free: 139.9 MB / 442.7 MB " [Timeout remaining time 649] (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.000219912 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/ActuatedDrive/ActuatedDrive.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.503550954163074]