Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 80.8 kB / 21.49 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001522/0.001522, allocations: 168.3 kB / 24.91 MB, free: 8.77 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9035/0.9035, allocations: 177.1 MB / 205.3 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 273.4 MB, free: 1.305 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.931e-05/2.09e-05, allocations: 2.312 kB / 273.5 MB, free: 1.301 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01171/0.01173, allocations: 10.61 MB / 284.1 MB, free: 6.645 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008367/0.0201, allocations: 4.095 MB / 288.2 MB, free: 2.535 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001641/0.02174, allocations: 83.62 kB / 288.2 MB, free: 2.453 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1108/0.1326, allocations: 3.392 MB / 291.6 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003827/0.1364, allocations: 2.018 MB / 293.7 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001321/0.1377, allocations: 0.9119 MB / 294.6 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004651/0.1424, allocations: 4.785 MB / 299.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003188/0.1455, allocations: 3.483 MB / 302.8 MB, free: 12.76 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003394/0.1489, allocations: 2.949 MB / 305.8 MB, free: 11.7 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002272/0.1512, allocations: 2.145 MB / 307.9 MB, free: 10.65 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006212/0.1518, allocations: 348.5 kB / 308.3 MB, free: 10.65 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001356/0.1532, allocations: 1.182 MB / 309.4 MB, free: 10.3 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001058/0.1542, allocations: 2.132 MB / 311.6 MB, free: 9.004 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001159/0.1554, allocations: 1.307 MB / 312.9 MB, free: 7.754 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003062/0.1585, allocations: 4.859 MB / 317.7 MB, free: 3.207 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1585, allocations: 4 kB / 317.7 MB, free: 3.203 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1585, allocations: 0 / 317.7 MB, free: 3.203 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001274/0.1586, allocations: 0 / 317.7 MB, free: 3.203 MB / 266.7 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.004548/0.1631, allocations: 4.717 MB / 322.5 MB, free: 14.83 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.1632, allocations: 12.03 kB / 322.5 MB, free: 14.82 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002787/0.166, allocations: 1.118 MB / 323.6 MB, free: 13.75 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002246/0.1682, allocations: 2.018 MB / 325.6 MB, free: 11.85 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001124/0.1683, allocations: 242.5 kB / 325.9 MB, free: 11.65 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003584/0.1687, allocations: 320.7 kB / 326.2 MB, free: 11.38 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005399/0.1741, allocations: 5.1 MB / 331.3 MB, free: 6.031 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.333e-05/0.1742, allocations: 45.69 kB / 331.3 MB, free: 6.008 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002541/0.1744, allocations: 157.4 kB / 331.5 MB, free: 5.891 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001445/0.1759, allocations: 1.764 MB / 333.2 MB, free: 4.152 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003881/0.1797, allocations: 2.594 MB / 335.8 MB, free: 1.742 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02233/0.2021, allocations: 31.51 MB / 367.3 MB, free: 2.059 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004276/0.2063, allocations: 1.941 MB / 369.3 MB, free: 80 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004963/0.2068, allocations: 432.1 kB / 369.7 MB, free: 15.64 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004213/0.211, allocations: 3.567 MB / 373.3 MB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.099e-05/0.2111, allocations: 47.5 kB / 373.3 MB, free: 12 MB / 330.7 MB Notification: Performance of pre-optimization done (n=145): time 3.206e-06/0.2111, allocations: 0 / 373.3 MB, free: 12 MB / 330.7 MB Notification: Performance of matching and sorting (n=150): time 0.01333/0.2244, allocations: 5.711 MB / 379 MB, free: 6.25 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.991e-05/0.2245, allocations: 175.2 kB / 379.2 MB, free: 6.043 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002561/0.227, allocations: 3.297 MB / 382.5 MB, free: 2.75 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.779e-05/0.2271, allocations: 49.69 kB / 382.5 MB, free: 2.695 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001197/0.2283, allocations: 3.15 MB / 385.7 MB, free: 15.51 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003321/0.2286, allocations: 0.6203 MB / 386.3 MB, free: 14.88 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008632/0.2295, allocations: 1.172 MB / 387.5 MB, free: 13.7 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.246e-05/0.2296, allocations: 305.1 kB / 387.8 MB, free: 13.4 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001089/0.2306, allocations: 0.7587 MB / 388.5 MB, free: 12.63 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002616/0.2333, allocations: 4.487 MB / 393 MB, free: 6.207 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004007/0.2373, allocations: 5.773 MB / 398.8 MB, free: 14.51 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.533e-05/0.2373, allocations: 40 kB / 398.8 MB, free: 14.47 MB / 362.7 MB Notification: Performance of matching and sorting (n=805) (initialization): time 0.004655/0.242, allocations: 4.25 MB / 403.1 MB, free: 10.21 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.62e-05/0.242, allocations: 67.94 kB / 403.1 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.632e-05/0.2421, allocations: 136 kB / 403.3 MB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007546/0.2429, allocations: 367.4 kB / 403.6 MB, free: 9.648 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00214/0.245, allocations: 1.365 MB / 405 MB, free: 8.281 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001964/0.247, allocations: 2.191 MB / 407.2 MB, free: 5.996 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002048/0.249, allocations: 275.7 kB / 407.5 MB, free: 5.727 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002687/0.2493, allocations: 324 kB / 407.8 MB, free: 5.41 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * 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 (762): * Single equations (assignments): 756 * 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,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001031/0.2503, allocations: 0.6274 MB / 408.4 MB, free: 4.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002929/0.2506, allocations: 207.8 kB / 408.6 MB, free: 4.566 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001206/0.2518, allocations: 0.8823 MB / 409.5 MB, free: 3.668 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-05/0.2518, allocations: 23.92 kB / 409.5 MB, free: 3.645 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.2518, allocations: 4 kB / 409.5 MB, free: 3.641 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.2519, allocations: 7.969 kB / 409.5 MB, free: 3.633 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004871/0.2567, allocations: 3.99 MB / 413.5 MB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.724e-06/0.2567, allocations: 8 kB / 413.5 MB, free: 15.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004975/0.2572, allocations: 215.7 kB / 413.7 MB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007532/0.258, allocations: 373.8 kB / 414.1 MB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.593e-05/0.258, allocations: 32 kB / 414.1 MB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001627/0.2597, allocations: 1.928 MB / 416.1 MB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.2597, allocations: 11.94 kB / 416.1 MB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001757/0.2614, allocations: 1.817 MB / 417.9 MB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00032/0.2618, allocations: 313.5 kB / 418.2 MB, free: 10.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001959/0.262, allocations: 28 kB / 418.2 MB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005334/0.2625, allocations: 32 kB / 418.3 MB, free: 10.54 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/0.2626, allocations: 100.4 kB / 418.3 MB, free: 10.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.028e-05/0.2627, allocations: 40 kB / 418.4 MB, free: 10.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009422/0.2636, allocations: 1.19 MB / 419.6 MB, free: 9.227 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2636, allocations: 4 kB / 419.6 MB, free: 9.223 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002679/0.2663, allocations: 1.004 MB / 420.6 MB, free: 8.219 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * 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 (120): * Single equations (assignments): 116 * 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 {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000296/0.2666, allocations: 167.9 kB / 420.7 MB, free: 8.043 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002569/0.2692, allocations: 2.502 MB / 423.3 MB, free: 5.551 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001478/0.2693, allocations: 104.2 kB / 423.4 MB, free: 5.438 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005481/0.2698, allocations: 0.5147 MB / 423.9 MB, free: 4.906 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001489/0.2713, allocations: 0.6078 MB / 424.5 MB, free: 4.305 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008002/0.2793, allocations: 7.517 MB / 432 MB, free: 12.61 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001015/0.2804, allocations: 1.249 MB / 433.2 MB, free: 11.33 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001102/0.2815, allocations: 495.2 kB / 433.7 MB, free: 10.85 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006997/0.2822, allocations: 0.509 MB / 434.2 MB, free: 10.34 MB / 394.7 MB Notification: Performance of SimCode: time 1.643e-06/0.2822, allocations: 3.938 kB / 434.2 MB, free: 10.33 MB / 394.7 MB Notification: Performance of Templates: time 0.1382/0.4203, allocations: 29.3 MB / 463.5 MB, free: 124.2 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.5204116101376712]