Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.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.001324/0.001324, 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.001321/0.001321, allocations: 168.4 kB / 24.91 MB, free: 8.262 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.004/1.004, allocations: 177.1 MB / 205.3 MB, free: 5.457 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.2894/0.2894, allocations: 32.81 MB / 294.6 MB, free: 1.246 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.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.853e-06/1.853e-06, allocations: 0 / 323.2 MB, free: 9.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.524e-05/2.709e-05, allocations: 2.312 kB / 323.2 MB, free: 9.727 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01013/0.01015, allocations: 12.63 MB / 335.8 MB, free: 13.04 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.008443/0.0186, allocations: 4.896 MB / 340.7 MB, free: 8.121 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001435/0.02003, allocations: 111.4 kB / 340.8 MB, free: 8.012 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004049/0.02408, allocations: 3.999 MB / 344.8 MB, free: 4 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00359/0.02767, allocations: 2.317 MB / 347.2 MB, free: 1.672 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001615/0.02929, allocations: 1.201 MB / 348.4 MB, free: 480 kB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.006285/0.03557, allocations: 7.707 MB / 356.1 MB, free: 8.754 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004383/0.03995, allocations: 4.529 MB / 360.6 MB, free: 4.133 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005448/0.0454, allocations: 4.199 MB / 364.8 MB, free: 15.93 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003858/0.04926, allocations: 2.989 MB / 367.8 MB, free: 12.93 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007886/0.05005, allocations: 439.9 kB / 368.2 MB, free: 12.5 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002039/0.05209, allocations: 1.381 MB / 369.6 MB, free: 11.12 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002044/0.05413, allocations: 2.661 MB / 372.3 MB, free: 8.449 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002229/0.05636, allocations: 1.644 MB / 373.9 MB, free: 6.801 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005528/0.06189, allocations: 5.765 MB / 379.7 MB, free: 1.016 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.06189, allocations: 4 kB / 379.7 MB, free: 1.012 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.06189, allocations: 0 / 379.7 MB, free: 1.012 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.308e-05/0.06194, allocations: 0 / 379.7 MB, free: 1.012 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: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.007413/0.06935, allocations: 5.762 MB / 385.4 MB, free: 11.19 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.06938, allocations: 8.031 kB / 385.4 MB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004102/0.07349, allocations: 1.296 MB / 386.7 MB, free: 9.883 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003924/0.07741, allocations: 2.72 MB / 389.5 MB, free: 7.109 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000186/0.0776, allocations: 283.7 kB / 389.7 MB, free: 6.832 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005633/0.07816, allocations: 384.1 kB / 390.1 MB, free: 6.457 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00777/0.08593, allocations: 5.835 MB / 395.9 MB, free: 15.81 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001138/0.08604, allocations: 63.45 kB / 396 MB, free: 15.75 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003872/0.08643, allocations: 175.9 kB / 396.2 MB, free: 15.58 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002058/0.08849, allocations: 1.933 MB / 398.1 MB, free: 13.65 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005874/0.09436, allocations: 2.93 MB / 401 MB, free: 10.68 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02571/0.1201, allocations: 36.16 MB / 437.2 MB, free: 5.203 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004435/0.1245, allocations: 2.132 MB / 439.3 MB, free: 3.031 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004939/0.125, allocations: 433.3 kB / 439.8 MB, free: 2.594 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1696/0.2946, allocations: 4.496 MB / 444.3 MB, free: 97.49 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.271e-05/0.2946, allocations: 50.31 kB / 444.3 MB, free: 97.45 MB / 410.7 MB Notification: Performance of pre-optimization done (n=160): time 3.646e-06/0.2946, allocations: 3.75 kB / 444.3 MB, free: 97.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=192): time 0.02331/0.318, allocations: 9.867 MB / 454.2 MB, free: 97.21 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.33e-05/0.318, allocations: 204.2 kB / 454.4 MB, free: 96.99 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002736/0.3207, allocations: 3.844 MB / 458.2 MB, free: 96.61 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.809e-05/0.3208, allocations: 56.67 kB / 458.3 MB, free: 96.58 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001097/0.3219, allocations: 3.536 MB / 461.8 MB, free: 94.55 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003503/0.3223, allocations: 0.7723 MB / 462.6 MB, free: 94.11 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009401/0.3232, allocations: 1.317 MB / 463.9 MB, free: 93.95 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.11e-05/0.3232, allocations: 305.1 kB / 464.2 MB, free: 93.65 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001156/0.3244, allocations: 0.8629 MB / 465.1 MB, free: 93.62 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002122/0.3265, allocations: 4.969 MB / 470 MB, free: 87.41 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003734/0.3302, allocations: 6.417 MB / 476.4 MB, free: 80.23 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.012e-05/0.3303, allocations: 44 kB / 476.5 MB, free: 80.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=905) (initialization): time 0.005288/0.3356, allocations: 5.098 MB / 481.6 MB, free: 76.14 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.817e-05/0.3356, allocations: 68 kB / 481.7 MB, free: 76.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-05/0.3357, allocations: 148 kB / 481.8 MB, free: 75.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001794/0.3375, allocations: 1.011 MB / 482.8 MB, free: 75.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001998/0.3395, allocations: 1.536 MB / 484.3 MB, free: 73.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004238/0.3437, allocations: 6.95 MB / 491.3 MB, free: 66.81 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002281/0.346, allocations: 303.7 kB / 491.6 MB, free: 66.51 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002343/0.3462, allocations: 363.7 kB / 491.9 MB, free: 66.16 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 676 * Number of states: 0 () * Number of discrete variables: 42 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],b3.color[3],b3.color[2],b3.color[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 (851): * Single equations (assignments): 844 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,17,60.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,4), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.001129/0.3474, allocations: 0.6862 MB / 492.6 MB, free: 65.47 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002876/0.3477, allocations: 267.6 kB / 492.9 MB, free: 65.21 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001859/0.3495, allocations: 1.474 MB / 494.4 MB, free: 63.71 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-05/0.3495, allocations: 21.75 kB / 494.4 MB, free: 63.69 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.3495, allocations: 7.938 kB / 494.4 MB, free: 63.68 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/0.3495, allocations: 7.969 kB / 494.4 MB, free: 63.68 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006288/0.3558, allocations: 5.819 MB / 0.4885 GB, free: 58.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.735e-06/0.3558, allocations: 12.06 kB / 0.4885 GB, free: 58.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004828/0.3563, allocations: 247.6 kB / 0.4887 GB, free: 58.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001719/0.358, allocations: 0.9562 MB / 0.4897 GB, free: 57.19 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.348e-05/0.3581, allocations: 39.98 kB / 0.4897 GB, free: 57.15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003502/0.3616, allocations: 6.163 MB / 0.4957 GB, free: 50.65 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/0.3616, allocations: 11.94 kB / 0.4957 GB, free: 50.64 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002709/0.3643, allocations: 2.445 MB / 0.4981 GB, free: 48.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005176/0.3649, allocations: 391.7 kB / 0.4985 GB, free: 47.71 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002761/0.3651, allocations: 36 kB / 0.4985 GB, free: 47.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006982/0.3658, allocations: 42.25 kB / 0.4986 GB, free: 47.64 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000233/0.3661, allocations: 148.7 kB / 0.4987 GB, free: 47.49 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.877e-05/0.3661, allocations: 55.98 kB / 0.4988 GB, free: 47.44 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001324/0.3675, allocations: 1.457 MB / 0.5002 GB, free: 46.15 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3675, allocations: 0 / 0.5002 GB, free: 46.15 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005196/0.3726, allocations: 1.267 MB / 0.5014 GB, free: 44.88 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * 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 (144): * Single equations (assignments): 137 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,15,60.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,4), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003913/0.373, allocations: 181.2 kB / 0.5016 GB, free: 44.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003652/0.3767, allocations: 3.406 MB / 0.5049 GB, free: 41.36 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.000139/0.3768, allocations: 116.2 kB / 0.505 GB, free: 41.23 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009502/0.3778, allocations: 1.137 MB / 0.5062 GB, free: 40.07 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001934/0.3797, allocations: 0.7642 MB / 0.5069 GB, free: 39.32 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008101/0.3878, allocations: 8.97 MB / 0.5157 GB, free: 30.21 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009669/0.3888, allocations: 1.501 MB / 0.5171 GB, free: 28.69 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001108/0.3899, allocations: 0.5759 MB / 0.5177 GB, free: 28.11 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000739/0.3906, allocations: 0.6339 MB / 0.5183 GB, free: 27.48 MB / 410.7 MB Notification: Performance of SimCode: time 1.934e-06/0.3906, allocations: 4 kB / 0.5183 GB, free: 27.48 MB / 410.7 MB Notification: Performance of Templates: time 0.05672/0.4474, allocations: 43.12 MB / 0.5604 GB, free: 0.8672 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.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.470461783930659]