Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.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.002018/0.002018, allocations: 85.28 kB / 20.68 MB, free: 1.035 MB / 14.72 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.002441/0.002441, allocations: 164.9 kB / 23.95 MB, free: 4.168 MB / 14.72 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 1.397/1.397, allocations: 177.1 MB / 204.3 MB, free: 9.195 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2012/0.2012, allocations: 32.81 MB / 293.5 MB, free: 60 kB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.MultiBody.Joints.Spherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical") translateModel(ModelicaTest.MultiBody.Joints.Spherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 8.12e-07/8.12e-07, allocations: 0 / 440.1 MB, free: 8.188 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.956e-05/2.037e-05, allocations: 4.953 kB / 440.1 MB, free: 8.184 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.1925/0.1925, allocations: 10.26 MB / 450.4 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006371/0.1989, allocations: 3.873 MB / 454.2 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009812/0.1998, allocations: 68.22 kB / 454.3 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002053/0.2019, allocations: 1.212 MB / 455.5 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003423/0.2053, allocations: 1.83 MB / 457.3 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001292/0.2066, allocations: 0.5989 MB / 457.9 MB, free: 13 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005409/0.212, allocations: 4.708 MB / 462.6 MB, free: 11.39 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002745/0.2148, allocations: 2.175 MB / 464.8 MB, free: 10.52 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002619/0.2174, allocations: 1.862 MB / 466.7 MB, free: 9.754 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00259/0.22, allocations: 2.072 MB / 468.8 MB, free: 8.637 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004233/0.2204, allocations: 224.5 kB / 469 MB, free: 8.637 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002478/0.2229, allocations: 1.248 MB / 470.2 MB, free: 8.121 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001372/0.2242, allocations: 1.686 MB / 471.9 MB, free: 7.152 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001315/0.2256, allocations: 0.9726 MB / 472.9 MB, free: 6.598 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006129/0.2317, allocations: 6.228 MB / 479.1 MB, free: 2.457 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.2317, allocations: 3.188 kB / 479.1 MB, free: 2.457 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.2317, allocations: 3.984 kB / 479.1 MB, free: 2.453 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.024e-05/0.2318, allocations: 0 / 479.1 MB, free: 2.453 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1482 * Number of variables: 1482 Notification: Performance of Generate backend data structure: time 0.006941/0.2387, allocations: 4.182 MB / 483.3 MB, free: 14.76 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.2388, allocations: 12.03 kB / 483.3 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02077/0.2595, allocations: 6.214 MB / 489.5 MB, free: 8.523 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004742/0.2643, allocations: 2.023 MB / 491.5 MB, free: 6.465 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001618/0.2644, allocations: 180.8 kB / 491.7 MB, free: 6.285 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001006/0.2654, allocations: 316.8 kB / 492 MB, free: 5.977 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01733/0.2828, allocations: 10.73 MB / 0.491 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.467e-05/0.2828, allocations: 19.81 kB / 0.491 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003558/0.2832, allocations: 111.8 kB / 0.4911 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003926/0.2871, allocations: 2.463 MB / 0.4935 GB, free: 8.191 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01904/0.3062, allocations: 10.17 MB / 0.5034 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04861/0.3548, allocations: 33.32 MB / 0.536 GB, free: 11.85 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01179/0.3666, allocations: 4.593 MB / 0.5405 GB, free: 7.246 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004651/0.3712, allocations: 2.188 MB / 0.5426 GB, free: 5.055 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001746/0.373, allocations: 0.5441 MB / 0.5431 GB, free: 4.512 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.251e-05/0.373, allocations: 52.56 kB / 0.5432 GB, free: 4.449 MB / 446.1 MB Notification: Performance of pre-optimization done (n=224): time 6.733e-06/0.373, allocations: 0 / 0.5432 GB, free: 4.449 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.05433/0.4274, allocations: 15.16 MB / 0.558 GB, free: 5.234 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001938/0.4293, allocations: 1.485 MB / 0.5594 GB, free: 3.629 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007159/0.4365, allocations: 2.973 MB / 0.5623 GB, free: 0.6328 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005414/0.437, allocations: 53.7 kB / 0.5624 GB, free: 0.5742 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003302/0.4403, allocations: 2.776 MB / 0.5651 GB, free: 13.77 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00156/0.4419, allocations: 0.8837 MB / 0.566 GB, free: 12.88 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002949/0.4448, allocations: 1.104 MB / 0.567 GB, free: 11.76 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000359/0.4452, allocations: 305.1 kB / 0.5673 GB, free: 11.46 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005846/0.451, allocations: 2.853 MB / 0.5701 GB, free: 8.598 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007302/0.4583, allocations: 5.851 MB / 0.5758 GB, free: 1.277 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01229/0.4706, allocations: 9.359 MB / 0.585 GB, free: 6.449 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.145e-05/0.4707, allocations: 35.62 kB / 0.585 GB, free: 6.418 MB / 494.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.09526/0.566, allocations: 33.35 MB / 0.6176 GB, free: 5.004 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.369e-05/0.566, allocations: 48 kB / 0.6176 GB, free: 4.957 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.2512/0.8173, allocations: 23.38 MB / 0.6405 GB, free: 169.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07049/0.8878, allocations: 23.34 MB / 0.6633 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004192/0.892, allocations: 1.314 MB / 0.6645 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03418/0.9262, allocations: 27.2 MB / 0.6911 GB, free: 144.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005098/0.9313, allocations: 0.5501 MB / 0.6916 GB, free: 143.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001005/0.9323, allocations: 322.1 kB / 0.6919 GB, free: 143.6 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 476 * Number of states: 0 () * Number of discrete variables: 24 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[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],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (661): * Single equations (assignments): 650 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.002898/0.9352, allocations: 2.029 MB / 0.6939 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005952/0.9357, allocations: 274.7 kB / 0.6942 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007077/0.9428, allocations: 5.097 MB / 0.6992 GB, free: 136.4 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005924/0.9488, allocations: 4.398 MB / 0.7035 GB, free: 132 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/0.9488, allocations: 3.984 kB / 0.7035 GB, free: 132 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.478e-05/0.9488, allocations: 11.91 kB / 0.7035 GB, free: 132 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0149/0.9637, allocations: 11.59 MB / 0.7148 GB, free: 120.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/0.9637, allocations: 4 kB / 0.7148 GB, free: 120.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001809/0.9655, allocations: 459.2 kB / 0.7152 GB, free: 119.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002555/0.968, allocations: 0.9361 MB / 0.7161 GB, free: 119 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001432/0.9682, allocations: 47.98 kB / 0.7162 GB, free: 118.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004782/0.973, allocations: 5.566 MB / 0.7216 GB, free: 113.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006198/0.9736, allocations: 1.424 MB / 0.723 GB, free: 111.7 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008496/0.9821, allocations: 7.702 MB / 0.7305 GB, free: 104 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005591/0.9826, allocations: 279.2 kB / 0.7308 GB, free: 103.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003366/0.983, allocations: 47.73 kB / 0.7309 GB, free: 103.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001535/0.9845, allocations: 239.5 kB / 0.7311 GB, free: 103.6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003503/0.9849, allocations: 152.8 kB / 0.7312 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001475/0.985, allocations: 67.27 kB / 0.7313 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001709/0.9867, allocations: 1.727 MB / 0.733 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/0.9867, allocations: 0 / 0.733 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003843/0.9906, allocations: 1.228 MB / 0.7342 GB, free: 100.5 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (170): * Single equations (assignments): 161 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004939/0.9911, allocations: 198.8 kB / 0.7344 GB, free: 100.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009231/1, allocations: 6.837 MB / 0.741 GB, free: 93.47 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.093e-05/1, allocations: 0 / 0.741 GB, free: 93.47 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002808/1.003, allocations: 2.299 MB / 0.7433 GB, free: 91.14 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001943/1.005, allocations: 299.2 kB / 0.7436 GB, free: 90.86 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01171/1.017, allocations: 9.994 MB / 0.7533 GB, free: 80.77 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002328/1.019, allocations: 2.617 MB / 0.7559 GB, free: 78.12 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003208/1.022, allocations: 2.054 MB / 0.7579 GB, free: 76.05 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006745/1.023, allocations: 208.4 kB / 0.7581 GB, free: 75.85 MB / 0.5294 GB Notification: Performance of SimCode: time 6.81e-07/1.023, allocations: 0 / 0.7581 GB, free: 75.85 MB / 0.5294 GB Notification: Performance of Templates: time 0.05861/1.082, allocations: 46.79 MB / 0.8038 GB, free: 29.35 MB / 0.5294 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.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.809148225933313]