Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001281/0.001281, allocations: 110.9 kB / 17.68 MB, free: 5.332 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.001261/0.001261, allocations: 192 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.288/1.288, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009821/0.0009822, allocations: 51.25 kB / 302.1 MB, free: 5.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0932/0.0942, allocations: 49.43 MB / 351.5 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01164/0.1059, allocations: 11.4 MB / 362.9 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00756/0.1135, allocations: 4.08 MB / 367 MB, free: 4.125 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001174/0.1147, allocations: 63.88 kB / 367 MB, free: 4.062 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005344/0.1201, allocations: 3.205 MB / 370.2 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1498/0.2699, allocations: 1.941 MB / 372.2 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001711/0.2717, allocations: 0.8286 MB / 373 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005545/0.2772, allocations: 4.439 MB / 377.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004096/0.2813, allocations: 4.058 MB / 381.5 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002015/0.2834, allocations: 1.654 MB / 383.2 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002267/0.2856, allocations: 2.162 MB / 385.3 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005511/0.2862, allocations: 354 kB / 385.7 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001902/0.2881, allocations: 1.256 MB / 386.9 MB, free: 8.344 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001411/0.2895, allocations: 2.06 MB / 389 MB, free: 7.625 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001663/0.2912, allocations: 2.364 MB / 391.4 MB, free: 5.961 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004944/0.2962, allocations: 7.625 MB / 399 MB, free: 1.176 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2962, allocations: 0 / 399 MB, free: 1.176 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2962, allocations: 2.906 kB / 399 MB, free: 1.176 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.096e-05/0.2963, allocations: 0 / 399 MB, free: 1.176 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.008348/0.3047, allocations: 5.174 MB / 404.2 MB, free: 12.52 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.3047, allocations: 8.031 kB / 404.2 MB, free: 12.51 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007916/0.3126, allocations: 2.184 MB / 406.3 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005859/0.3185, allocations: 2.86 MB / 409.2 MB, free: 7.551 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000154/0.3187, allocations: 249.7 kB / 409.5 MB, free: 7.344 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006176/0.3193, allocations: 327.7 kB / 409.8 MB, free: 7.062 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01611/0.3354, allocations: 10.84 MB / 420.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001043/0.3355, allocations: 35.69 kB / 420.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003842/0.3359, allocations: 154.8 kB / 420.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003241/0.3392, allocations: 2.148 MB / 422.9 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01619/0.3554, allocations: 9.226 MB / 432.2 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04663/0.4021, allocations: 41.68 MB / 473.8 MB, free: 5.551 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01057/0.4127, allocations: 4.494 MB / 478.3 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002801/0.4155, allocations: 2.496 MB / 480.8 MB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01123/0.4268, allocations: 7.379 MB / 488.2 MB, free: 6.871 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.988e-05/0.4268, allocations: 55.48 kB / 488.3 MB, free: 6.809 MB / 398.1 MB Notification: Performance of pre-optimization done (n=177): time 4.749e-06/0.4268, allocations: 0 / 488.3 MB, free: 6.809 MB / 398.1 MB Notification: Performance of matching and sorting (n=198): time 0.04425/0.4711, allocations: 18.75 MB / 0.4951 GB, free: 3.941 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.794e-05/0.4712, allocations: 187.4 kB / 0.4953 GB, free: 3.723 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005398/0.4766, allocations: 4.622 MB / 0.4998 GB, free: 15.08 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000219/0.4769, allocations: 49.7 kB / 0.4999 GB, free: 15.03 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001958/0.4788, allocations: 3.216 MB / 0.503 GB, free: 11.81 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006361/0.4795, allocations: 0.7572 MB / 0.5038 GB, free: 11.06 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001489/0.481, allocations: 1.292 MB / 0.505 GB, free: 9.762 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.554e-05/0.4811, allocations: 305.1 kB / 0.5053 GB, free: 9.461 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003136/0.4842, allocations: 2.398 MB / 0.5077 GB, free: 7.059 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005999/0.4902, allocations: 6.145 MB / 0.5137 GB, free: 15.06 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01002/0.5003, allocations: 9.24 MB / 0.5227 GB, free: 4.012 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.297e-05/0.5004, allocations: 36 kB / 0.5227 GB, free: 3.977 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.1775/0.6779, allocations: 9.347 MB / 0.5318 GB, free: 141.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.588e-05/0.6781, allocations: 66.89 kB / 0.5319 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001464/0.6782, allocations: 135.8 kB / 0.532 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003058/0.6813, allocations: 1.189 MB / 0.5332 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004755/0.6861, allocations: 1.45 MB / 0.5346 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008654/0.6947, allocations: 7.297 MB / 0.5417 GB, free: 138.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004431/0.6992, allocations: 352.7 kB / 0.5421 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000577/0.6998, allocations: 385.3 kB / 0.5424 GB, free: 138 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 49 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.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.forceArrow.color[3],forceAndTorque.forceArrow.color[2],forceAndTorque.forceArrow.color[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 (772): * Single equations (assignments): 766 * 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.002894/0.7027, allocations: 2.237 MB / 0.5446 GB, free: 137 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005664/0.7032, allocations: 389.2 kB / 0.545 GB, free: 137 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005947/0.7092, allocations: 4.054 MB / 0.549 GB, free: 135.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.218e-05/0.7092, allocations: 26.91 kB / 0.549 GB, free: 135.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/0.7092, allocations: 7.562 kB / 0.549 GB, free: 135.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.526e-05/0.7093, allocations: 10.55 kB / 0.549 GB, free: 135.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01277/0.722, allocations: 9.597 MB / 0.5584 GB, free: 132.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.369e-05/0.7221, allocations: 7.719 kB / 0.5584 GB, free: 132.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001378/0.7235, allocations: 319.1 kB / 0.5587 GB, free: 132.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002361/0.7258, allocations: 1.02 MB / 0.5597 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001447/0.726, allocations: 45.72 kB / 0.5597 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007106/0.7331, allocations: 6.839 MB / 0.5664 GB, free: 126.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.7332, allocations: 8 kB / 0.5664 GB, free: 126.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008506/0.7417, allocations: 7.042 MB / 0.5733 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001407/0.7431, allocations: 463.8 kB / 0.5737 GB, free: 119 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001005/0.7442, allocations: 39.98 kB / 0.5738 GB, free: 119 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001866/0.746, allocations: 123.8 kB / 0.5739 GB, free: 118.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003234/0.7464, allocations: 125 kB / 0.574 GB, free: 118.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001372/0.7465, allocations: 63.58 kB / 0.5741 GB, free: 118.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003977/0.7505, allocations: 2.956 MB / 0.5769 GB, free: 115.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.7505, allocations: 0 / 0.5769 GB, free: 115.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005414/0.7559, allocations: 1.09 MB / 0.578 GB, free: 114.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.0004102/0.7564, allocations: 185.9 kB / 0.5782 GB, free: 114.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007086/0.7635, allocations: 5.765 MB / 0.5838 GB, free: 108.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.146e-05/0.7635, allocations: 0 / 0.5838 GB, free: 108.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002797/0.7663, allocations: 2.048 MB / 0.5858 GB, free: 106.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002844/0.7692, allocations: 0.5026 MB / 0.5863 GB, free: 106.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01569/0.7849, allocations: 10.27 MB / 0.5963 GB, free: 95.81 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002904/0.7878, allocations: 3.452 MB / 0.5997 GB, free: 92.32 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004092/0.7919, allocations: 2.045 MB / 0.6017 GB, free: 90.27 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007859/0.7927, allocations: 267.4 kB / 0.602 GB, free: 90.01 MB / 446.1 MB Notification: Performance of SimCode: time 1.443e-06/0.7927, allocations: 0 / 0.602 GB, free: 90.01 MB / 446.1 MB Notification: Performance of Templates: time 0.06034/0.8531, allocations: 37.32 MB / 0.6384 GB, free: 53 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches