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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 108.2 kB / 18.39 MB, free: 4.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009848/0.0009848, allocations: 182.9 kB / 19.32 MB, free: 3.832 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 222.9 MB / 243 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2132/0.2132, allocations: 44.19 MB / 337.4 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 64.45 kB / 409.9 MB, free: 26.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1356, allocations: 60.82 MB / 470.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.0124/0.148, allocations: 11.81 MB / 482.5 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009264/0.1573, allocations: 4.05 MB / 486.6 MB, free: 13.72 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002208/0.1596, allocations: 59.88 kB / 486.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002365/0.162, allocations: 1.175 MB / 487.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00469/0.1667, allocations: 1.763 MB / 489.5 MB, free: 10.71 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001611/0.1684, allocations: 0.5535 MB / 490.1 MB, free: 10.16 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005546/0.1739, allocations: 3.958 MB / 494.1 MB, free: 6.195 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002348/0.1763, allocations: 1.783 MB / 495.8 MB, free: 4.387 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001724/0.178, allocations: 1.16 MB / 497 MB, free: 3.223 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001857/0.1799, allocations: 1.674 MB / 498.7 MB, free: 1.543 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003591/0.1803, allocations: 216 kB / 498.9 MB, free: 1.332 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002591/0.1829, allocations: 1.306 MB / 0.4885 GB, free: 24 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001599/0.1845, allocations: 1.589 MB / 0.49 GB, free: 14.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001992/0.1865, allocations: 1.851 MB / 0.4918 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007659/0.1941, allocations: 6.247 MB / 0.4979 GB, free: 6.297 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/0.1942, allocations: 0 / 0.4979 GB, free: 6.297 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1942, allocations: 0 / 0.4979 GB, free: 6.297 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001816/0.1944, allocations: 0 / 0.4979 GB, free: 6.297 MB / 382.1 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.01018/0.2046, allocations: 4.107 MB / 0.5019 GB, free: 2.121 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/0.2047, allocations: 8.031 kB / 0.5019 GB, free: 2.113 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3255/0.5302, allocations: 5.664 MB / 0.5075 GB, free: 46.39 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006825/0.537, allocations: 2.224 MB / 0.5097 GB, free: 45.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002421/0.5373, allocations: 176.8 kB / 0.5098 GB, free: 45.74 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001672/0.539, allocations: 315.7 kB / 0.5101 GB, free: 45.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01916/0.5582, allocations: 10.73 MB / 0.5206 GB, free: 40.79 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.56e-05/0.5583, allocations: 27.5 kB / 0.5206 GB, free: 40.77 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004038/0.5587, allocations: 112.6 kB / 0.5207 GB, free: 40.74 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003109/0.5618, allocations: 2.459 MB / 0.5231 GB, free: 39.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01924/0.5811, allocations: 10.16 MB / 0.5331 GB, free: 30.3 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04593/0.6271, allocations: 35.51 MB / 0.5677 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01247/0.6396, allocations: 5.593 MB / 0.5732 GB, free: 4.184 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003696/0.6433, allocations: 2.341 MB / 0.5755 GB, free: 1.84 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002059/0.6454, allocations: 1.868 MB / 0.5773 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.767e-05/0.6455, allocations: 57.22 kB / 0.5774 GB, free: 15.57 MB / 414.1 MB Notification: Performance of pre-optimization done (n=224): time 5.32e-06/0.6455, allocations: 0 / 0.5774 GB, free: 15.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=231): time 0.0352/0.6807, allocations: 14.96 MB / 0.592 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001928/0.6826, allocations: 1.614 MB / 0.5935 GB, free: 14.72 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004051/0.6867, allocations: 2.802 MB / 0.5963 GB, free: 11.9 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005561/0.6873, allocations: 53.69 kB / 0.5963 GB, free: 11.84 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0021/0.6894, allocations: 2.677 MB / 0.599 GB, free: 9.125 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001673/0.6911, allocations: 0.8519 MB / 0.5998 GB, free: 8.262 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001837/0.6929, allocations: 1.107 MB / 0.6009 GB, free: 7.141 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.6931, allocations: 305.1 kB / 0.6012 GB, free: 6.84 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004006/0.6971, allocations: 2.627 MB / 0.6037 GB, free: 4.207 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006639/0.7037, allocations: 5.647 MB / 0.6092 GB, free: 13.09 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01124/0.715, allocations: 8.941 MB / 0.618 GB, free: 2.676 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.806e-05/0.7151, allocations: 32 kB / 0.618 GB, free: 2.645 MB / 446.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.07216/0.7873, allocations: 19.03 MB / 0.6366 GB, free: 15.57 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001273/0.7875, allocations: 56.06 kB / 0.6366 GB, free: 15.52 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.06403/0.8515, allocations: 12.01 MB / 0.6484 GB, free: 3.469 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04562/0.8972, allocations: 10.29 MB / 0.6584 GB, free: 9.156 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00507/0.9023, allocations: 1.314 MB / 0.6597 GB, free: 7.84 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03106/0.9334, allocations: 18.22 MB / 0.6775 GB, free: 5.344 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004941/0.9383, allocations: 431.5 kB / 0.6779 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009614/0.9393, allocations: 316 kB / 0.6782 GB, free: 4.613 MB / 0.4981 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.003542/0.9429, allocations: 2.024 MB / 0.6802 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005722/0.9435, allocations: 276.4 kB / 0.6804 GB, free: 2.305 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009075/0.9525, allocations: 5.106 MB / 0.6854 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007772/0.9603, allocations: 4.409 MB / 0.6897 GB, free: 8.738 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.9604, allocations: 3.938 kB / 0.6897 GB, free: 8.734 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.83e-05/0.9604, allocations: 15.95 kB / 0.6898 GB, free: 8.719 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2745/1.235, allocations: 12.91 MB / 0.7024 GB, free: 172.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.899e-05/1.235, allocations: 7.281 kB / 0.7024 GB, free: 172.2 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002115/1.237, allocations: 461.3 kB / 0.7028 GB, free: 172.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002984/1.24, allocations: 0.933 MB / 0.7037 GB, free: 172.2 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000455/1.241, allocations: 49.31 kB / 0.7038 GB, free: 172.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006454/1.247, allocations: 5.834 MB / 0.7095 GB, free: 168.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008564/1.248, allocations: 1.561 MB / 0.711 GB, free: 167.2 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01386/1.262, allocations: 7.732 MB / 0.7185 GB, free: 164.5 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001081/1.263, allocations: 327.7 kB / 0.7189 GB, free: 164.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005994/1.264, allocations: 43.42 kB / 0.7189 GB, free: 164.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001555/1.265, allocations: 196.2 kB / 0.7191 GB, free: 164.3 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004105/1.266, allocations: 149.6 kB / 0.7192 GB, free: 164.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000169/1.266, allocations: 70.56 kB / 0.7193 GB, free: 164.3 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00224/1.268, allocations: 1.715 MB / 0.721 GB, free: 163.7 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.9e-07/1.268, allocations: 0 / 0.721 GB, free: 163.7 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005015/1.273, allocations: 1.113 MB / 0.7221 GB, free: 163.6 MB / 0.5137 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.0005476/1.274, allocations: 180.5 kB / 0.7222 GB, free: 163.4 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01098/1.285, allocations: 6.669 MB / 0.7287 GB, free: 161.1 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.758e-05/1.285, allocations: 3.938 kB / 0.7287 GB, free: 161.1 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003595/1.288, allocations: 2.524 MB / 0.7312 GB, free: 160.1 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002344/1.291, allocations: 373.3 kB / 0.7316 GB, free: 159.9 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01542/1.306, allocations: 9.824 MB / 0.7412 GB, free: 151.3 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002934/1.309, allocations: 3.165 MB / 0.7442 GB, free: 148.4 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004016/1.313, allocations: 2.056 MB / 0.7463 GB, free: 146.3 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007412/1.314, allocations: 215.4 kB / 0.7465 GB, free: 146.1 MB / 0.5137 GB Notification: Performance of SimCode: time 1.472e-06/1.314, allocations: 0 / 0.7465 GB, free: 146.1 MB / 0.5137 GB Notification: Performance of Templates: time 0.06197/1.376, allocations: 42.03 MB / 0.7875 GB, free: 104.2 MB / 0.5137 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches