Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0007677/0.0007677, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.0009351/0.0009351, allocations: 178.3 kB / 24.92 MB, free: 8.766 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 0.9444/0.9444, allocations: 177.1 MB / 205.3 MB, free: 5.102 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.257/0.257, allocations: 34.26 MB / 296.1 MB, free: 0.6562 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 325.2 MB, free: 7.742 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.047e-05/3.219e-05, allocations: 6 kB / 325.2 MB, free: 7.738 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01034/0.01038, allocations: 11.36 MB / 336.6 MB, free: 12.32 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01013/0.02051, allocations: 4.367 MB / 340.9 MB, free: 7.941 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001526/0.02203, allocations: 91.5 kB / 341 MB, free: 7.852 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003234/0.02527, allocations: 2.928 MB / 344 MB, free: 4.914 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003269/0.02854, allocations: 2.138 MB / 346.1 MB, free: 2.766 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00139/0.02993, allocations: 1.017 MB / 347.1 MB, free: 1.746 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004736/0.03466, allocations: 6.394 MB / 353.5 MB, free: 11.34 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00273/0.03739, allocations: 3.514 MB / 357 MB, free: 7.758 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003246/0.04064, allocations: 3.598 MB / 360.6 MB, free: 4.152 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002367/0.043, allocations: 2.705 MB / 363.3 MB, free: 1.441 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000359/0.04336, allocations: 396 kB / 363.7 MB, free: 1.055 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001419/0.04478, allocations: 1.334 MB / 365.1 MB, free: 15.72 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001265/0.04605, allocations: 2.357 MB / 367.4 MB, free: 13.36 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001019/0.04707, allocations: 1.453 MB / 368.9 MB, free: 11.9 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004167/0.05123, allocations: 5.345 MB / 374.2 MB, free: 6.535 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.401e-06/0.05124, allocations: 0 / 374.2 MB, free: 6.535 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.05124, allocations: 0 / 374.2 MB, free: 6.535 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.298e-05/0.05128, allocations: 0 / 374.2 MB, free: 6.535 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.005311/0.05659, allocations: 5.003 MB / 379.2 MB, free: 1.473 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/0.05663, allocations: 11.97 kB / 379.2 MB, free: 1.461 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002941/0.05957, allocations: 1.241 MB / 380.5 MB, free: 224 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002442/0.06201, allocations: 2.286 MB / 382.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001114/0.06212, allocations: 238.5 kB / 383 MB, free: 13.64 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003723/0.0625, allocations: 332.3 kB / 383.3 MB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004941/0.06744, allocations: 5.285 MB / 388.6 MB, free: 7.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.605e-05/0.06751, allocations: 55.55 kB / 388.6 MB, free: 7.215 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002501/0.06776, allocations: 151.9 kB / 388.8 MB, free: 7.066 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001373/0.06913, allocations: 1.787 MB / 390.6 MB, free: 5.277 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004003/0.07314, allocations: 2.802 MB / 393.4 MB, free: 2.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02161/0.09475, allocations: 32.12 MB / 425.5 MB, free: 1.145 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003436/0.09818, allocations: 1.8 MB / 427.3 MB, free: 15.3 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006521/0.09883, allocations: 395.3 kB / 427.7 MB, free: 14.89 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005172/0.104, allocations: 4.196 MB / 431.9 MB, free: 10.67 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.956e-05/0.104, allocations: 51.5 kB / 431.9 MB, free: 10.61 MB / 410.7 MB Notification: Performance of pre-optimization done (n=163): time 3.907e-06/0.104, allocations: 0 / 431.9 MB, free: 10.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=200): time 0.01695/0.121, allocations: 7.645 MB / 439.6 MB, free: 2.977 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.111e-05/0.1211, allocations: 205.2 kB / 439.8 MB, free: 2.734 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1721/0.2932, allocations: 3.363 MB / 443.1 MB, free: 98.63 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003839/0.2936, allocations: 54.27 kB / 443.2 MB, free: 98.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001695/0.2953, allocations: 3.128 MB / 446.3 MB, free: 97.26 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005634/0.2958, allocations: 0.7823 MB / 447.1 MB, free: 96.88 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009657/0.2968, allocations: 1.218 MB / 448.3 MB, free: 96.74 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.992e-05/0.2968, allocations: 301.1 kB / 448.6 MB, free: 96.45 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001285/0.2981, allocations: 0.8835 MB / 449.5 MB, free: 96.42 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002362/0.3005, allocations: 4.598 MB / 454.1 MB, free: 91.49 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004017/0.3045, allocations: 5.988 MB / 460.1 MB, free: 86.55 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.029e-05/0.3045, allocations: 40.66 kB / 460.1 MB, free: 86.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=843) (initialization): time 0.005975/0.3105, allocations: 4.886 MB / 465 MB, free: 86.02 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.232e-05/0.3106, allocations: 64.97 kB / 465.1 MB, free: 86.01 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001044/0.3107, allocations: 142.3 kB / 465.2 MB, free: 86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002049/0.3127, allocations: 0.9535 MB / 466.2 MB, free: 85.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002189/0.3149, allocations: 1.43 MB / 467.6 MB, free: 85.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004074/0.319, allocations: 4.687 MB / 472.3 MB, free: 82.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00252/0.3215, allocations: 272 kB / 472.6 MB, free: 82.63 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002444/0.3218, allocations: 332.8 kB / 472.9 MB, free: 82.36 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.001075/0.3228, allocations: 0.6374 MB / 473.5 MB, free: 81.96 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003347/0.3232, allocations: 255.6 kB / 473.8 MB, free: 81.81 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002247/0.3254, allocations: 1.651 MB / 475.4 MB, free: 80.89 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.326e-05/0.3254, allocations: 20 kB / 475.4 MB, free: 80.88 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.3254, allocations: 11.61 kB / 475.4 MB, free: 80.87 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.908e-06/0.3254, allocations: 7.078 kB / 475.5 MB, free: 80.87 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005876/0.3313, allocations: 4.859 MB / 480.3 MB, free: 77.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.3313, allocations: 8 kB / 480.3 MB, free: 77.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005898/0.3319, allocations: 277.7 kB / 480.6 MB, free: 77.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001779/0.3337, allocations: 0.9109 MB / 481.5 MB, free: 76.38 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.823e-05/0.3338, allocations: 47.94 kB / 481.5 MB, free: 76.33 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003115/0.3369, allocations: 4.077 MB / 485.6 MB, free: 72.11 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.3369, allocations: 17.34 kB / 485.6 MB, free: 72.1 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002688/0.3396, allocations: 2.53 MB / 488.2 MB, free: 69.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003591/0.3399, allocations: 351.5 kB / 488.5 MB, free: 69.16 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002523/0.3402, allocations: 32 kB / 488.5 MB, free: 69.13 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006421/0.3408, allocations: 48.02 kB / 488.6 MB, free: 69.09 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001706/0.341, allocations: 138.3 kB / 488.7 MB, free: 68.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.88e-05/0.3411, allocations: 46.66 kB / 488.8 MB, free: 68.91 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008283/0.3419, allocations: 1.258 MB / 490 MB, free: 67.82 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3419, allocations: 0 / 490 MB, free: 67.82 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003133/0.345, allocations: 1.19 MB / 491.2 MB, free: 66.64 MB / 410.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.0003016/0.3453, allocations: 177.5 kB / 491.4 MB, free: 66.46 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002541/0.3479, allocations: 2.887 MB / 494.3 MB, free: 63.65 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001171/0.348, allocations: 102 kB / 494.4 MB, free: 63.54 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000645/0.3486, allocations: 0.7587 MB / 495.1 MB, free: 62.79 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001579/0.3502, allocations: 0.6662 MB / 495.8 MB, free: 62.13 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006843/0.3571, allocations: 8.15 MB / 0.4921 GB, free: 53.88 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008224/0.3579, allocations: 1.326 MB / 0.4934 GB, free: 52.54 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009975/0.3589, allocations: 0.532 MB / 0.494 GB, free: 52 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007316/0.3596, allocations: 0.5753 MB / 0.4945 GB, free: 51.43 MB / 410.7 MB Notification: Performance of SimCode: time 1.372e-06/0.3596, allocations: 0 / 0.4945 GB, free: 51.43 MB / 410.7 MB Notification: Performance of Templates: time 0.05222/0.4118, allocations: 42.26 MB / 0.5358 GB, free: 9.555 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.125463118311018]