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.001198/0.001198, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001261/0.001261, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 60.31 kB / 306.3 MB, free: 1.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1048, allocations: 50.54 MB / 356.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.2185/0.3233, allocations: 49.34 MB / 406.1 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02224/0.3456, allocations: 10.31 MB / 416.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00851/0.3541, allocations: 216.7 kB / 416.7 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005708/0.3599, allocations: 3.165 MB / 419.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004279/0.3642, allocations: 1.768 MB / 421.6 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001732/0.366, allocations: 0.7723 MB / 422.4 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007362/0.3733, allocations: 6.436 MB / 428.8 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005323/0.3787, allocations: 3.989 MB / 432.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002557/0.3813, allocations: 1.436 MB / 434.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00313/0.3844, allocations: 2.274 MB / 436.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008139/0.3852, allocations: 252 kB / 436.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0024/0.3877, allocations: 1.209 MB / 438 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002098/0.3898, allocations: 1.932 MB / 439.9 MB, free: 8.492 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002947/0.3927, allocations: 2.194 MB / 442.1 MB, free: 6.285 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006913/0.3996, allocations: 7.064 MB / 449.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3997, allocations: 0 / 449.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3997, allocations: 4 kB / 449.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001868/0.3999, allocations: 3.938 kB / 449.2 MB, free: 15.19 MB / 366.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.009984/0.4099, allocations: 5.053 MB / 454.2 MB, free: 10.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.522e-05/0.4099, allocations: 12.03 kB / 454.2 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008394/0.4183, allocations: 2.124 MB / 456.3 MB, free: 7.922 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00581/0.4242, allocations: 2.722 MB / 459.1 MB, free: 5.141 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002014/0.4244, allocations: 250.1 kB / 459.3 MB, free: 4.895 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008767/0.4253, allocations: 327.8 kB / 459.6 MB, free: 4.574 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01758/0.4429, allocations: 10.44 MB / 470.1 MB, free: 9.441 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001064/0.443, allocations: 47.59 kB / 470.1 MB, free: 9.395 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004103/0.4434, allocations: 155.8 kB / 470.3 MB, free: 9.242 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003331/0.4468, allocations: 2.037 MB / 472.3 MB, free: 7.195 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01738/0.4642, allocations: 8.913 MB / 481.2 MB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05104/0.5152, allocations: 40.98 MB / 0.51 GB, free: 4.203 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01117/0.5264, allocations: 4.484 MB / 0.5143 GB, free: 15.57 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003083/0.5296, allocations: 2.497 MB / 0.5168 GB, free: 13.06 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01186/0.5414, allocations: 7.352 MB / 0.5239 GB, free: 5.496 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.467e-05/0.5415, allocations: 55.5 kB / 0.524 GB, free: 5.434 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 4.93e-06/0.5415, allocations: 0 / 0.524 GB, free: 5.434 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.2366/0.7781, allocations: 18.63 MB / 0.5422 GB, free: 144 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.955e-05/0.7782, allocations: 181.5 kB / 0.5424 GB, free: 143.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00707/0.7853, allocations: 4.559 MB / 0.5468 GB, free: 142.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007361/0.7861, allocations: 55.89 kB / 0.5469 GB, free: 142.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002634/0.7887, allocations: 3.123 MB / 0.5499 GB, free: 139.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001324/0.7901, allocations: 0.7631 MB / 0.5507 GB, free: 139.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001733/0.7918, allocations: 1.276 MB / 0.5519 GB, free: 138.6 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.691e-05/0.7919, allocations: 301.1 kB / 0.5522 GB, free: 138.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003089/0.795, allocations: 2.386 MB / 0.5545 GB, free: 137.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004504/0.7995, allocations: 6.075 MB / 0.5605 GB, free: 131.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009993/0.8095, allocations: 9.151 MB / 0.5694 GB, free: 124.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001189/0.8097, allocations: 37.44 kB / 0.5694 GB, free: 124.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=821) (initialization): time 0.01426/0.8239, allocations: 9.285 MB / 0.5785 GB, free: 115.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.735e-05/0.8241, allocations: 64 kB / 0.5786 GB, free: 115.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001549/0.8242, allocations: 128 kB / 0.5787 GB, free: 115 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002675/0.8269, allocations: 1.192 MB / 0.5799 GB, free: 113.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00438/0.8313, allocations: 1.439 MB / 0.5813 GB, free: 112.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007317/0.8387, allocations: 6.811 MB / 0.5879 GB, free: 105.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004843/0.8435, allocations: 355.6 kB / 0.5882 GB, free: 105.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008527/0.8444, allocations: 379.8 kB / 0.5886 GB, free: 104.7 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.003314/0.8477, allocations: 2.173 MB / 0.5907 GB, free: 102.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009298/0.8487, allocations: 382.9 kB / 0.5911 GB, free: 102.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006348/0.855, allocations: 4.054 MB / 0.5951 GB, free: 98.05 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.285e-05/0.8551, allocations: 23.94 kB / 0.5951 GB, free: 98.02 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.582e-05/0.8551, allocations: 8 kB / 0.5951 GB, free: 98.02 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.823e-05/0.8551, allocations: 15.95 kB / 0.5951 GB, free: 98 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01591/0.871, allocations: 9.509 MB / 0.6044 GB, free: 88.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.362e-05/0.8711, allocations: 5.219 kB / 0.6044 GB, free: 88.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001485/0.8726, allocations: 327.5 kB / 0.6047 GB, free: 88.08 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002503/0.8751, allocations: 1.011 MB / 0.6057 GB, free: 87.07 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002056/0.8753, allocations: 44.47 kB / 0.6057 GB, free: 87.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006937/0.8823, allocations: 6.351 MB / 0.6119 GB, free: 80.54 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.8823, allocations: 11.94 kB / 0.612 GB, free: 80.53 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009479/0.8918, allocations: 7.043 MB / 0.6188 GB, free: 73.39 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001632/0.8935, allocations: 452 kB / 0.6193 GB, free: 72.93 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001241/0.8947, allocations: 47.92 kB / 0.6193 GB, free: 72.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002167/0.8969, allocations: 127.7 kB / 0.6194 GB, free: 72.75 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003282/0.8972, allocations: 125 kB / 0.6195 GB, free: 72.63 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001376/0.8974, allocations: 60.72 kB / 0.6196 GB, free: 72.57 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003714/0.9011, allocations: 2.923 MB / 0.6225 GB, free: 69.65 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9011, allocations: 4 kB / 0.6225 GB, free: 69.64 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005145/0.9063, allocations: 1.052 MB / 0.6235 GB, free: 68.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.0004466/0.9067, allocations: 177.6 kB / 0.6237 GB, free: 68.43 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007141/0.9139, allocations: 5.701 MB / 0.6292 GB, free: 62.73 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/0.9139, allocations: 5.125 kB / 0.6292 GB, free: 62.73 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002768/0.9167, allocations: 2.059 MB / 0.6312 GB, free: 60.66 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00297/0.9197, allocations: 467.2 kB / 0.6317 GB, free: 60.21 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01482/0.9345, allocations: 12.09 MB / 0.6435 GB, free: 48.04 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002698/0.9373, allocations: 3.368 MB / 0.6468 GB, free: 44.64 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004269/0.9416, allocations: 2.033 MB / 0.6488 GB, free: 42.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008399/0.9424, allocations: 263.4 kB / 0.649 GB, free: 42.34 MB / 446.1 MB Notification: Performance of SimCode: time 7.12e-07/0.9424, allocations: 0 / 0.649 GB, free: 42.34 MB / 446.1 MB Notification: Performance of Templates: time 0.06165/1.004, allocations: 40.83 MB / 0.6889 GB, free: 1.684 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.0.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