Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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: 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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001107/0.001107, allocations: 117 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001088/0.001088, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00112/0.00112, allocations: 62.64 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09873/0.09987, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01179/0.1117, allocations: 11.18 MB / 370.1 MB, free: 2.098 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1584/0.2701, allocations: 4.05 MB / 374.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001127/0.2713, allocations: 71.84 kB / 374.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005076/0.2764, allocations: 3.17 MB / 377.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0039/0.2803, allocations: 1.884 MB / 379.3 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001635/0.2819, allocations: 0.8273 MB / 380.1 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005461/0.2874, allocations: 4.398 MB / 384.5 MB, free: 8.293 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003725/0.2912, allocations: 4.012 MB / 388.5 MB, free: 6.605 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001833/0.293, allocations: 1.619 MB / 390.1 MB, free: 5.785 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002027/0.295, allocations: 2.111 MB / 392.2 MB, free: 4.629 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005595/0.2956, allocations: 346 kB / 392.6 MB, free: 4.629 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00181/0.2974, allocations: 1.234 MB / 393.8 MB, free: 4.207 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001205/0.2987, allocations: 2 MB / 395.8 MB, free: 3.059 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001439/0.3001, allocations: 2.274 MB / 398.1 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005664/0.3058, allocations: 7.359 MB / 405.4 MB, free: 10.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3058, allocations: 4 kB / 405.4 MB, free: 10.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3058, allocations: 0 / 405.4 MB, free: 10.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.09e-05/0.3059, allocations: 0 / 405.4 MB, free: 10.68 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: 1541 * Number of variables: 1541 Notification: Performance of Generate backend data structure: time 0.008262/0.3142, allocations: 5.051 MB / 410.5 MB, free: 5.656 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.3142, allocations: 12.03 kB / 410.5 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007736/0.322, allocations: 2.124 MB / 412.6 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005737/0.3277, allocations: 2.773 MB / 415.4 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001447/0.3279, allocations: 242.8 kB / 415.6 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005342/0.3284, allocations: 324.6 kB / 416 MB, free: 232 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01476/0.3432, allocations: 10.45 MB / 426.4 MB, free: 5.188 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.322e-05/0.3433, allocations: 39.59 kB / 426.4 MB, free: 5.148 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003577/0.3437, allocations: 152.9 kB / 426.6 MB, free: 5.035 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003009/0.3467, allocations: 2.032 MB / 428.6 MB, free: 3.004 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01471/0.3614, allocations: 8.912 MB / 437.5 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04183/0.4032, allocations: 40.8 MB / 478.3 MB, free: 408 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01059/0.4139, allocations: 4.491 MB / 482.8 MB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002767/0.4167, allocations: 2.496 MB / 485.3 MB, free: 9.254 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01056/0.4272, allocations: 7.346 MB / 492.7 MB, free: 1.746 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.65e-05/0.4273, allocations: 59.5 kB / 492.7 MB, free: 1.68 MB / 398.1 MB Notification: Performance of pre-optimization done (n=177): time 3.126e-06/0.4273, allocations: 0 / 492.7 MB, free: 1.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=198): time 0.04425/0.4716, allocations: 18.65 MB / 0.4994 GB, free: 14.92 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.405e-05/0.4717, allocations: 179.5 kB / 0.4996 GB, free: 14.71 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005698/0.4774, allocations: 4.564 MB / 0.504 GB, free: 10.12 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00023/0.4776, allocations: 57.7 kB / 0.5041 GB, free: 10.06 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00209/0.4797, allocations: 3.118 MB / 0.5071 GB, free: 6.941 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006656/0.4804, allocations: 0.7611 MB / 0.5079 GB, free: 6.188 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001545/0.482, allocations: 1.275 MB / 0.5091 GB, free: 4.902 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.051e-05/0.4821, allocations: 301.1 kB / 0.5094 GB, free: 4.605 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003183/0.4852, allocations: 2.382 MB / 0.5117 GB, free: 2.219 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005424/0.4907, allocations: 6.079 MB / 0.5177 GB, free: 10.31 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1718/0.6625, allocations: 9.142 MB / 0.5266 GB, free: 135.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001175/0.6626, allocations: 37.59 kB / 0.5266 GB, free: 135.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=821) (initialization): time 0.01453/0.6772, allocations: 9.286 MB / 0.5357 GB, free: 133.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.946e-05/0.6773, allocations: 60.81 kB / 0.5357 GB, free: 133.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001224/0.6774, allocations: 130.4 kB / 0.5359 GB, free: 133.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002899/0.6803, allocations: 1.192 MB / 0.537 GB, free: 133.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004201/0.6845, allocations: 1.427 MB / 0.5384 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007959/0.6925, allocations: 7.297 MB / 0.5456 GB, free: 129.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003922/0.6964, allocations: 348.2 kB / 0.5459 GB, free: 129.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004304/0.6969, allocations: 375.3 kB / 0.5462 GB, free: 129.4 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * Number of states: 0 () * Number of discrete variables: 46 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,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 (763): * Single equations (assignments): 757 * Array equations: 5 * 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 {(2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002479/0.6994, allocations: 2.177 MB / 0.5484 GB, free: 128.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004761/0.6998, allocations: 386.7 kB / 0.5487 GB, free: 128.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005946/0.7058, allocations: 4.055 MB / 0.5527 GB, free: 127 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.67e-05/0.7058, allocations: 26.12 kB / 0.5527 GB, free: 127 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.211e-05/0.7059, allocations: 11.75 kB / 0.5527 GB, free: 127 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.471e-05/0.7059, allocations: 7.453 kB / 0.5527 GB, free: 127 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01322/0.7191, allocations: 9.482 MB / 0.562 GB, free: 123.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/0.7192, allocations: 15.75 kB / 0.562 GB, free: 123.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001302/0.7205, allocations: 324.3 kB / 0.5623 GB, free: 123.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002281/0.7228, allocations: 1.016 MB / 0.5633 GB, free: 123 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001399/0.7229, allocations: 35.81 kB / 0.5634 GB, free: 123 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006876/0.7298, allocations: 6.83 MB / 0.57 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/0.7298, allocations: 11.94 kB / 0.57 GB, free: 116.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007978/0.7378, allocations: 7.032 MB / 0.5769 GB, free: 109.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001035/0.7389, allocations: 467.9 kB / 0.5773 GB, free: 109 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004132/0.7393, allocations: 32 kB / 0.5774 GB, free: 109 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001406/0.7407, allocations: 123.8 kB / 0.5775 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002823/0.741, allocations: 128.5 kB / 0.5776 GB, free: 108.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00013/0.7411, allocations: 56 kB / 0.5777 GB, free: 108.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003194/0.7443, allocations: 2.927 MB / 0.5805 GB, free: 105.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.7443, allocations: 0 / 0.5805 GB, free: 105.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004006/0.7483, allocations: 1.054 MB / 0.5816 GB, free: 104.7 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 (157): * Single equations (assignments): 153 * 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 {(4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00038/0.7487, allocations: 182.4 kB / 0.5817 GB, free: 104.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006729/0.7555, allocations: 5.731 MB / 0.5873 GB, free: 98.83 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.7555, allocations: 4.062 kB / 0.5873 GB, free: 98.83 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002726/0.7582, allocations: 2.058 MB / 0.5893 GB, free: 96.75 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002486/0.7607, allocations: 495.4 kB / 0.5898 GB, free: 96.29 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01396/0.7747, allocations: 10.05 MB / 0.5996 GB, free: 86.16 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002701/0.7774, allocations: 3.371 MB / 0.6029 GB, free: 82.75 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003833/0.7813, allocations: 2.021 MB / 0.6049 GB, free: 80.73 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006812/0.782, allocations: 275.3 kB / 0.6052 GB, free: 80.46 MB / 446.1 MB Notification: Performance of SimCode: time 9.52e-07/0.782, allocations: 0 / 0.6052 GB, free: 80.46 MB / 446.1 MB Notification: Performance of Templates: time 0.05955/0.8415, allocations: 36.73 MB / 0.641 GB, free: 44.01 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches