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: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 102.6 kB / 17.58 MB, free: 5.426 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.001264/0.001264, allocations: 191.9 kB / 18.51 MB, free: 4.508 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.422/1.422, allocations: 205.1 MB / 224.4 MB, free: 12.33 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.001205/0.001205, allocations: 51.92 kB / 280.6 MB, free: 3.184 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1149, allocations: 46.64 MB / 327.3 MB, free: 4.477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.01916/0.1341, allocations: 11.74 MB / 339 MB, free: 8.668 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0104/0.1446, allocations: 3.906 MB / 342.9 MB, free: 4.75 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003215/0.148, allocations: 63.88 kB / 343 MB, free: 4.688 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006199/0.1542, allocations: 2.725 MB / 345.7 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006278/0.1605, allocations: 1.883 MB / 347.6 MB, free: 64 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002111/0.1626, allocations: 0.5693 MB / 348.2 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006518/0.1692, allocations: 3.754 MB / 351.9 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005763/0.175, allocations: 3.694 MB / 355.6 MB, free: 7.973 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003499/0.1785, allocations: 1.526 MB / 357.2 MB, free: 6.441 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003719/0.1823, allocations: 2.13 MB / 359.3 MB, free: 4.305 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001267/0.1836, allocations: 340 kB / 359.6 MB, free: 3.973 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002795/0.1864, allocations: 1.061 MB / 360.7 MB, free: 2.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002729/0.1891, allocations: 1.917 MB / 362.6 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004539/0.1937, allocations: 2.241 MB / 364.8 MB, free: 14.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009675/0.2034, allocations: 6.939 MB / 371.8 MB, free: 7.773 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.2034, allocations: 0 / 371.8 MB, free: 7.773 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2035, allocations: 4 kB / 371.8 MB, free: 7.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002966/0.2038, allocations: 0 / 371.8 MB, free: 7.77 MB / 318.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.01911/0.2229, allocations: 5.306 MB / 377.1 MB, free: 2.395 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/0.2229, allocations: 16.03 kB / 377.1 MB, free: 2.379 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006843/0.2298, allocations: 1.878 MB / 379 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1658/0.3957, allocations: 2.344 MB / 381.3 MB, free: 48.69 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003259/0.396, allocations: 236 kB / 381.6 MB, free: 48.62 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001414/0.3974, allocations: 318.5 kB / 381.9 MB, free: 48.55 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02097/0.4184, allocations: 10.71 MB / 392.6 MB, free: 43.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001336/0.4186, allocations: 45.31 kB / 392.6 MB, free: 43.81 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004675/0.4191, allocations: 152.8 kB / 392.8 MB, free: 43.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003015/0.4221, allocations: 1.992 MB / 394.8 MB, free: 43.39 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01685/0.439, allocations: 9.564 MB / 404.3 MB, free: 35.98 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04276/0.4818, allocations: 39.92 MB / 444.2 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01364/0.4955, allocations: 3.834 MB / 448.1 MB, free: 7.074 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002954/0.4985, allocations: 1.849 MB / 449.9 MB, free: 5.219 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006683/0.4992, allocations: 360.3 kB / 450.3 MB, free: 4.812 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.35e-05/0.4992, allocations: 55.5 kB / 450.3 MB, free: 4.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=148): time 5.16e-06/0.4992, allocations: 0 / 450.3 MB, free: 4.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=154): time 0.04653/0.5458, allocations: 13.76 MB / 464.1 MB, free: 6.867 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001263/0.5459, allocations: 145.5 kB / 464.2 MB, free: 6.695 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007253/0.5532, allocations: 4.163 MB / 468.4 MB, free: 2.508 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004957/0.5537, allocations: 47.48 kB / 468.4 MB, free: 2.457 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002413/0.5562, allocations: 3.16 MB / 471.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00105/0.5572, allocations: 0.6174 MB / 472.2 MB, free: 14.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00165/0.5589, allocations: 1.225 MB / 473.4 MB, free: 13.38 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.598e-05/0.559, allocations: 317 kB / 473.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002948/0.5619, allocations: 2.132 MB / 475.9 MB, free: 10.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005299/0.5673, allocations: 5.952 MB / 481.8 MB, free: 3.062 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009623/0.5769, allocations: 8.781 MB / 490.6 MB, free: 8.371 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001032/0.577, allocations: 40 kB / 490.7 MB, free: 8.332 MB / 382.1 MB Notification: Performance of matching and sorting (n=779) (initialization): time 0.01663/0.5937, allocations: 8.573 MB / 499.2 MB, free: 15.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001278/0.5939, allocations: 60 kB / 499.3 MB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000193/0.5941, allocations: 136 kB / 499.4 MB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002536/0.5966, allocations: 0.9229 MB / 0.4886 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004647/0.6013, allocations: 1.396 MB / 0.49 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006765/0.6081, allocations: 5.212 MB / 0.4951 GB, free: 7.879 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00476/0.6129, allocations: 327.5 kB / 0.4954 GB, free: 7.559 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001188/0.6141, allocations: 387.9 kB / 0.4958 GB, free: 7.18 MB / 398.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 (740): * Single equations (assignments): 736 * 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.004401/0.6185, allocations: 2.099 MB / 0.4978 GB, free: 5.066 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009094/0.6194, allocations: 355.5 kB / 0.4981 GB, free: 4.715 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006396/0.6258, allocations: 3.144 MB / 0.5012 GB, free: 1.551 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.73e-05/0.6259, allocations: 16 kB / 0.5012 GB, free: 1.535 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.392e-05/0.6259, allocations: 4 kB / 0.5012 GB, free: 1.531 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.76e-05/0.6259, allocations: 11.97 kB / 0.5012 GB, free: 1.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01582/0.6418, allocations: 7.826 MB / 0.5089 GB, free: 9.613 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.919e-05/0.6418, allocations: 4 kB / 0.5089 GB, free: 9.609 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001315/0.6431, allocations: 255.6 kB / 0.5091 GB, free: 9.359 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00209/0.6453, allocations: 0.7225 MB / 0.5098 GB, free: 8.633 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001536/0.6454, allocations: 35.97 kB / 0.5099 GB, free: 8.598 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005944/0.6514, allocations: 4.75 MB / 0.5145 GB, free: 3.711 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.6514, allocations: 4.031 kB / 0.5145 GB, free: 3.707 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008631/0.66, allocations: 5.679 MB / 0.5201 GB, free: 13.99 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001622/0.6617, allocations: 0.6291 MB / 0.5207 GB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000816/0.6625, allocations: 24 kB / 0.5207 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001666/0.6642, allocations: 83.89 kB / 0.5208 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003011/0.6645, allocations: 104.8 kB / 0.5209 GB, free: 13.13 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001251/0.6646, allocations: 51.97 kB / 0.5209 GB, free: 13.08 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004449/0.6691, allocations: 2.61 MB / 0.5235 GB, free: 10.46 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6691, allocations: 0 / 0.5235 GB, free: 10.46 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004821/0.6739, allocations: 0.9558 MB / 0.5244 GB, free: 9.508 MB / 430.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.0004248/0.6744, allocations: 160.3 kB / 0.5246 GB, free: 9.344 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008876/0.6832, allocations: 5.739 MB / 0.5302 GB, free: 3.637 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.63e-06/0.6833, allocations: 0.75 kB / 0.5302 GB, free: 3.637 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002007/0.6853, allocations: 1.543 MB / 0.5317 GB, free: 2.09 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003476/0.6888, allocations: 448.1 kB / 0.5321 GB, free: 1.656 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1778/0.8666, allocations: 9.075 MB / 0.541 GB, free: 143.1 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003615/0.8702, allocations: 3.245 MB / 0.5441 GB, free: 142.3 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004555/0.8748, allocations: 1.934 MB / 0.546 GB, free: 142.1 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006593/0.8755, allocations: 269.1 kB / 0.5463 GB, free: 142.1 MB / 430.1 MB Notification: Performance of SimCode: time 1.152e-06/0.8755, allocations: 4 kB / 0.5463 GB, free: 142.1 MB / 430.1 MB Notification: Performance of Templates: time 0.0553/0.9308, allocations: 37.12 MB / 0.5825 GB, free: 114.6 MB / 430.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.makefile (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 & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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.mat","/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) Reference file matches