Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001008/0.001008, allocations: 80.8 kB / 22.28 MB, free: 2.207 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.0009838/0.0009838, allocations: 165.7 kB / 25.69 MB, free: 8.422 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9558/0.9558, allocations: 158.6 MB / 187.6 MB, free: 2.797 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 251.6 MB, free: 7.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.871e-05/2.016e-05, allocations: 2.312 kB / 251.6 MB, free: 7.207 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01176/0.01178, allocations: 11.86 MB / 263.4 MB, free: 11.29 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007654/0.01943, allocations: 4.243 MB / 267.7 MB, free: 7.035 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001808/0.02124, allocations: 87.62 kB / 267.8 MB, free: 6.949 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004086/0.02533, allocations: 3.418 MB / 271.2 MB, free: 3.52 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0045/0.02983, allocations: 2.197 MB / 273.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001721/0.03155, allocations: 0.9081 MB / 274.3 MB, free: 412 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.005588/0.03714, allocations: 4.914 MB / 279.2 MB, free: 11.48 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003413/0.04055, allocations: 3.557 MB / 282.8 MB, free: 7.832 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003536/0.04409, allocations: 2.963 MB / 285.7 MB, free: 4.863 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002685/0.04677, allocations: 2.385 MB / 288.1 MB, free: 2.473 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006464/0.04742, allocations: 392 kB / 288.5 MB, free: 2.09 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001711/0.04913, allocations: 1.268 MB / 289.8 MB, free: 0.8203 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001533/0.05066, allocations: 2.377 MB / 292.1 MB, free: 14.44 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001996/0.05266, allocations: 1.476 MB / 293.6 MB, free: 12.96 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00519/0.05785, allocations: 5.394 MB / 299 MB, free: 7.543 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.05785, allocations: 0 / 299 MB, free: 7.543 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.05785, allocations: 0 / 299 MB, free: 7.543 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001669/0.05802, allocations: 0 / 299 MB, free: 7.543 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.00716/0.06518, allocations: 5.152 MB / 304.2 MB, free: 2.336 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.06522, allocations: 11.98 kB / 304.2 MB, free: 2.324 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003174/0.06839, allocations: 1.249 MB / 305.4 MB, free: 1.074 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002933/0.07133, allocations: 2.166 MB / 307.6 MB, free: 14.85 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001277/0.07146, allocations: 266.9 kB / 307.8 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003721/0.07183, allocations: 351.8 kB / 308.2 MB, free: 14.24 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007085/0.07891, allocations: 5.571 MB / 313.8 MB, free: 7.949 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.468e-05/0.079, allocations: 39.64 kB / 313.8 MB, free: 7.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002992/0.0793, allocations: 167.8 kB / 314 MB, free: 7.746 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001667/0.08096, allocations: 2.054 MB / 316 MB, free: 5.691 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005869/0.08683, allocations: 2.885 MB / 318.9 MB, free: 2.766 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1493/0.2362, allocations: 33.88 MB / 352.8 MB, free: 86.82 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005068/0.2412, allocations: 2.085 MB / 354.9 MB, free: 86.62 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007927/0.242, allocations: 0.4895 MB / 355.4 MB, free: 86.57 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005882/0.2479, allocations: 3.921 MB / 359.3 MB, free: 85.93 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.664e-05/0.2479, allocations: 54.88 kB / 359.3 MB, free: 85.89 MB / 330.7 MB Notification: Performance of pre-optimization done (n=184): time 4.789e-06/0.2479, allocations: 0.5 kB / 359.3 MB, free: 85.89 MB / 330.7 MB Notification: Performance of matching and sorting (n=189): time 0.01583/0.2638, allocations: 6.297 MB / 365.6 MB, free: 85.59 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.933e-05/0.2638, allocations: 178.2 kB / 365.8 MB, free: 85.41 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003379/0.2672, allocations: 3.442 MB / 369.3 MB, free: 84.92 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001822/0.2674, allocations: 50.45 kB / 369.3 MB, free: 84.89 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00127/0.2687, allocations: 3.417 MB / 372.7 MB, free: 82.75 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000587/0.2692, allocations: 0.7553 MB / 373.5 MB, free: 82.32 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001143/0.2704, allocations: 1.271 MB / 374.7 MB, free: 82.01 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.087e-05/0.2704, allocations: 308.9 kB / 375 MB, free: 81.71 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001382/0.2718, allocations: 0.848 MB / 375.9 MB, free: 81.11 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00232/0.2741, allocations: 4.8 MB / 380.7 MB, free: 74.75 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003892/0.278, allocations: 6.215 MB / 386.9 MB, free: 67.29 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001066/0.2781, allocations: 40 kB / 386.9 MB, free: 67.25 MB / 330.7 MB Notification: Performance of matching and sorting (n=877) (initialization): time 0.006099/0.2842, allocations: 4.6 MB / 391.5 MB, free: 62.91 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.422e-05/0.2843, allocations: 68 kB / 391.6 MB, free: 62.85 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001092/0.2844, allocations: 144 kB / 391.8 MB, free: 62.71 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000912/0.2853, allocations: 375.1 kB / 392.1 MB, free: 62.35 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002951/0.2883, allocations: 1.57 MB / 393.7 MB, free: 60.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001859/0.2901, allocations: 2.211 MB / 395.9 MB, free: 58.6 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00334/0.2935, allocations: 287.7 kB / 396.2 MB, free: 58.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004574/0.2939, allocations: 349.8 kB / 396.5 MB, free: 57.98 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 657 * Number of states: 0 () * Number of discrete variables: 42 (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 (834): * Single equations (assignments): 828 * 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.001508/0.2954, allocations: 0.6701 MB / 397.2 MB, free: 57.3 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005149/0.2959, allocations: 231.8 kB / 397.4 MB, free: 57.07 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001466/0.2974, allocations: 1.132 MB / 398.6 MB, free: 55.92 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.056e-05/0.2974, allocations: 20.88 kB / 398.6 MB, free: 55.9 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.2974, allocations: 4 kB / 398.6 MB, free: 55.9 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/0.2975, allocations: 7.969 kB / 398.6 MB, free: 55.89 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00656/0.304, allocations: 4.61 MB / 403.2 MB, free: 51.15 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.448e-06/0.304, allocations: 4 kB / 403.2 MB, free: 51.15 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008366/0.3049, allocations: 307.5 kB / 403.5 MB, free: 50.85 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007948/0.3057, allocations: 388.9 kB / 403.9 MB, free: 50.47 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001198/0.3058, allocations: 39.94 kB / 403.9 MB, free: 50.43 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001455/0.3072, allocations: 1.923 MB / 405.8 MB, free: 48.41 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.3072, allocations: 14.12 kB / 405.9 MB, free: 48.4 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002649/0.3099, allocations: 2.119 MB / 408 MB, free: 46.16 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008558/0.3107, allocations: 477.3 kB / 408.4 MB, free: 45.7 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002682/0.311, allocations: 39.94 kB / 408.5 MB, free: 45.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007046/0.3117, allocations: 39.92 kB / 408.5 MB, free: 45.62 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000172/0.3119, allocations: 124.7 kB / 408.6 MB, free: 45.49 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.277e-05/0.312, allocations: 47.98 kB / 408.7 MB, free: 45.45 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001138/0.3131, allocations: 1.25 MB / 409.9 MB, free: 44.21 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3131, allocations: 0 / 409.9 MB, free: 44.21 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003733/0.3168, allocations: 1.144 MB / 411.1 MB, free: 43.07 MB / 330.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 (161): * Single equations (assignments): 157 * 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.0003961/0.3172, allocations: 183.9 kB / 411.3 MB, free: 42.88 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003316/0.3205, allocations: 2.772 MB / 414 MB, free: 40.13 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001507/0.3207, allocations: 104.2 kB / 414.1 MB, free: 40.02 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007938/0.3215, allocations: 0.6292 MB / 414.8 MB, free: 39.38 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002486/0.324, allocations: 0.6595 MB / 415.4 MB, free: 38.73 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01161/0.3356, allocations: 8.412 MB / 423.8 MB, free: 30.14 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001125/0.3367, allocations: 1.4 MB / 425.2 MB, free: 28.71 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001571/0.3383, allocations: 0.528 MB / 425.8 MB, free: 28.18 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008301/0.3391, allocations: 0.5558 MB / 426.3 MB, free: 27.62 MB / 330.7 MB Notification: Performance of SimCode: time 2.214e-06/0.3391, allocations: 0 / 426.3 MB, free: 27.62 MB / 330.7 MB Notification: Performance of Templates: time 0.04881/0.3879, allocations: 33.04 MB / 459.4 MB, free: 10.62 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.654473192989826]