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.001109/0.001109, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001592/0.002701, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001064/0.001064, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001335/0.002399, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.9452/0.9452, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08669/1.032, allocations: 53.66 MB / 243.3 MB, free: 15.58 MB / 250.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.242e-06/1.242e-06, allocations: 0 / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.598e-05/1.722e-05, allocations: 2.312 kB / 244.5 MB, free: 14.31 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01099/0.01101, allocations: 10.73 MB / 255.3 MB, free: 3.535 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007086/0.01809, allocations: 4.141 MB / 259.4 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008756/0.01897, allocations: 83.62 kB / 259.5 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004224/0.02319, allocations: 3.235 MB / 262.7 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003305/0.0265, allocations: 1.967 MB / 264.7 MB, free: 10.07 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001337/0.02783, allocations: 0.8342 MB / 265.5 MB, free: 9.238 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004833/0.03267, allocations: 4.534 MB / 270.1 MB, free: 4.695 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002473/0.03514, allocations: 3.198 MB / 273.3 MB, free: 1.41 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.109/0.1442, allocations: 2.883 MB / 276.1 MB, free: 4.926 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003045/0.1472, allocations: 2.126 MB / 278.3 MB, free: 4.926 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008569/0.1481, allocations: 349.4 kB / 278.6 MB, free: 4.926 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002043/0.1501, allocations: 1.227 MB / 279.8 MB, free: 4.926 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001539/0.1517, allocations: 1.908 MB / 281.7 MB, free: 4.926 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001522/0.1532, allocations: 1.078 MB / 282.8 MB, free: 4.824 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00418/0.1574, allocations: 4.498 MB / 287.3 MB, free: 4.156 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.214e-05/0.1574, allocations: 0 / 287.3 MB, free: 4.156 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1574, allocations: 4.094 kB / 287.3 MB, free: 4.156 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001406/0.1575, allocations: 0 / 287.3 MB, free: 4.156 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.004724/0.1622, allocations: 5.679 MB / 293 MB, free: 2.055 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.612e-05/0.1623, allocations: 14.19 kB / 293 MB, free: 2.055 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002325/0.1646, allocations: 1.109 MB / 294.1 MB, free: 2.035 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00177/0.1664, allocations: 2.02 MB / 296.1 MB, free: 1.457 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.669e-05/0.1664, allocations: 245.4 kB / 296.4 MB, free: 1.449 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002782/0.1667, allocations: 321 kB / 296.7 MB, free: 1.445 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00412/0.1708, allocations: 5.098 MB / 301.8 MB, free: 14.58 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.491e-05/0.1709, allocations: 45.47 kB / 301.8 MB, free: 14.55 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002357/0.1711, allocations: 156.4 kB / 302 MB, free: 14.45 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001343/0.1725, allocations: 1.766 MB / 303.8 MB, free: 12.71 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003793/0.1763, allocations: 2.595 MB / 306.4 MB, free: 10.3 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01964/0.1959, allocations: 31.48 MB / 337.8 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003721/0.1996, allocations: 1.891 MB / 339.7 MB, free: 8.961 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004494/0.2001, allocations: 423.7 kB / 340.1 MB, free: 8.539 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003622/0.2037, allocations: 3.523 MB / 343.7 MB, free: 5.055 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.783e-05/0.2037, allocations: 48.95 kB / 343.7 MB, free: 5 MB / 314.7 MB Notification: Performance of pre-optimization done (n=145): time 2.855e-06/0.2037, allocations: 0 / 343.7 MB, free: 5 MB / 314.7 MB Notification: Performance of matching and sorting (n=150): time 0.01196/0.2157, allocations: 5.609 MB / 349.3 MB, free: 15.45 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.512e-05/0.2157, allocations: 143.3 kB / 349.5 MB, free: 15.29 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002119/0.2179, allocations: 3.304 MB / 352.8 MB, free: 12.59 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.66e-05/0.2179, allocations: 41.7 kB / 352.8 MB, free: 12.54 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001363/0.2193, allocations: 3.142 MB / 355.9 MB, free: 9.562 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003067/0.2196, allocations: 0.6253 MB / 356.6 MB, free: 8.969 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008309/0.2204, allocations: 1.172 MB / 357.7 MB, free: 7.926 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.841e-05/0.2205, allocations: 301.1 kB / 358 MB, free: 7.629 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009867/0.2215, allocations: 0.747 MB / 358.8 MB, free: 6.875 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002665/0.2241, allocations: 4.496 MB / 363.3 MB, free: 0.6758 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003544/0.2277, allocations: 5.774 MB / 369.1 MB, free: 9.43 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.225e-05/0.2277, allocations: 44 kB / 369.1 MB, free: 9.387 MB / 346.7 MB Notification: Performance of matching and sorting (n=805) (initialization): time 0.004167/0.2319, allocations: 4.25 MB / 373.4 MB, free: 5.125 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.909e-05/0.2319, allocations: 64 kB / 373.4 MB, free: 5.062 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.277e-05/0.232, allocations: 139.9 kB / 373.5 MB, free: 4.926 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006607/0.2327, allocations: 360 kB / 373.9 MB, free: 4.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002238/0.2349, allocations: 1.533 MB / 375.4 MB, free: 3.035 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001736/0.2366, allocations: 2.203 MB / 377.6 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001607/0.2382, allocations: 256.8 kB / 377.9 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000264/0.2385, allocations: 345.5 kB / 378.2 MB, free: 176 kB / 346.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.001006/0.2395, allocations: 0.6286 MB / 378.9 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002388/0.2398, allocations: 211.8 kB / 379.1 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001373/0.2411, allocations: 0.8705 MB / 379.9 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.494e-05/0.2411, allocations: 22.75 kB / 380 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.2411, allocations: 4 kB / 380 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.2412, allocations: 7.984 kB / 380 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004448/0.2456, allocations: 3.989 MB / 384 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-06/0.2456, allocations: 7.938 kB / 384 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005499/0.2462, allocations: 248.3 kB / 384.2 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002532/0.2464, allocations: 305.6 kB / 384.5 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006885/0.2471, allocations: 369.9 kB / 384.9 MB, free: 9.742 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.917e-05/0.2472, allocations: 39.98 kB / 384.9 MB, free: 9.703 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001776/0.2489, allocations: 1.922 MB / 386.8 MB, free: 7.688 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.2489, allocations: 11.94 kB / 386.8 MB, free: 7.676 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001673/0.2506, allocations: 1.818 MB / 388.7 MB, free: 5.734 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000194/0.2508, allocations: 36 kB / 388.7 MB, free: 5.699 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005384/0.2513, allocations: 31.94 kB / 388.7 MB, free: 5.668 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.2515, allocations: 100.4 kB / 388.8 MB, free: 5.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.722e-05/0.2515, allocations: 36 kB / 388.9 MB, free: 5.535 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009442/0.2525, allocations: 1.194 MB / 390 MB, free: 4.355 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2525, allocations: 0 / 390 MB, free: 4.355 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002712/0.2552, allocations: 1.008 MB / 391.1 MB, free: 3.348 MB / 362.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.0003023/0.2555, allocations: 175.9 kB / 391.2 MB, free: 3.168 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002445/0.2579, allocations: 2.501 MB / 393.7 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001695/0.2581, allocations: 111.8 kB / 393.8 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00085/0.2589, allocations: 0.5114 MB / 394.3 MB, free: 40 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001588/0.2605, allocations: 0.8382 MB / 395.2 MB, free: 15.21 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009308/0.2698, allocations: 7.701 MB / 402.9 MB, free: 7.332 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009879/0.2708, allocations: 1.263 MB / 404.2 MB, free: 6.039 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009986/0.2718, allocations: 495.2 kB / 404.6 MB, free: 5.555 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006789/0.2725, allocations: 0.5129 MB / 405.1 MB, free: 5.039 MB / 378.7 MB Notification: Performance of SimCode: time 7.52e-07/0.2725, allocations: 0 / 405.1 MB, free: 5.039 MB / 378.7 MB Notification: Performance of Templates: time 0.1445/0.417, allocations: 29.85 MB / 435 MB, free: 126.9 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 -ignoreHideResult -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.5598505875095725]