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.002517/0.002517, allocations: 99.53 kB / 21.73 MB, free: 2.691 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.002924/0.002924, allocations: 157.8 kB / 25.03 MB, free: 8.93 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 1.327/1.327, allocations: 158.6 MB / 186.8 MB, free: 2.914 MB / 170.7 MB " [Timeout remaining time 178] 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.392e-06/1.392e-06, allocations: 0 / 250.4 MB, free: 7.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.459e-05/2.598e-05, allocations: 2.312 kB / 250.4 MB, free: 7.816 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01785/0.01788, allocations: 12.1 MB / 262.5 MB, free: 11.66 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01016/0.02804, allocations: 4.097 MB / 266.6 MB, free: 7.547 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001883/0.02992, allocations: 87.62 kB / 266.7 MB, free: 7.461 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007599/0.03752, allocations: 3.473 MB / 270.1 MB, free: 3.977 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006745/0.04427, allocations: 2.228 MB / 272.4 MB, free: 1.738 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002576/0.04684, allocations: 0.8965 MB / 273.3 MB, free: 0.8398 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.008579/0.05542, allocations: 4.949 MB / 278.2 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006268/0.06169, allocations: 3.587 MB / 281.8 MB, free: 8.227 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0053/0.06699, allocations: 2.666 MB / 284.5 MB, free: 5.555 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005139/0.07213, allocations: 2.533 MB / 287 MB, free: 3.016 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001376/0.07351, allocations: 396 kB / 287.4 MB, free: 2.629 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003159/0.07666, allocations: 1.229 MB / 288.6 MB, free: 1.398 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003155/0.07982, allocations: 2.392 MB / 291 MB, free: 15 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00282/0.08264, allocations: 1.472 MB / 292.5 MB, free: 13.52 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01239/0.09503, allocations: 8.36 MB / 300.8 MB, free: 5.137 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.09504, allocations: 0 / 300.8 MB, free: 5.137 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.09504, allocations: 0 / 300.8 MB, free: 5.137 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002431/0.09528, allocations: 0 / 300.8 MB, free: 5.137 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.01494/0.1102, allocations: 6.509 MB / 307.3 MB, free: 14.56 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.1103, allocations: 11.98 kB / 307.4 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01151/0.1218, allocations: 2.779 MB / 310.1 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007561/0.1293, allocations: 2.672 MB / 312.8 MB, free: 9.039 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002795/0.1296, allocations: 270.9 kB / 313.1 MB, free: 8.773 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008678/0.1305, allocations: 355.8 kB / 313.4 MB, free: 8.426 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01824/0.1487, allocations: 7.418 MB / 320.8 MB, free: 40 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001689/0.1489, allocations: 47.67 kB / 320.9 MB, free: 15.99 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005732/0.1495, allocations: 167.8 kB / 321 MB, free: 15.82 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004778/0.1542, allocations: 2.338 MB / 323.4 MB, free: 13.49 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01492/0.1692, allocations: 4.267 MB / 327.6 MB, free: 9.207 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1783/0.3475, allocations: 52.9 MB / 380.5 MB, free: 58.52 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00992/0.3574, allocations: 2.975 MB / 383.5 MB, free: 58.36 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001621/0.359, allocations: 0.9391 MB / 384.5 MB, free: 58.3 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009565/0.3686, allocations: 5.073 MB / 389.5 MB, free: 56.27 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/0.3686, allocations: 70.94 kB / 389.6 MB, free: 56.21 MB / 330.7 MB Notification: Performance of pre-optimization done (n=216): time 4.869e-06/0.3686, allocations: 0 / 389.6 MB, free: 56.21 MB / 330.7 MB Notification: Performance of matching and sorting (n=237): time 0.04035/0.409, allocations: 15.2 MB / 404.8 MB, free: 43.09 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.936e-05/0.409, allocations: 184.2 kB / 405 MB, free: 42.88 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004561/0.4136, allocations: 4.667 MB / 409.6 MB, free: 38.38 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002777/0.4139, allocations: 61.7 kB / 409.7 MB, free: 38.32 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001625/0.4155, allocations: 3.927 MB / 413.6 MB, free: 34.52 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007607/0.4163, allocations: 1.015 MB / 414.7 MB, free: 33.52 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001798/0.4181, allocations: 1.765 MB / 416.4 MB, free: 31.74 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.82e-05/0.4181, allocations: 480.8 kB / 416.9 MB, free: 31.27 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001883/0.42, allocations: 0.9537 MB / 417.8 MB, free: 30.32 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003678/0.4237, allocations: 6.995 MB / 424.8 MB, free: 20.73 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006584/0.4303, allocations: 8.771 MB / 433.6 MB, free: 9.348 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001087/0.4304, allocations: 40 kB / 433.6 MB, free: 9.309 MB / 330.7 MB Notification: Performance of matching and sorting (n=893) (initialization): time 0.01301/0.4434, allocations: 6.702 MB / 440.3 MB, free: 2.598 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.436e-05/0.4435, allocations: 64 kB / 440.4 MB, free: 2.535 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.816e-05/0.4436, allocations: 136 kB / 440.5 MB, free: 2.402 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002636/0.4462, allocations: 0.8234 MB / 441.4 MB, free: 1.574 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00497/0.4512, allocations: 1.603 MB / 443 MB, free: 15.96 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007733/0.4589, allocations: 4.083 MB / 447.1 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005048/0.4639, allocations: 422.4 kB / 447.5 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001141/0.4651, allocations: 408 kB / 447.9 MB, free: 10.96 MB / 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: 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 (835): * Single equations (assignments): 829 * 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.002439/0.4675, allocations: 0.8029 MB / 448.7 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001259/0.4688, allocations: 433.3 kB / 449.1 MB, free: 9.723 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007126/0.4759, allocations: 2.527 MB / 451.6 MB, free: 7.176 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.612e-05/0.476, allocations: 28 kB / 451.6 MB, free: 7.148 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.476, allocations: 4 kB / 451.6 MB, free: 7.145 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-05/0.476, allocations: 11.95 kB / 451.7 MB, free: 7.133 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02097/0.497, allocations: 8.201 MB / 459.9 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.74e-05/0.497, allocations: 4.656 kB / 459.9 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002218/0.4992, allocations: 431.3 kB / 460.3 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002835/0.502, allocations: 0.6353 MB / 460.9 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003064/0.5024, allocations: 48 kB / 461 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007589/0.5099, allocations: 3.77 MB / 464.7 MB, free: 9.859 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.5099, allocations: 4 kB / 464.7 MB, free: 9.855 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009683/0.5196, allocations: 4.066 MB / 468.8 MB, free: 5.676 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002595/0.5222, allocations: 0.6746 MB / 469.5 MB, free: 5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000841/0.5231, allocations: 47.98 kB / 469.5 MB, free: 4.953 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002153/0.5252, allocations: 179.7 kB / 469.7 MB, free: 4.777 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004607/0.5257, allocations: 157.6 kB / 469.9 MB, free: 4.625 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002083/0.5259, allocations: 63.98 kB / 469.9 MB, free: 4.562 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004088/0.53, allocations: 1.911 MB / 471.8 MB, free: 2.668 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.53, allocations: 0 / 471.8 MB, free: 2.668 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006348/0.5363, allocations: 1.269 MB / 473.1 MB, free: 1.402 MB / 362.7 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 (198): * Single equations (assignments): 194 * 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.0006478/0.537, allocations: 214.2 kB / 473.3 MB, free: 1.188 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009237/0.5462, allocations: 4.131 MB / 477.4 MB, free: 13.06 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/0.5462, allocations: 0 / 477.4 MB, free: 13.06 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003655/0.5499, allocations: 1.415 MB / 478.9 MB, free: 11.63 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002927/0.5528, allocations: 426.5 kB / 479.3 MB, free: 11.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01766/0.5705, allocations: 9.195 MB / 488.5 MB, free: 1.859 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004525/0.575, allocations: 2.871 MB / 491.3 MB, free: 14.95 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.005125/0.5801, allocations: 1.785 MB / 493.1 MB, free: 13.16 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001073/0.5812, allocations: 260.4 kB / 493.4 MB, free: 12.9 MB / 394.7 MB Notification: Performance of SimCode: time 2.194e-06/0.5812, allocations: 4 kB / 493.4 MB, free: 12.9 MB / 394.7 MB Notification: Performance of Templates: time 0.182/0.7631, allocations: 38.04 MB / 0.519 GB, free: 127.1 MB / 394.7 MB " [Timeout remaining time 659] 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 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.571954761981033]