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.0009326/0.0009326, allocations: 80.8 kB / 21.5 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.001505/0.001505, allocations: 170.9 kB / 24.91 MB, free: 9.152 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.9413/0.9413, allocations: 177.1 MB / 205.3 MB, free: 5.5 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.2694/0.2694, allocations: 32.8 MB / 294.6 MB, free: 1.242 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.754e-06/1.754e-06, allocations: 0 / 323.2 MB, free: 9.746 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.31e-05/2.486e-05, allocations: 2.312 kB / 323.2 MB, free: 9.742 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.02859/0.02862, allocations: 11.35 MB / 334.6 MB, free: 14.34 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01122/0.03983, allocations: 4.38 MB / 338.9 MB, free: 9.945 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00286/0.04269, allocations: 91.5 kB / 339 MB, free: 9.855 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005771/0.04847, allocations: 2.92 MB / 341.9 MB, free: 6.926 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007544/0.05601, allocations: 2.138 MB / 344.1 MB, free: 4.777 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002843/0.05885, allocations: 1.021 MB / 345.1 MB, free: 3.754 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01223/0.07108, allocations: 6.409 MB / 351.5 MB, free: 13.34 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005997/0.07708, allocations: 3.51 MB / 355 MB, free: 9.758 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008918/0.086, allocations: 3.595 MB / 358.6 MB, free: 6.156 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005858/0.09185, allocations: 2.697 MB / 361.3 MB, free: 3.453 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002249/0.0941, allocations: 396 kB / 361.7 MB, free: 3.066 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004627/0.09873, allocations: 1.35 MB / 363 MB, free: 1.715 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004641/0.1034, allocations: 2.357 MB / 365.4 MB, free: 15.35 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004971/0.1083, allocations: 1.453 MB / 366.9 MB, free: 13.89 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01226/0.1206, allocations: 5.337 MB / 372.2 MB, free: 8.539 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.1206, allocations: 0 / 372.2 MB, free: 8.539 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1206, allocations: 0 / 372.2 MB, free: 8.539 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002961/0.1209, allocations: 0 / 372.2 MB, free: 8.539 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.01477/0.1357, allocations: 4.999 MB / 377.2 MB, free: 3.48 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.1357, allocations: 12.03 kB / 377.2 MB, free: 3.469 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005287/0.141, allocations: 1.241 MB / 378.4 MB, free: 2.227 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004724/0.1457, allocations: 2.298 MB / 380.7 MB, free: 15.87 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001816/0.1459, allocations: 234.5 kB / 381 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006365/0.1466, allocations: 332.3 kB / 381.3 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008625/0.1552, allocations: 5.293 MB / 386.6 MB, free: 9.262 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001317/0.1553, allocations: 47.62 kB / 386.6 MB, free: 9.215 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004353/0.1558, allocations: 147.9 kB / 386.8 MB, free: 9.07 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001924/0.1577, allocations: 1.799 MB / 388.6 MB, free: 7.27 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007149/0.1648, allocations: 2.797 MB / 391.4 MB, free: 4.426 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03288/0.1977, allocations: 32.12 MB / 423.5 MB, free: 3.137 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003973/0.2017, allocations: 1.788 MB / 425.3 MB, free: 1.301 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006554/0.2023, allocations: 393.2 kB / 425.7 MB, free: 0.8984 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006596/0.2089, allocations: 4.2 MB / 429.9 MB, free: 12.67 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.047e-05/0.209, allocations: 59.5 kB / 429.9 MB, free: 12.61 MB / 410.7 MB Notification: Performance of pre-optimization done (n=163): time 5.09e-06/0.209, allocations: 0 / 429.9 MB, free: 12.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=200): time 0.02169/0.2307, allocations: 7.634 MB / 437.6 MB, free: 4.98 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.825e-05/0.2308, allocations: 201.2 kB / 437.8 MB, free: 4.742 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003552/0.2343, allocations: 3.367 MB / 441.1 MB, free: 1.387 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003445/0.2346, allocations: 53.7 kB / 441.2 MB, free: 1.328 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.182/0.4166, allocations: 3.116 MB / 444.3 MB, free: 112.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001217/0.4178, allocations: 0.7917 MB / 445.1 MB, free: 112.4 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001639/0.4195, allocations: 1.216 MB / 446.3 MB, free: 112.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.924e-05/0.4195, allocations: 304.6 kB / 446.6 MB, free: 112 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001778/0.4213, allocations: 0.886 MB / 447.5 MB, free: 112 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002907/0.4242, allocations: 4.6 MB / 452.1 MB, free: 107 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005409/0.4296, allocations: 5.985 MB / 458.1 MB, free: 102 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001267/0.4297, allocations: 40.31 kB / 458.1 MB, free: 102 MB / 410.7 MB Notification: Performance of matching and sorting (n=843) (initialization): time 0.009062/0.4388, allocations: 4.887 MB / 463 MB, free: 100.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.683e-05/0.4389, allocations: 62.88 kB / 463.1 MB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001932/0.4391, allocations: 134.2 kB / 463.2 MB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003006/0.4421, allocations: 0.9586 MB / 464.2 MB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003862/0.4459, allocations: 1.428 MB / 465.6 MB, free: 98.94 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005914/0.4519, allocations: 4.685 MB / 470.3 MB, free: 95.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004294/0.4562, allocations: 286.9 kB / 470.5 MB, free: 94.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005358/0.4567, allocations: 330 kB / 470.9 MB, free: 94.46 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.00185/0.4585, allocations: 0.6365 MB / 471.5 MB, free: 93.91 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005528/0.4591, allocations: 243.2 kB / 471.7 MB, free: 93.74 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002582/0.4617, allocations: 1.658 MB / 473.4 MB, free: 92.54 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.043e-05/0.4617, allocations: 23.94 kB / 473.4 MB, free: 92.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.279e-05/0.4617, allocations: 4 kB / 473.4 MB, free: 92.51 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.835e-05/0.4617, allocations: 11.45 kB / 473.4 MB, free: 92.51 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008238/0.47, allocations: 4.859 MB / 478.3 MB, free: 88.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-05/0.47, allocations: 4 kB / 478.3 MB, free: 88.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006971/0.4707, allocations: 276.4 kB / 478.6 MB, free: 87.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002085/0.4728, allocations: 0.9168 MB / 479.5 MB, free: 86.91 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000168/0.4729, allocations: 32 kB / 479.5 MB, free: 86.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00372/0.4767, allocations: 4.102 MB / 483.6 MB, free: 82.63 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/0.4767, allocations: 8 kB / 483.6 MB, free: 82.62 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003997/0.4807, allocations: 2.54 MB / 486.2 MB, free: 80.02 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009731/0.4816, allocations: 344.1 kB / 486.5 MB, free: 79.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006994/0.4823, allocations: 40 kB / 486.5 MB, free: 79.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009618/0.4833, allocations: 39.98 kB / 486.6 MB, free: 79.62 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002727/0.4836, allocations: 124.7 kB / 486.7 MB, free: 79.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.48e-05/0.4836, allocations: 54.17 kB / 486.8 MB, free: 79.45 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001464/0.4851, allocations: 1.263 MB / 488 MB, free: 78.36 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.4851, allocations: 0 / 488 MB, free: 78.36 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004564/0.4897, allocations: 1.186 MB / 489.2 MB, free: 77.18 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.0005284/0.4902, allocations: 177.8 kB / 489.4 MB, free: 77.01 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004095/0.4943, allocations: 2.884 MB / 492.3 MB, free: 74.13 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002421/0.4945, allocations: 104.3 kB / 492.4 MB, free: 74.02 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001006/0.4955, allocations: 0.7607 MB / 493.1 MB, free: 73.25 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002708/0.4983, allocations: 0.6635 MB / 493.8 MB, free: 72.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01146/0.5097, allocations: 8.163 MB / 0.4902 GB, free: 64.31 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001595/0.5113, allocations: 1.326 MB / 0.4915 GB, free: 62.96 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001686/0.513, allocations: 0.5211 MB / 0.492 GB, free: 62.44 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009376/0.5139, allocations: 0.5831 MB / 0.4926 GB, free: 61.85 MB / 410.7 MB Notification: Performance of SimCode: time 2.244e-06/0.5139, allocations: 0 / 0.4926 GB, free: 61.85 MB / 410.7 MB Notification: Performance of Templates: time 0.05444/0.5684, allocations: 42.27 MB / 0.5338 GB, free: 19.9 MB / 410.7 MB " [Timeout remaining time 659] 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 -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.319165595807135]