Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.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.00126/0.00126, allocations: 77.88 kB / 21.42 MB, free: 3.074 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.001848/0.001848, allocations: 167.2 kB / 24.82 MB, free: 9.27 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.9865/0.9865, allocations: 177.1 MB / 205.3 MB, free: 5.492 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.2641/0.2641, allocations: 32.81 MB / 294.6 MB, free: 1.258 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.Joints.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|sphericalSpherical.frame_b.r_0.[0-9,]+.|sphericalSpherical.frame_b.f.[0-9,]+.|sphericalSpherical.frame_b.t.[0-9,]+.|Prismatic1.frame_b.r_0.[0-9,]+.|Prismatic1.frame_b.f.[0-9,]+.|Prismatic1.frame_b.t.[0-9,]+.|Fixed1.frame_b.r_0.[0-9,]+.|Fixed1.frame_b.f.[0-9,]+.|Fixed1.frame_b.t.[0-9,]+.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical") translateModel(ModelicaTest.MultiBody.Joints.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|sphericalSpherical.frame_b.r_0.[0-9,]+.|sphericalSpherical.frame_b.f.[0-9,]+.|sphericalSpherical.frame_b.t.[0-9,]+.|Prismatic1.frame_b.r_0.[0-9,]+.|Prismatic1.frame_b.f.[0-9,]+.|Prismatic1.frame_b.t.[0-9,]+.|Fixed1.frame_b.r_0.[0-9,]+.|Fixed1.frame_b.f.[0-9,]+.|Fixed1.frame_b.t.[0-9,]+.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 0 / 376.5 MB, free: 4.418 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.173e-05/2.346e-05, allocations: 13.7 kB / 376.5 MB, free: 4.406 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.SphericalSpherical): time 0.006145/0.006168, allocations: 7.213 MB / 383.7 MB, free: 13.15 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.003936/0.0101, allocations: 2.511 MB / 386.2 MB, free: 10.63 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000748/0.01085, allocations: 39.88 kB / 386.2 MB, free: 10.59 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001317/0.01217, allocations: 0.942 MB / 387.2 MB, free: 9.648 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000723/0.01289, allocations: 333.9 kB / 387.5 MB, free: 9.32 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006344/0.01353, allocations: 351 kB / 387.9 MB, free: 8.977 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008033/0.01433, allocations: 0.7434 MB / 388.6 MB, free: 8.23 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007888/0.01512, allocations: 0.6657 MB / 389.3 MB, free: 7.555 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00073/0.01585, allocations: 0.5416 MB / 389.8 MB, free: 7.012 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006732/0.01652, allocations: 0.5806 MB / 390.4 MB, free: 6.43 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000211/0.01673, allocations: 100 kB / 390.5 MB, free: 6.332 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006735/0.01741, allocations: 0.5107 MB / 391 MB, free: 5.82 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000356/0.01776, allocations: 0.5103 MB / 391.5 MB, free: 5.309 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002796/0.01804, allocations: 355 kB / 391.9 MB, free: 4.961 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001297/0.01934, allocations: 1.265 MB / 393.1 MB, free: 3.691 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.01934, allocations: 3.938 kB / 393.1 MB, free: 3.688 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.01935, allocations: 0 / 393.1 MB, free: 3.688 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.771e-05/0.01937, allocations: 0 / 393.1 MB, free: 3.688 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 332 * Number of variables: 332 Notification: Performance of Generate backend data structure: time 0.001946/0.02132, allocations: 1.533 MB / 394.7 MB, free: 2.113 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.02136, allocations: 12.03 kB / 394.7 MB, free: 2.102 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005038/0.02186, allocations: 232 kB / 394.9 MB, free: 1.875 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005553/0.02242, allocations: 0.504 MB / 395.4 MB, free: 1.344 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.757e-05/0.02245, allocations: 58.34 kB / 395.5 MB, free: 1.289 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001273/0.02258, allocations: 80.48 kB / 395.5 MB, free: 1.211 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001921/0.0245, allocations: 1.522 MB / 397.1 MB, free: 15.49 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.589e-05/0.02453, allocations: 11.94 kB / 397.1 MB, free: 15.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.776e-05/0.02459, allocations: 35.97 kB / 397.1 MB, free: 15.44 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002973/0.02488, allocations: 381.7 kB / 397.5 MB, free: 15.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00162/0.0265, allocations: 0.9224 MB / 398.4 MB, free: 14.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005073/0.03158, allocations: 8.742 MB / 407.1 MB, free: 5.102 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001625/0.0332, allocations: 0.735 MB / 407.9 MB, free: 4.352 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.03331, allocations: 103.6 kB / 408 MB, free: 4.246 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005559/0.03387, allocations: 0.5889 MB / 408.6 MB, free: 3.656 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.533e-05/0.03389, allocations: 37.33 kB / 408.6 MB, free: 3.609 MB / 378.7 MB Notification: Performance of pre-optimization done (n=44): time 2.294e-06/0.0339, allocations: 4 kB / 408.6 MB, free: 3.605 MB / 378.7 MB Notification: Performance of matching and sorting (n=58): time 0.005037/0.03893, allocations: 2.348 MB / 411 MB, free: 1.246 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.236e-05/0.03897, allocations: 55.91 kB / 411 MB, free: 1.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005666/0.03953, allocations: 0.8106 MB / 411.8 MB, free: 360 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.818e-05/0.03956, allocations: 37.7 kB / 411.9 MB, free: 316 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003906/0.03995, allocations: 0.7746 MB / 412.6 MB, free: 15.52 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000133/0.04008, allocations: 222.2 kB / 412.8 MB, free: 15.3 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002259/0.04031, allocations: 280.2 kB / 413.1 MB, free: 15.02 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002022/0.04051, allocations: 0.5897 MB / 413.7 MB, free: 14.42 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000138/0.04065, allocations: 114.5 kB / 413.8 MB, free: 14.3 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005484/0.0412, allocations: 1.109 MB / 414.9 MB, free: 12.74 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008982/0.0421, allocations: 1.362 MB / 416.3 MB, free: 10.93 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.054e-05/0.04211, allocations: 11.94 kB / 416.3 MB, free: 10.92 MB / 394.7 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.0009815/0.04309, allocations: 0.9776 MB / 417.3 MB, free: 9.934 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.04311, allocations: 12 kB / 417.3 MB, free: 9.922 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.818e-05/0.04313, allocations: 24 kB / 417.3 MB, free: 9.898 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.829e-05/0.04316, allocations: 36.72 kB / 417.4 MB, free: 9.863 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006047/0.04376, allocations: 319.5 kB / 417.7 MB, free: 9.551 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008575/0.04462, allocations: 1.837 MB / 419.5 MB, free: 7.609 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003809/0.045, allocations: 56.06 kB / 419.6 MB, free: 7.555 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.957e-05/0.04505, allocations: 64 kB / 419.6 MB, free: 7.492 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * Number of states: 0 () * Number of discrete variables: 27 (Fixed1.color[3],Fixed1.color[2],Fixed1.color[1],Prismatic1.boxColor[3],Prismatic1.boxColor[2],Prismatic1.boxColor[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],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (164): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * 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: Performance of prepare postOptimizeDAE: time 0.0002583/0.04531, allocations: 264 kB / 419.9 MB, free: 7.223 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.028e-05/0.0454, allocations: 103.4 kB / 420 MB, free: 7.121 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.533e-05/0.04548, allocations: 99.72 kB / 420.1 MB, free: 7.016 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.04549, allocations: 4 kB / 420.1 MB, free: 7.012 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.04549, allocations: 3.984 kB / 420.1 MB, free: 7.008 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.04549, allocations: 3.984 kB / 420.1 MB, free: 7.004 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00151/0.047, allocations: 1.388 MB / 421.5 MB, free: 5.469 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.04701, allocations: 8 kB / 421.5 MB, free: 5.461 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002438/0.04726, allocations: 119.9 kB / 421.6 MB, free: 5.344 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.635e-06/0.04726, allocations: 8 kB / 421.6 MB, free: 5.336 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.928e-05/0.04728, allocations: 20 kB / 421.6 MB, free: 5.316 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006995/0.04798, allocations: 1.798 MB / 423.4 MB, free: 3.406 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/0.04799, allocations: 16.06 kB / 423.4 MB, free: 3.391 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005118/0.0485, allocations: 0.7149 MB / 424.2 MB, free: 2.543 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.47e-05/0.04858, allocations: 75.44 kB / 424.2 MB, free: 2.469 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.244e-05/0.04862, allocations: 27.92 kB / 424.3 MB, free: 2.441 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001526/0.04877, allocations: 12 kB / 424.3 MB, free: 2.43 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.463e-05/0.04882, allocations: 59.73 kB / 424.3 MB, free: 2.371 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.976e-05/0.04884, allocations: 24 kB / 424.3 MB, free: 2.348 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002663/0.04911, allocations: 402.8 kB / 424.7 MB, free: 1.957 MB / 394.7 MB Notification: Performance of sort global known variables: time 5e-08/0.04911, allocations: 0 / 424.7 MB, free: 1.957 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007102/0.04982, allocations: 216 kB / 425 MB, free: 1.746 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 0 () * 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 (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * 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: Performance of Backend phase and start with SimCode phase: time 0.0001646/0.04999, allocations: 115.1 kB / 425.1 MB, free: 1.625 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006833/0.05067, allocations: 0.557 MB / 425.6 MB, free: 1.07 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.05067, allocations: 0.8125 kB / 425.6 MB, free: 1.07 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001715/0.05084, allocations: 177.2 kB / 425.8 MB, free: 0.8945 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00049/0.05133, allocations: 115.7 kB / 425.9 MB, free: 0.7852 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002208/0.05354, allocations: 1.92 MB / 427.8 MB, free: 14.71 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002306/0.05377, allocations: 307.5 kB / 428.1 MB, free: 14.39 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002658/0.05404, allocations: 123.3 kB / 428.3 MB, free: 14.27 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002178/0.05426, allocations: 206.1 kB / 428.5 MB, free: 14.07 MB / 410.7 MB Notification: Performance of SimCode: time 1.724e-06/0.05426, allocations: 0 / 428.5 MB, free: 14.07 MB / 410.7 MB Notification: Performance of Templates: time 0.01137/0.06563, allocations: 7.572 MB / 436 MB, free: 6.617 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/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: 3.525870489887893]