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.001269/0.001269, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001327/0.001327, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001873/0.001873, allocations: 67.17 kB / 307 MB, free: 0.5547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1092, allocations: 50.54 MB / 357.5 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01334/0.1226, allocations: 11.17 MB / 368.7 MB, free: 2.785 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1564/0.2791, allocations: 4.053 MB / 372.8 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001274/0.2804, allocations: 69.06 kB / 372.8 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005557/0.286, allocations: 3.173 MB / 376 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004757/0.2908, allocations: 1.876 MB / 377.9 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001934/0.2927, allocations: 0.8324 MB / 378.7 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00671/0.2994, allocations: 4.389 MB / 383.1 MB, free: 7.727 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005011/0.3045, allocations: 4.029 MB / 387.1 MB, free: 6.129 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002781/0.3073, allocations: 1.612 MB / 388.7 MB, free: 5.414 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002735/0.31, allocations: 2.116 MB / 390.9 MB, free: 4.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007959/0.3108, allocations: 345.8 kB / 391.2 MB, free: 4.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002347/0.3132, allocations: 1.24 MB / 392.4 MB, free: 3.824 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00166/0.3149, allocations: 1.99 MB / 394.4 MB, free: 2.684 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001777/0.3166, allocations: 2.277 MB / 396.7 MB, free: 0.957 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008462/0.3251, allocations: 7.138 MB / 403.8 MB, free: 10.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.3252, allocations: 4 kB / 403.8 MB, free: 10.81 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3252, allocations: 0 / 403.8 MB, free: 10.81 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001905/0.3254, allocations: 0 / 403.8 MB, free: 10.81 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.01129/0.3367, allocations: 5.052 MB / 408.9 MB, free: 5.789 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.3367, allocations: 8.031 kB / 408.9 MB, free: 5.781 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009042/0.3458, allocations: 2.126 MB / 411 MB, free: 3.648 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006584/0.3524, allocations: 2.723 MB / 413.8 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002105/0.3526, allocations: 246.7 kB / 414 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001001/0.3537, allocations: 320.8 kB / 414.3 MB, free: 420 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01927/0.3729, allocations: 10.45 MB / 424.8 MB, free: 5.375 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001196/0.3731, allocations: 39.59 kB / 424.8 MB, free: 5.336 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004239/0.3735, allocations: 156.1 kB / 424.9 MB, free: 5.219 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003464/0.377, allocations: 2.029 MB / 427 MB, free: 3.191 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01717/0.3942, allocations: 8.911 MB / 435.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0515/0.4457, allocations: 40.97 MB / 476.9 MB, free: 428 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01221/0.458, allocations: 4.485 MB / 481.3 MB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003472/0.4615, allocations: 2.503 MB / 483.8 MB, free: 9.281 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01195/0.4734, allocations: 7.356 MB / 491.2 MB, free: 1.762 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.174e-05/0.4735, allocations: 51.56 kB / 491.2 MB, free: 1.703 MB / 398.1 MB Notification: Performance of pre-optimization done (n=177): time 4.458e-06/0.4735, allocations: 0 / 491.2 MB, free: 1.703 MB / 398.1 MB Notification: Performance of matching and sorting (n=198): time 0.05068/0.5242, allocations: 18.66 MB / 0.498 GB, free: 14.93 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/0.5244, allocations: 171.5 kB / 0.4981 GB, free: 14.72 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006296/0.5307, allocations: 4.56 MB / 0.5026 GB, free: 10.14 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003486/0.5311, allocations: 57.7 kB / 0.5026 GB, free: 10.07 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002442/0.5335, allocations: 3.117 MB / 0.5057 GB, free: 6.957 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009081/0.5344, allocations: 0.7534 MB / 0.5064 GB, free: 6.211 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001759/0.5362, allocations: 1.283 MB / 0.5077 GB, free: 4.918 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.5363, allocations: 305.1 kB / 0.508 GB, free: 4.617 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00368/0.54, allocations: 2.382 MB / 0.5103 GB, free: 2.23 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007028/0.5471, allocations: 6.072 MB / 0.5162 GB, free: 10.33 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1811/0.7282, allocations: 9.143 MB / 0.5251 GB, free: 135.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001077/0.7283, allocations: 37.53 kB / 0.5252 GB, free: 135.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=821) (initialization): time 0.01721/0.7455, allocations: 9.287 MB / 0.5342 GB, free: 133.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001055/0.7457, allocations: 64.72 kB / 0.5343 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001906/0.7459, allocations: 129.8 kB / 0.5344 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002994/0.7489, allocations: 1.195 MB / 0.5356 GB, free: 133 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004639/0.7535, allocations: 1.436 MB / 0.537 GB, free: 132.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008362/0.7619, allocations: 7.294 MB / 0.5441 GB, free: 129.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00428/0.7662, allocations: 347.2 kB / 0.5445 GB, free: 129 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000668/0.7669, allocations: 384.9 kB / 0.5448 GB, free: 129 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.002659/0.7696, allocations: 2.178 MB / 0.5469 GB, free: 128.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005055/0.7701, allocations: 395.3 kB / 0.5473 GB, free: 128 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006085/0.7762, allocations: 4.049 MB / 0.5513 GB, free: 126.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.505e-05/0.7763, allocations: 22.97 kB / 0.5513 GB, free: 126.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.396e-05/0.7763, allocations: 11.48 kB / 0.5513 GB, free: 126.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-05/0.7763, allocations: 7.453 kB / 0.5513 GB, free: 126.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01448/0.7908, allocations: 9.511 MB / 0.5606 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-05/0.7908, allocations: 11.48 kB / 0.5606 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001441/0.7923, allocations: 319.3 kB / 0.5609 GB, free: 123 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002381/0.7947, allocations: 1.019 MB / 0.5619 GB, free: 122.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001784/0.7949, allocations: 43.73 kB / 0.562 GB, free: 122.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006867/0.8017, allocations: 6.83 MB / 0.5686 GB, free: 116.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.8018, allocations: 4 kB / 0.5686 GB, free: 116.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007918/0.8097, allocations: 7.034 MB / 0.5755 GB, free: 109.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/0.8109, allocations: 467.9 kB / 0.5759 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004808/0.8114, allocations: 39.98 kB / 0.576 GB, free: 108.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001489/0.8129, allocations: 119.8 kB / 0.5761 GB, free: 108.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002976/0.8132, allocations: 125 kB / 0.5762 GB, free: 108.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001247/0.8133, allocations: 64.86 kB / 0.5763 GB, free: 108.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003174/0.8165, allocations: 2.923 MB / 0.5791 GB, free: 105.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8165, allocations: 0 / 0.5791 GB, free: 105.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004487/0.821, allocations: 1.059 MB / 0.5802 GB, free: 104.6 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.000377/0.8214, allocations: 178.7 kB / 0.5803 GB, free: 104.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008116/0.8295, allocations: 6.817 MB / 0.587 GB, free: 97.59 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.8295, allocations: 4.062 kB / 0.587 GB, free: 97.59 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002616/0.8321, allocations: 2.053 MB / 0.589 GB, free: 95.52 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002542/0.8347, allocations: 498.6 kB / 0.5895 GB, free: 95.05 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0135/0.8482, allocations: 10.17 MB / 0.5994 GB, free: 84.79 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002755/0.851, allocations: 3.367 MB / 0.6027 GB, free: 81.39 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004189/0.8552, allocations: 2.029 MB / 0.6047 GB, free: 79.36 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007164/0.856, allocations: 259.4 kB / 0.6049 GB, free: 79.11 MB / 446.1 MB Notification: Performance of SimCode: time 7.61e-07/0.856, allocations: 0 / 0.6049 GB, free: 79.11 MB / 446.1 MB Notification: Performance of Templates: time 0.0649/0.9209, allocations: 42.38 MB / 0.6463 GB, free: 36.91 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins/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