Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.Spherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical") translateModel(ModelicaTest.MultiBody.Joints.Spherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 222.9 MB / 241.6 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000982/0.0009821, allocations: 107.4 kB / 291.9 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3416/0.3416, allocations: 44.13 MB / 386.1 MB, free: 38.06 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001029/0.001029, allocations: 55.92 kB / 457.7 MB, free: 2.309 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3783/0.3794, allocations: 60.8 MB / 0.5064 GB, free: 38.19 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01887/0.3983, allocations: 25.71 MB / 0.5315 GB, free: 19.84 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01584/0.4142, allocations: 6.383 MB / 0.5377 GB, free: 15.67 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00528/0.4195, allocations: 104 kB / 0.5378 GB, free: 15.65 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002694/0.4223, allocations: 1.146 MB / 0.5389 GB, free: 15.15 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004583/0.4269, allocations: 1.642 MB / 0.5405 GB, free: 14.5 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0016/0.4285, allocations: 0.5129 MB / 0.541 GB, free: 14.31 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005965/0.4345, allocations: 5.426 MB / 0.5463 GB, free: 12.79 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003497/0.4381, allocations: 1.756 MB / 0.5481 GB, free: 12.15 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002534/0.4406, allocations: 1.014 MB / 0.5491 GB, free: 11.77 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003226/0.4439, allocations: 1.776 MB / 0.5508 GB, free: 11.21 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00139/0.4453, allocations: 152.9 kB / 0.5509 GB, free: 11.21 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004363/0.4497, allocations: 1.332 MB / 0.5522 GB, free: 10.87 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00353/0.4532, allocations: 1.55 MB / 0.5537 GB, free: 10.38 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005948/0.4592, allocations: 1.802 MB / 0.5555 GB, free: 9.102 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01241/0.4717, allocations: 5.925 MB / 0.5613 GB, free: 6.438 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.4717, allocations: 0 / 0.5613 GB, free: 6.438 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.4718, allocations: 1.531 kB / 0.5613 GB, free: 6.438 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003614/0.4721, allocations: 0 / 0.5613 GB, free: 6.438 MB / 378.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.01366/0.4858, allocations: 4.114 MB / 0.5653 GB, free: 3.508 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.4859, allocations: 9.281 kB / 0.5653 GB, free: 3.508 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01839/0.5043, allocations: 5.67 MB / 0.5709 GB, free: 13.9 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007028/0.5113, allocations: 2.205 MB / 0.573 GB, free: 11.65 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000179/0.5116, allocations: 180.7 kB / 0.5732 GB, free: 11.47 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001055/0.5126, allocations: 311.5 kB / 0.5735 GB, free: 11.16 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01761/0.5302, allocations: 10.72 MB / 0.5839 GB, free: 15.98 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.17e-05/0.5304, allocations: 27.75 kB / 0.584 GB, free: 15.96 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003536/0.5307, allocations: 111.8 kB / 0.5841 GB, free: 15.85 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003869/0.5346, allocations: 2.463 MB / 0.5865 GB, free: 13.38 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02042/0.555, allocations: 10.16 MB / 0.5964 GB, free: 3.211 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05803/0.6131, allocations: 35.69 MB / 0.6313 GB, free: 14.68 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01241/0.6256, allocations: 5.603 MB / 0.6367 GB, free: 8.844 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003447/0.6291, allocations: 2.334 MB / 0.639 GB, free: 6.504 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001795/0.6309, allocations: 1.88 MB / 0.6408 GB, free: 4.289 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.436e-05/0.631, allocations: 57.16 kB / 0.6409 GB, free: 4.227 MB / 458.7 MB Notification: Performance of pre-optimization done (n=224): time 1.024e-05/0.631, allocations: 0 / 0.6409 GB, free: 4.227 MB / 458.7 MB Notification: Performance of matching and sorting (n=231): time 0.03935/0.6703, allocations: 14.95 MB / 0.6555 GB, free: 5.16 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001344/0.6717, allocations: 1.523 MB / 0.657 GB, free: 3.477 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005272/0.677, allocations: 2.798 MB / 0.6597 GB, free: 0.6641 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005776/0.6776, allocations: 57.7 kB / 0.6598 GB, free: 0.6016 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001819/0.6795, allocations: 2.674 MB / 0.6624 GB, free: 13.89 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001212/0.6807, allocations: 0.8558 MB / 0.6632 GB, free: 13.02 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001785/0.6825, allocations: 1.107 MB / 0.6643 GB, free: 11.9 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.6826, allocations: 301.1 kB / 0.6646 GB, free: 11.6 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003833/0.6864, allocations: 2.634 MB / 0.6672 GB, free: 8.961 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005884/0.6923, allocations: 5.644 MB / 0.6727 GB, free: 1.848 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01142/0.7038, allocations: 8.941 MB / 0.6814 GB, free: 7.441 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.525e-05/0.7039, allocations: 28 kB / 0.6814 GB, free: 7.414 MB / 0.4948 GB Notification: Performance of matching and sorting (n=733) (initialization): time 0.3501/1.054, allocations: 19.04 MB / 0.7 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.646e-05/1.054, allocations: 53.11 kB / 0.7001 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04551/1.1, allocations: 12.02 MB / 0.7118 GB, free: 140.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04824/1.148, allocations: 10.28 MB / 0.7219 GB, free: 136 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005219/1.153, allocations: 1.316 MB / 0.7231 GB, free: 135.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02373/1.177, allocations: 16.06 MB / 0.7388 GB, free: 126.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004635/1.182, allocations: 435.9 kB / 0.7392 GB, free: 126.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00119/1.183, allocations: 322.6 kB / 0.7395 GB, free: 125.9 MB / 0.4948 GB 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.004091/1.187, allocations: 2.028 MB / 0.7415 GB, free: 124 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004998/1.188, allocations: 273.3 kB / 0.7418 GB, free: 123.9 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007767/1.195, allocations: 5.101 MB / 0.7468 GB, free: 118.8 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006317/1.202, allocations: 4.408 MB / 0.7511 GB, free: 114.4 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.341e-05/1.202, allocations: 4 kB / 0.7511 GB, free: 114.4 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.679e-05/1.202, allocations: 11.95 kB / 0.7511 GB, free: 114.3 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01935/1.221, allocations: 12.93 MB / 0.7637 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.328e-05/1.221, allocations: 8 kB / 0.7637 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001902/1.223, allocations: 459.2 kB / 0.7642 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002789/1.226, allocations: 0.9393 MB / 0.7651 GB, free: 99.96 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000384/1.226, allocations: 54.38 kB / 0.7651 GB, free: 99.91 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005135/1.231, allocations: 5.454 MB / 0.7705 GB, free: 94.24 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006654/1.232, allocations: 1.463 MB / 0.7719 GB, free: 92.64 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03901/1.271, allocations: 26.05 MB / 0.7973 GB, free: 66.41 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005018/1.272, allocations: 334.2 kB / 0.7976 GB, free: 66.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000409/1.272, allocations: 39.83 kB / 0.7977 GB, free: 66.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001416/1.273, allocations: 199.6 kB / 0.7979 GB, free: 65.84 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003626/1.274, allocations: 144.9 kB / 0.798 GB, free: 65.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001557/1.274, allocations: 67.97 kB / 0.7981 GB, free: 65.63 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002063/1.276, allocations: 1.717 MB / 0.7997 GB, free: 63.91 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.01e-07/1.276, allocations: 1.641 kB / 0.7997 GB, free: 63.91 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006438/1.283, allocations: 1.369 MB / 0.8011 GB, free: 62.54 MB / 0.4948 GB 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.0005889/1.283, allocations: 181.1 kB / 0.8013 GB, free: 62.36 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00941/1.293, allocations: 6.616 MB / 0.8077 GB, free: 55.73 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.748e-06/1.293, allocations: 4.062 kB / 0.8077 GB, free: 55.73 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003138/1.296, allocations: 2.53 MB / 0.8102 GB, free: 53.16 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002327/1.298, allocations: 362.7 kB / 0.8105 GB, free: 52.81 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0178/1.316, allocations: 13.89 MB / 0.8241 GB, free: 38.72 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003163/1.319, allocations: 3.238 MB / 0.8273 GB, free: 35.45 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004341/1.323, allocations: 2.056 MB / 0.8293 GB, free: 33.39 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007665/1.324, allocations: 215.4 kB / 0.8295 GB, free: 33.18 MB / 0.4948 GB Notification: Performance of SimCode: time 9.22e-07/1.324, allocations: 0 / 0.8295 GB, free: 33.18 MB / 0.4948 GB Notification: Performance of Templates: time 0.07591/1.4, allocations: 50.5 MB / 0.8788 GB, free: 14.76 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches