Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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.001431/0.001431, allocations: 80.8 kB / 21.5 MB, free: 2.996 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.001183/0.001183, allocations: 172.9 kB / 24.91 MB, free: 9.211 MB / 18.57 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.047/1.047, allocations: 177.1 MB / 205.3 MB, free: 5.52 MB / 186.7 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.2491/0.2491, allocations: 32.81 MB / 294.6 MB, free: 1.172 MB / 266.7 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.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 323.2 MB, free: 9.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.945e-05/2.076e-05, allocations: 5.406 kB / 323.3 MB, free: 9.676 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.008738/0.008758, allocations: 11.39 MB / 334.6 MB, free: 14.23 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.007488/0.01625, allocations: 4.383 MB / 339 MB, free: 9.832 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001194/0.01744, allocations: 91.5 kB / 339.1 MB, free: 9.742 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002832/0.02027, allocations: 2.877 MB / 342 MB, free: 6.855 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00307/0.02334, allocations: 2.096 MB / 344.1 MB, free: 4.75 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001336/0.02468, allocations: 1.029 MB / 345.1 MB, free: 3.719 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004713/0.02939, allocations: 6.401 MB / 351.5 MB, free: 13.31 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002557/0.03195, allocations: 3.291 MB / 354.8 MB, free: 9.949 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003372/0.03532, allocations: 3.532 MB / 358.3 MB, free: 6.41 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002708/0.03803, allocations: 2.701 MB / 361 MB, free: 3.703 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005823/0.03861, allocations: 392 kB / 361.4 MB, free: 3.32 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001711/0.04032, allocations: 1.396 MB / 362.8 MB, free: 1.922 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001405/0.04173, allocations: 2.353 MB / 365.2 MB, free: 15.56 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001265/0.04299, allocations: 1.449 MB / 366.6 MB, free: 14.11 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00396/0.04695, allocations: 5.345 MB / 372 MB, free: 8.746 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.04696, allocations: 0 / 372 MB, free: 8.746 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.04696, allocations: 0 / 372 MB, free: 8.746 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.85e-05/0.04702, allocations: 0 / 372 MB, free: 8.746 MB / 346.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.005358/0.05238, allocations: 5.003 MB / 377 MB, free: 3.684 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.05242, allocations: 8.031 kB / 377 MB, free: 3.676 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003018/0.05543, allocations: 1.245 MB / 378.2 MB, free: 2.43 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002465/0.0579, allocations: 2.286 MB / 380.5 MB, free: 88 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000122/0.05802, allocations: 242.5 kB / 380.7 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003838/0.0584, allocations: 332.3 kB / 381.1 MB, free: 15.52 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005255/0.06366, allocations: 5.285 MB / 386.4 MB, free: 9.477 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.585e-05/0.06374, allocations: 51.56 kB / 386.4 MB, free: 9.426 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002548/0.06399, allocations: 159.8 kB / 386.6 MB, free: 9.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001419/0.06541, allocations: 1.791 MB / 388.3 MB, free: 7.477 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004296/0.06971, allocations: 2.785 MB / 391.1 MB, free: 4.645 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02211/0.09182, allocations: 32.13 MB / 423.3 MB, free: 3.348 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003501/0.09532, allocations: 1.788 MB / 425.1 MB, free: 1.512 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004738/0.09579, allocations: 393.2 kB / 425.4 MB, free: 1.109 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004952/0.1007, allocations: 4.2 MB / 429.6 MB, free: 12.88 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.352e-05/0.1008, allocations: 47.56 kB / 429.7 MB, free: 12.83 MB / 410.7 MB Notification: Performance of pre-optimization done (n=163): time 3.076e-06/0.1008, allocations: 0 / 429.7 MB, free: 12.83 MB / 410.7 MB Notification: Performance of matching and sorting (n=200): time 0.01811/0.1189, allocations: 7.638 MB / 437.3 MB, free: 5.203 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.907e-05/0.119, allocations: 197.2 kB / 437.5 MB, free: 4.969 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002519/0.1215, allocations: 3.383 MB / 440.9 MB, free: 1.598 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.496e-05/0.1216, allocations: 49.7 kB / 440.9 MB, free: 1.543 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001276/0.1229, allocations: 3.121 MB / 444.1 MB, free: 14.38 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004286/0.1233, allocations: 0.7829 MB / 444.9 MB, free: 13.59 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009738/0.1243, allocations: 1.216 MB / 446.1 MB, free: 12.37 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.409e-05/0.1243, allocations: 309.1 kB / 446.4 MB, free: 12.06 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001288/0.1256, allocations: 0.8808 MB / 447.2 MB, free: 11.18 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002823/0.1284, allocations: 4.602 MB / 451.9 MB, free: 4.672 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1686/0.2971, allocations: 5.988 MB / 457.8 MB, free: 119.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.646e-05/0.2972, allocations: 39.16 kB / 457.9 MB, free: 119.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=843) (initialization): time 0.008204/0.3054, allocations: 4.886 MB / 462.8 MB, free: 118.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001013/0.3055, allocations: 61.88 kB / 462.8 MB, free: 118.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001719/0.3057, allocations: 133.7 kB / 463 MB, free: 118.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00227/0.3079, allocations: 0.9602 MB / 463.9 MB, free: 118.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002541/0.3105, allocations: 1.499 MB / 465.4 MB, free: 118.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004352/0.3148, allocations: 4.701 MB / 470.1 MB, free: 115.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002698/0.3175, allocations: 274.8 kB / 470.4 MB, free: 115.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003246/0.3178, allocations: 330.7 kB / 470.7 MB, free: 115.7 MB / 426.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.001434/0.3193, allocations: 0.6378 MB / 471.3 MB, free: 115.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004621/0.3197, allocations: 246.6 kB / 471.6 MB, free: 115.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00259/0.3223, allocations: 1.649 MB / 473.2 MB, free: 115.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.231e-05/0.3224, allocations: 22.5 kB / 473.3 MB, free: 115.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.298e-05/0.3224, allocations: 9.844 kB / 473.3 MB, free: 115.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.3224, allocations: 11.11 kB / 473.3 MB, free: 115.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006659/0.329, allocations: 4.859 MB / 478.1 MB, free: 112.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.558e-06/0.329, allocations: 8 kB / 478.1 MB, free: 112.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009368/0.33, allocations: 486.1 kB / 478.6 MB, free: 111.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001795/0.3318, allocations: 0.7413 MB / 479.4 MB, free: 111.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001307/0.3319, allocations: 42.73 kB / 479.4 MB, free: 111.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003341/0.3352, allocations: 4.091 MB / 483.5 MB, free: 107 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.3353, allocations: 8 kB / 483.5 MB, free: 107 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003178/0.3384, allocations: 2.536 MB / 486 MB, free: 104.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007922/0.3392, allocations: 352.2 kB / 486.4 MB, free: 104.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003689/0.3396, allocations: 35.94 kB / 486.4 MB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007387/0.3403, allocations: 43.98 kB / 486.5 MB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000238/0.3406, allocations: 132.6 kB / 486.6 MB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.92e-05/0.3406, allocations: 43.98 kB / 486.6 MB, free: 104 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001248/0.3419, allocations: 1.259 MB / 487.9 MB, free: 102.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3419, allocations: 0 / 487.9 MB, free: 102.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00351/0.3454, allocations: 1.187 MB / 489.1 MB, free: 101.8 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.0003797/0.3458, allocations: 174.7 kB / 489.2 MB, free: 101.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003511/0.3493, allocations: 2.904 MB / 492.2 MB, free: 98.78 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001945/0.3495, allocations: 100.2 kB / 492.2 MB, free: 98.67 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008464/0.3503, allocations: 0.7614 MB / 493 MB, free: 97.93 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002383/0.3527, allocations: 0.667 MB / 493.7 MB, free: 97.28 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009254/0.362, allocations: 8.148 MB / 0.4901 GB, free: 89.07 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00105/0.363, allocations: 1.326 MB / 0.4914 GB, free: 87.72 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001358/0.3644, allocations: 0.519 MB / 0.4919 GB, free: 87.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008004/0.3652, allocations: 0.5831 MB / 0.4924 GB, free: 86.61 MB / 426.7 MB Notification: Performance of SimCode: time 3.377e-06/0.3652, allocations: 0 / 0.4924 GB, free: 86.61 MB / 426.7 MB Notification: Performance of Templates: time 0.04972/0.4149, allocations: 42.27 MB / 0.5337 GB, free: 44.77 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/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.290979757905006]