Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.001103/0.001103, allocations: 76.06 kB / 20.72 MB, free: 3.766 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.001085/0.001085, allocations: 173 kB / 24.14 MB, free: 356 kB / 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.9778/0.9778, allocations: 158.6 MB / 186 MB, free: 2.773 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1502/0.1502, allocations: 32.38 MB / 270.7 MB, free: 14.61 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 299.1 MB, free: 2.184 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.907e-05/3.055e-05, allocations: 2.312 kB / 299.1 MB, free: 2.18 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.1606/0.1607, allocations: 11.47 MB / 310.6 MB, free: 14.17 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.009194/0.1699, allocations: 4.365 MB / 314.9 MB, free: 11.42 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002508/0.1724, allocations: 96.56 kB / 315 MB, free: 11.39 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004076/0.1765, allocations: 2.892 MB / 317.9 MB, free: 9.824 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005038/0.1815, allocations: 2.133 MB / 320.1 MB, free: 8.277 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001707/0.1832, allocations: 1.036 MB / 321.1 MB, free: 7.566 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.005334/0.1885, allocations: 5.921 MB / 327 MB, free: 2.258 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002869/0.1914, allocations: 3.315 MB / 330.3 MB, free: 14.88 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003856/0.1953, allocations: 3.204 MB / 333.5 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003359/0.1986, allocations: 2.708 MB / 336.2 MB, free: 8.949 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009249/0.1995, allocations: 396 kB / 336.6 MB, free: 8.562 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002091/0.2016, allocations: 1.4 MB / 338 MB, free: 7.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001881/0.2035, allocations: 2.392 MB / 340.4 MB, free: 4.762 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002062/0.2056, allocations: 1.472 MB / 341.9 MB, free: 3.285 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0066/0.2122, allocations: 5.411 MB / 347.3 MB, free: 13.85 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.2122, allocations: 4 kB / 347.3 MB, free: 13.85 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2122, allocations: 0 / 347.3 MB, free: 13.85 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002931/0.2125, allocations: 0 / 347.3 MB, free: 13.85 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.00864/0.2211, allocations: 5.025 MB / 352.3 MB, free: 8.762 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.2212, allocations: 12.02 kB / 352.3 MB, free: 8.75 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003493/0.2246, allocations: 1.235 MB / 353.6 MB, free: 7.516 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003085/0.2277, allocations: 2.341 MB / 355.9 MB, free: 5.117 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001206/0.2279, allocations: 242.5 kB / 356.2 MB, free: 4.879 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00049/0.2283, allocations: 324.3 kB / 356.5 MB, free: 4.562 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00661/0.235, allocations: 5.293 MB / 361.8 MB, free: 14.51 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001172/0.2351, allocations: 51.61 kB / 361.8 MB, free: 14.46 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002988/0.2354, allocations: 155.9 kB / 362 MB, free: 14.31 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001528/0.2369, allocations: 1.787 MB / 363.8 MB, free: 12.52 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006596/0.2435, allocations: 2.793 MB / 366.5 MB, free: 9.695 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02904/0.2725, allocations: 32.15 MB / 398.7 MB, free: 8.398 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003946/0.2765, allocations: 1.796 MB / 400.5 MB, free: 6.562 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006068/0.2771, allocations: 387 kB / 400.9 MB, free: 6.172 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006402/0.2835, allocations: 4.2 MB / 405.1 MB, free: 1.941 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.008e-05/0.2835, allocations: 55.44 kB / 405.1 MB, free: 1.879 MB / 362.7 MB Notification: Performance of pre-optimization done (n=163): time 4.579e-06/0.2835, allocations: 0 / 405.1 MB, free: 1.879 MB / 362.7 MB Notification: Performance of matching and sorting (n=200): time 0.02031/0.3038, allocations: 7.683 MB / 412.8 MB, free: 10.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.866e-05/0.3039, allocations: 209.1 kB / 413 MB, free: 9.961 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003835/0.3078, allocations: 3.408 MB / 416.4 MB, free: 6.566 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002088/0.308, allocations: 49.7 kB / 416.5 MB, free: 6.512 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001525/0.3095, allocations: 3.121 MB / 419.6 MB, free: 3.355 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006141/0.3101, allocations: 0.7906 MB / 420.4 MB, free: 2.559 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001101/0.3112, allocations: 1.216 MB / 421.6 MB, free: 1.332 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.095e-05/0.3113, allocations: 301.1 kB / 421.9 MB, free: 1.035 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001405/0.3127, allocations: 0.8847 MB / 422.8 MB, free: 148 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002937/0.3156, allocations: 4.605 MB / 427.4 MB, free: 9.637 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004751/0.3204, allocations: 5.978 MB / 433.4 MB, free: 1.762 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.398e-05/0.3205, allocations: 39.94 kB / 433.4 MB, free: 1.723 MB / 394.7 MB Notification: Performance of matching and sorting (n=843) (initialization): time 0.007766/0.3282, allocations: 4.885 MB / 438.3 MB, free: 12.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.019e-05/0.3283, allocations: 60 kB / 438.3 MB, free: 12.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001439/0.3285, allocations: 136 kB / 438.5 MB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00244/0.3309, allocations: 0.9639 MB / 439.4 MB, free: 11.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003033/0.3339, allocations: 1.508 MB / 440.9 MB, free: 10.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004993/0.3389, allocations: 4.686 MB / 445.6 MB, free: 5.266 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003431/0.3423, allocations: 287.7 kB / 445.9 MB, free: 4.984 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006019/0.343, allocations: 324 kB / 446.2 MB, free: 4.668 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 609 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (791): * Single equations (assignments): 786 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 0 systems * Non-linear Jacobian (size): 1 system {1} * 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,26,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001638/0.3446, allocations: 0.6379 MB / 446.9 MB, free: 4.016 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005961/0.3452, allocations: 243.7 kB / 447.1 MB, free: 3.777 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00304/0.3482, allocations: 1.655 MB / 448.8 MB, free: 2.105 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.291e-05/0.3482, allocations: 24 kB / 448.8 MB, free: 2.082 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.669e-06/0.3483, allocations: 7.938 kB / 448.8 MB, free: 2.074 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/0.3483, allocations: 7.969 kB / 448.8 MB, free: 2.066 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008619/0.3569, allocations: 4.883 MB / 453.7 MB, free: 13.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.217e-05/0.3569, allocations: 8 kB / 453.7 MB, free: 13.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001385/0.3583, allocations: 491.4 kB / 454.2 MB, free: 12.56 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001965/0.3603, allocations: 0.7408 MB / 454.9 MB, free: 11.81 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001539/0.3604, allocations: 36 kB / 454.9 MB, free: 11.78 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004483/0.3649, allocations: 4.087 MB / 459 MB, free: 7.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.696e-06/0.3649, allocations: 11.94 kB / 459 MB, free: 7.488 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004692/0.3696, allocations: 2.544 MB / 461.6 MB, free: 4.84 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001269/0.3709, allocations: 0.5207 MB / 462.1 MB, free: 4.316 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004214/0.3713, allocations: 43.92 kB / 462.1 MB, free: 4.273 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008029/0.3721, allocations: 44.03 kB / 462.2 MB, free: 4.23 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002732/0.3724, allocations: 140.6 kB / 462.3 MB, free: 4.09 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.563e-05/0.3724, allocations: 48 kB / 462.4 MB, free: 4.043 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001538/0.374, allocations: 1.273 MB / 463.6 MB, free: 2.789 MB / 426.7 MB Notification: Performance of sort global known variables: time 7e-08/0.374, allocations: 0 / 463.6 MB, free: 2.789 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004137/0.3781, allocations: 1.219 MB / 464.9 MB, free: 1.57 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 2 (j1.phi,j1.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 (153): * Single equations (assignments): 148 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 0 systems * Non-linear Jacobian (size): 1 system {1} * 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,21,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004545/0.3786, allocations: 183.9 kB / 465 MB, free: 1.383 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.1371/0.5157, allocations: 2.887 MB / 467.9 MB, free: 135.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0004153/0.5161, allocations: 100.4 kB / 468 MB, free: 135.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0015/0.5176, allocations: 0.7636 MB / 468.8 MB, free: 135.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003583/0.5212, allocations: 0.6668 MB / 469.5 MB, free: 135.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01332/0.5345, allocations: 8.176 MB / 477.6 MB, free: 131.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001533/0.536, allocations: 1.332 MB / 479 MB, free: 131.7 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001753/0.5378, allocations: 0.5287 MB / 479.5 MB, free: 131.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009541/0.5387, allocations: 0.5881 MB / 480.1 MB, free: 131.6 MB / 426.7 MB Notification: Performance of SimCode: time 1.844e-06/0.5387, allocations: 0 / 480.1 MB, free: 131.6 MB / 426.7 MB Notification: Performance of Templates: time 0.05412/0.5928, allocations: 42.91 MB / 0.5107 GB, free: 97.99 MB / 426.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.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: 4.105094557162374]