Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001175/0.001176, allocations: 99.62 kB / 16.94 MB, free: 6.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.001331/0.001331, allocations: 180.4 kB / 17.83 MB, free: 6.039 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.421/1.421, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004632/0.0004632, allocations: 12.78 kB / 280.7 MB, free: 3.75 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09329/0.09377, allocations: 47.58 MB / 328.3 MB, free: 4.098 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.04739/0.1412, allocations: 49.65 MB / 378 MB, free: 2.316 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2298/0.371, allocations: 11.67 MB / 389.6 MB, free: 8.551 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01196/0.3831, allocations: 244.4 kB / 389.9 MB, free: 8.551 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01053/0.3936, allocations: 2.466 MB / 392.3 MB, free: 8.547 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02681/0.4205, allocations: 7.164 MB / 399.5 MB, free: 7.324 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003617/0.4241, allocations: 0.6167 MB / 400.1 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02214/0.4463, allocations: 14.36 MB / 414.5 MB, free: 4.094 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007673/0.454, allocations: 5.077 MB / 419.6 MB, free: 1.016 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002088/0.4561, allocations: 1.132 MB / 420.7 MB, free: 96 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002025/0.4582, allocations: 1.489 MB / 422.2 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005289/0.4587, allocations: 160 kB / 422.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002043/0.4608, allocations: 0.9275 MB / 423.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001702/0.4625, allocations: 1.802 MB / 425.1 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001259/0.4637, allocations: 0.9441 MB / 426 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007519/0.4713, allocations: 6.391 MB / 432.4 MB, free: 6.414 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.4713, allocations: 0 / 432.4 MB, free: 6.414 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.4713, allocations: 0 / 432.4 MB, free: 6.414 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003068/0.4716, allocations: 0 / 432.4 MB, free: 6.414 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: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.01241/0.4841, allocations: 4.813 MB / 437.2 MB, free: 1.973 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.285e-05/0.4841, allocations: 12.03 kB / 437.2 MB, free: 1.961 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02627/0.5104, allocations: 5.123 MB / 442.3 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008323/0.5188, allocations: 3.086 MB / 445.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002348/0.5191, allocations: 264.8 kB / 445.7 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001084/0.5202, allocations: 355.6 kB / 446 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02031/0.5405, allocations: 11.72 MB / 457.8 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001335/0.5407, allocations: 47.58 kB / 457.8 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004717/0.5411, allocations: 171.4 kB / 458 MB, free: 424 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004154/0.5453, allocations: 2.338 MB / 460.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01971/0.565, allocations: 9.979 MB / 470.3 MB, free: 4.094 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05756/0.6226, allocations: 44.43 MB / 0.5026 GB, free: 6.801 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01355/0.6362, allocations: 5.428 MB / 0.508 GB, free: 1.223 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01381/0.6501, allocations: 8.04 MB / 0.5158 GB, free: 9.051 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.035e-05/0.6502, allocations: 51.88 kB / 0.5159 GB, free: 8.992 MB / 430.1 MB Notification: Performance of pre-optimization done (n=216): time 5.4e-06/0.6502, allocations: 0 / 0.5159 GB, free: 8.992 MB / 430.1 MB Notification: Performance of matching and sorting (n=237): time 0.05273/0.7029, allocations: 20.7 MB / 0.5361 GB, free: 4.098 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/0.7031, allocations: 188.2 kB / 0.5362 GB, free: 3.879 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.197/0.9001, allocations: 4.876 MB / 0.541 GB, free: 162.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007105/0.9009, allocations: 58.83 kB / 0.5411 GB, free: 162.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002915/0.9038, allocations: 3.413 MB / 0.5444 GB, free: 161.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001144/0.905, allocations: 0.8898 MB / 0.5453 GB, free: 160.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003318/0.9053, allocations: 130.9 kB / 0.5454 GB, free: 160.6 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000443/0.9058, allocations: 0.5885 MB / 0.546 GB, free: 160.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004478/0.9103, allocations: 2.573 MB / 0.5485 GB, free: 159.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00664/0.9169, allocations: 6.445 MB / 0.5548 GB, free: 153.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006255/0.9232, allocations: 3.996 MB / 0.5587 GB, free: 152 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001015/0.9233, allocations: 39.53 kB / 0.5587 GB, free: 152 MB / 446.1 MB Notification: Performance of matching and sorting (n=874) (initialization): time 0.01476/0.9381, allocations: 9.634 MB / 0.5681 GB, free: 148.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.427e-05/0.9382, allocations: 73.2 kB / 0.5682 GB, free: 148.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001389/0.9383, allocations: 137.9 kB / 0.5683 GB, free: 148.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002143/0.9405, allocations: 0.9654 MB / 0.5693 GB, free: 148.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004597/0.9451, allocations: 1.577 MB / 0.5708 GB, free: 148 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006681/0.9518, allocations: 6.278 MB / 0.5769 GB, free: 144.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005542/0.9574, allocations: 375.5 kB / 0.5773 GB, free: 144.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008709/0.9582, allocations: 403.7 kB / 0.5777 GB, free: 143.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * Number of states: 0 () * Number of discrete variables: 42 (fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (816): * Single equations (assignments): 810 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004292/0.9626, allocations: 2.368 MB / 0.58 GB, free: 141.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008577/0.9634, allocations: 418.6 kB / 0.5804 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00719/0.9706, allocations: 4.4 MB / 0.5847 GB, free: 137.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.308e-05/0.9707, allocations: 33.7 kB / 0.5847 GB, free: 137.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.752e-05/0.9707, allocations: 4 kB / 0.5847 GB, free: 137.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.45e-05/0.9707, allocations: 11.95 kB / 0.5847 GB, free: 137.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01976/0.9905, allocations: 10.53 MB / 0.595 GB, free: 126.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.951e-05/0.9906, allocations: 8.656 kB / 0.595 GB, free: 126.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002006/0.9926, allocations: 427.3 kB / 0.5954 GB, free: 126.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001865/0.9945, allocations: 0.764 MB / 0.5962 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002794/0.9948, allocations: 44.7 kB / 0.5962 GB, free: 125.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006522/1.001, allocations: 5.801 MB / 0.6019 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/1.001, allocations: 4.188 kB / 0.6019 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009811/1.011, allocations: 8.463 MB / 0.6102 GB, free: 110.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002975/1.014, allocations: 0.839 MB / 0.611 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001155/1.015, allocations: 45.41 kB / 0.611 GB, free: 109.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002316/1.018, allocations: 143.8 kB / 0.6112 GB, free: 109.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003564/1.018, allocations: 149.2 kB / 0.6113 GB, free: 109.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001809/1.018, allocations: 73.39 kB / 0.6114 GB, free: 109.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005464/1.024, allocations: 3.133 MB / 0.6144 GB, free: 106.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.41e-07/1.024, allocations: 0 / 0.6144 GB, free: 106.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0071/1.031, allocations: 1.174 MB / 0.6156 GB, free: 105.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.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 (198): * Single equations (assignments): 194 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008422/1.032, allocations: 202.2 kB / 0.6158 GB, free: 105 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009164/1.041, allocations: 6.248 MB / 0.6219 GB, free: 98.77 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/1.041, allocations: 0 / 0.6219 GB, free: 98.77 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003536/1.044, allocations: 2.311 MB / 0.6241 GB, free: 96.44 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002974/1.047, allocations: 493.8 kB / 0.6246 GB, free: 95.97 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02307/1.071, allocations: 12.94 MB / 0.6372 GB, free: 82.93 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00538/1.076, allocations: 3.77 MB / 0.6409 GB, free: 79.13 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00584/1.082, allocations: 2.212 MB / 0.6431 GB, free: 76.91 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001236/1.083, allocations: 303.4 kB / 0.6434 GB, free: 76.61 MB / 446.1 MB Notification: Performance of SimCode: time 1.563e-06/1.083, allocations: 0 / 0.6434 GB, free: 76.61 MB / 446.1 MB Notification: Performance of Templates: time 0.06745/1.151, allocations: 42.66 MB / 0.685 GB, free: 33.97 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches