Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Spherical.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.001362/0.001362, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001781/0.001781, allocations: 162.9 kB / 24.99 MB, free: 8.758 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.04/1.04, allocations: 177.1 MB / 205.3 MB, free: 5.586 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.2857/0.2857, allocations: 34.26 MB / 296 MB, free: 0.7617 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.Joints.Spherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.Q.[0-9,]+.|body.w_a.[0-9,]+.",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Spherical") translateModel(ModelicaTest.MultiBody.Joints.Spherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.Q.[0-9,]+.|body.w_a.[0-9,]+.",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Spherical") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 8.025e-06/8.025e-06, allocations: 0 / 378 MB, free: 2.957 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.216e-05/4.019e-05, allocations: 6.312 kB / 378 MB, free: 2.949 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.008822/0.008862, allocations: 11.27 MB / 389.3 MB, free: 7.617 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.005722/0.01458, allocations: 3.983 MB / 393.3 MB, free: 3.625 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006732/0.01526, allocations: 67.75 kB / 393.3 MB, free: 3.559 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001655/0.01691, allocations: 1.253 MB / 394.6 MB, free: 2.301 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002117/0.01903, allocations: 1.836 MB / 396.4 MB, free: 468 kB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007786/0.01981, allocations: 0.6039 MB / 397 MB, free: 15.85 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00331/0.02312, allocations: 4.711 MB / 401.7 MB, free: 11.14 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001437/0.02456, allocations: 2.251 MB / 404 MB, free: 8.859 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001378/0.02593, allocations: 1.871 MB / 405.9 MB, free: 6.984 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001766/0.0277, allocations: 2.073 MB / 407.9 MB, free: 4.906 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000216/0.02792, allocations: 224 kB / 408.2 MB, free: 4.688 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001429/0.02935, allocations: 1.252 MB / 409.4 MB, free: 3.434 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009608/0.03031, allocations: 1.69 MB / 411.1 MB, free: 1.738 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007225/0.03103, allocations: 0.9769 MB / 412.1 MB, free: 0.7578 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00309/0.03412, allocations: 4.191 MB / 416.3 MB, free: 12.55 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.03412, allocations: 0 / 416.3 MB, free: 12.55 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.03412, allocations: 0 / 416.3 MB, free: 12.55 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.004e-05/0.03415, allocations: 0 / 416.3 MB, free: 12.55 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1482 * Number of variables: 1482 Notification: Performance of Generate backend data structure: time 0.004315/0.03847, allocations: 4.61 MB / 420.9 MB, free: 7.875 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.03851, allocations: 12.03 kB / 420.9 MB, free: 7.863 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01121/0.04972, allocations: 6.714 MB / 427.6 MB, free: 1.137 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00215/0.05187, allocations: 1.83 MB / 429.4 MB, free: 15.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.928e-05/0.05196, allocations: 176.8 kB / 429.6 MB, free: 15.09 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004947/0.05246, allocations: 304.5 kB / 429.9 MB, free: 14.8 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006602/0.05906, allocations: 5.719 MB / 435.6 MB, free: 8.461 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.984e-05/0.05911, allocations: 27.77 kB / 435.7 MB, free: 8.434 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002472/0.05935, allocations: 119.8 kB / 435.8 MB, free: 8.316 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002287/0.06164, allocations: 2.459 MB / 438.2 MB, free: 5.855 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007771/0.06941, allocations: 3.821 MB / 442 MB, free: 2.027 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1886/0.258, allocations: 35.29 MB / 477.3 MB, free: 70.38 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005302/0.2633, allocations: 2.919 MB / 480.3 MB, free: 70.05 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001002/0.2643, allocations: 0.648 MB / 480.9 MB, free: 69.94 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006707/0.265, allocations: 0.521 MB / 481.4 MB, free: 69.87 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.403e-05/0.265, allocations: 53.98 kB / 481.5 MB, free: 69.81 MB / 410.7 MB Notification: Performance of pre-optimization done (n=224): time 4.639e-06/0.265, allocations: 0.5625 kB / 481.5 MB, free: 69.81 MB / 410.7 MB Notification: Performance of matching and sorting (n=231): time 0.01886/0.2839, allocations: 8.845 MB / 490.3 MB, free: 67.95 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008649/0.2848, allocations: 1.963 MB / 492.3 MB, free: 65.97 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003261/0.288, allocations: 2.7 MB / 495 MB, free: 64.83 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002459/0.2883, allocations: 51.64 kB / 495 MB, free: 64.78 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001296/0.2896, allocations: 2.913 MB / 498 MB, free: 62.71 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007049/0.2903, allocations: 0.9258 MB / 498.9 MB, free: 62.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00137/0.2917, allocations: 1.175 MB / 0.4883 GB, free: 61.4 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.237e-05/0.2917, allocations: 478 kB / 0.4888 GB, free: 60.93 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00165/0.2933, allocations: 0.8304 MB / 0.4896 GB, free: 60.82 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003114/0.2965, allocations: 5.286 MB / 0.4948 GB, free: 54.77 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005371/0.3018, allocations: 6.76 MB / 0.5014 GB, free: 47.83 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.394e-05/0.3019, allocations: 28.59 kB / 0.5014 GB, free: 47.83 MB / 410.7 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.04776/0.3497, allocations: 28.96 MB / 0.5297 GB, free: 26.04 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.72e-05/0.3498, allocations: 49 kB / 0.5297 GB, free: 26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03268/0.3824, allocations: 20.16 MB / 0.5494 GB, free: 5.785 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05898/0.4414, allocations: 29.22 MB / 0.5779 GB, free: 8.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003109/0.4445, allocations: 1.318 MB / 0.5792 GB, free: 7.18 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01683/0.4614, allocations: 10.02 MB / 0.589 GB, free: 12.92 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003954/0.4653, allocations: 0.5501 MB / 0.5895 GB, free: 12.37 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006027/0.4659, allocations: 323 kB / 0.5899 GB, free: 12.06 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 476 * Number of states: 0 () * Number of discrete variables: 24 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[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 (661): * Single equations (assignments): 650 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 0 systems * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.001672/0.4676, allocations: 0.5747 MB / 0.5904 GB, free: 11.48 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000596/0.4682, allocations: 330.1 kB / 0.5907 GB, free: 11.16 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004013/0.4722, allocations: 2.624 MB / 0.5933 GB, free: 8.492 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003286/0.4755, allocations: 1.836 MB / 0.5951 GB, free: 6.641 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.357e-06/0.4755, allocations: 0 / 0.5951 GB, free: 6.641 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.286e-05/0.4755, allocations: 7.969 kB / 0.5951 GB, free: 6.633 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1783/0.6538, allocations: 7.9 MB / 0.6028 GB, free: 133.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.547e-05/0.6538, allocations: 11.12 kB / 0.6028 GB, free: 133.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001466/0.6553, allocations: 459.3 kB / 0.6033 GB, free: 133.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001777/0.6571, allocations: 0.6079 MB / 0.6039 GB, free: 133.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002314/0.6573, allocations: 48.42 kB / 0.6039 GB, free: 133.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003259/0.6606, allocations: 4.405 MB / 0.6082 GB, free: 130.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006105/0.6612, allocations: 1.903 MB / 0.6101 GB, free: 128.4 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004923/0.6661, allocations: 3.234 MB / 0.6132 GB, free: 127.7 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008692/0.667, allocations: 274.6 kB / 0.6135 GB, free: 127.7 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003098/0.6673, allocations: 44.52 kB / 0.6135 GB, free: 127.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009589/0.6682, allocations: 242 kB / 0.6138 GB, free: 127.7 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000306/0.6685, allocations: 154.9 kB / 0.6139 GB, free: 127.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001138/0.6686, allocations: 68.66 kB / 0.614 GB, free: 127.6 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001324/0.67, allocations: 1.144 MB / 0.6151 GB, free: 127.5 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.67, allocations: 0.5625 kB / 0.6151 GB, free: 127.5 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003711/0.6737, allocations: 1.228 MB / 0.6163 GB, free: 127.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (170): * Single equations (assignments): 161 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000415/0.6741, allocations: 193.6 kB / 0.6165 GB, free: 127.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005879/0.68, allocations: 4.039 MB / 0.6204 GB, free: 126.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.68, allocations: 3.375 kB / 0.6204 GB, free: 126.6 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001529/0.6815, allocations: 1.316 MB / 0.6217 GB, free: 126.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001431/0.6829, allocations: 321.4 kB / 0.622 GB, free: 126.1 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0114/0.6943, allocations: 7.872 MB / 0.6297 GB, free: 122.9 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001356/0.6957, allocations: 1.17 MB / 0.6308 GB, free: 122.6 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003053/0.6987, allocations: 1.675 MB / 0.6325 GB, free: 122.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007338/0.6995, allocations: 208.9 kB / 0.6327 GB, free: 122.5 MB / 458.7 MB Notification: Performance of SimCode: time 2.475e-06/0.6995, allocations: 0 / 0.6327 GB, free: 122.5 MB / 458.7 MB Notification: Performance of Templates: time 0.05977/0.7593, allocations: 49.18 MB / 0.6807 GB, free: 87.52 MB / 458.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Spherical.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Spherical -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Spherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Joints/Spherical/Spherical.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.75913089280948]