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.0009999/0.001, allocations: 106.2 kB / 17.63 MB, free: 5.344 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.0009722/0.0009722, allocations: 192 kB / 18.56 MB, free: 4.434 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.347/1.347, allocations: 222.9 MB / 242.2 MB, free: 15.14 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.2201/0.2201, allocations: 44.18 MB / 336.6 MB, free: 2.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001355, allocations: 67.22 kB / 408.4 MB, free: 27.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1339, allocations: 60.82 MB / 469.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.0136/0.1476, allocations: 11.79 MB / 481 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008425/0.1561, allocations: 4.057 MB / 485.1 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001413/0.1575, allocations: 63.81 kB / 485.2 MB, free: 14.37 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002208/0.1597, allocations: 1.183 MB / 486.3 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004039/0.1638, allocations: 1.751 MB / 488.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001372/0.1652, allocations: 0.5496 MB / 488.6 MB, free: 10.88 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005012/0.1703, allocations: 3.961 MB / 492.6 MB, free: 6.906 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002181/0.1725, allocations: 1.78 MB / 494.4 MB, free: 5.102 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001819/0.1743, allocations: 1.168 MB / 495.6 MB, free: 3.93 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002779/0.1771, allocations: 1.674 MB / 497.2 MB, free: 2.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005686/0.1777, allocations: 219.9 kB / 497.4 MB, free: 2.035 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002343/0.18, allocations: 1.307 MB / 498.7 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001386/0.1814, allocations: 1.582 MB / 0.4886 GB, free: 15.14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001808/0.1832, allocations: 1.848 MB / 0.4904 GB, free: 13.28 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006697/0.19, allocations: 5.969 MB / 0.4962 GB, free: 7.293 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.19, allocations: 0 / 0.4962 GB, free: 7.293 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.19, allocations: 0 / 0.4962 GB, free: 7.293 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001792/0.1902, allocations: 0 / 0.4962 GB, free: 7.293 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.007897/0.1981, allocations: 4.111 MB / 0.5003 GB, free: 3.113 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.1981, allocations: 11.97 kB / 0.5003 GB, free: 3.102 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2691/0.4672, allocations: 5.663 MB / 0.5058 GB, free: 45.78 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006721/0.474, allocations: 2.194 MB / 0.5079 GB, free: 45.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002249/0.4742, allocations: 178.5 kB / 0.5081 GB, free: 45.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001162/0.4754, allocations: 313.7 kB / 0.5084 GB, free: 45.15 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01899/0.4944, allocations: 10.72 MB / 0.5189 GB, free: 40.95 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-05/0.4945, allocations: 30.97 kB / 0.5189 GB, free: 40.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003576/0.4949, allocations: 115.1 kB / 0.519 GB, free: 40.89 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003489/0.4984, allocations: 2.461 MB / 0.5214 GB, free: 39.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01734/0.5158, allocations: 10.16 MB / 0.5313 GB, free: 31.29 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0492/0.565, allocations: 35.71 MB / 0.5662 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01203/0.5771, allocations: 5.6 MB / 0.5717 GB, free: 4.988 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003418/0.5805, allocations: 2.337 MB / 0.574 GB, free: 2.648 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002036/0.5826, allocations: 1.876 MB / 0.5758 GB, free: 448 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.834e-05/0.5826, allocations: 52.56 kB / 0.5758 GB, free: 388 kB / 398.1 MB Notification: Performance of pre-optimization done (n=224): time 4.498e-06/0.5827, allocations: 0 / 0.5758 GB, free: 388 kB / 398.1 MB Notification: Performance of matching and sorting (n=231): time 0.03729/0.6199, allocations: 14.96 MB / 0.5905 GB, free: 1.301 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001449/0.6214, allocations: 1.606 MB / 0.592 GB, free: 15.54 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003951/0.6254, allocations: 2.802 MB / 0.5948 GB, free: 12.72 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005947/0.626, allocations: 53.7 kB / 0.5948 GB, free: 12.66 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00194/0.628, allocations: 2.677 MB / 0.5974 GB, free: 9.941 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001241/0.6292, allocations: 0.8519 MB / 0.5983 GB, free: 9.078 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001631/0.6309, allocations: 1.103 MB / 0.5993 GB, free: 7.961 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.631, allocations: 305.1 kB / 0.5996 GB, free: 7.66 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00381/0.6348, allocations: 2.634 MB / 0.6022 GB, free: 5.02 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006099/0.6409, allocations: 5.647 MB / 0.6077 GB, free: 13.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01108/0.652, allocations: 8.933 MB / 0.6164 GB, free: 3.496 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.506e-05/0.6522, allocations: 35.94 kB / 0.6165 GB, free: 3.461 MB / 446.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.06825/0.7204, allocations: 19.04 MB / 0.6351 GB, free: 392 kB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001638/0.7206, allocations: 51.98 kB / 0.6351 GB, free: 340 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04611/0.7668, allocations: 12.02 MB / 0.6468 GB, free: 4.285 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04746/0.8142, allocations: 10.3 MB / 0.6569 GB, free: 9.961 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005136/0.8194, allocations: 1.314 MB / 0.6582 GB, free: 8.645 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03265/0.8521, allocations: 18.22 MB / 0.676 GB, free: 6.156 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005349/0.8575, allocations: 435.5 kB / 0.6764 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001409/0.859, allocations: 320.1 kB / 0.6767 GB, free: 5.418 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.004292/0.8633, allocations: 2.024 MB / 0.6787 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006144/0.8639, allocations: 276.4 kB / 0.6789 GB, free: 3.109 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008669/0.8726, allocations: 5.114 MB / 0.6839 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007779/0.8804, allocations: 4.401 MB / 0.6882 GB, free: 9.543 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/0.8804, allocations: 0 / 0.6882 GB, free: 9.543 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.73e-05/0.8804, allocations: 7.969 kB / 0.6882 GB, free: 9.535 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2859/1.166, allocations: 12.94 MB / 0.7009 GB, free: 171.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.716e-05/1.166, allocations: 6.875 kB / 0.7009 GB, free: 171.3 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002016/1.168, allocations: 460.1 kB / 0.7013 GB, free: 171.3 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00292/1.171, allocations: 0.9411 MB / 0.7022 GB, free: 171.3 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002085/1.172, allocations: 48.62 kB / 0.7023 GB, free: 171.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006512/1.178, allocations: 5.848 MB / 0.708 GB, free: 168.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007623/1.179, allocations: 1.547 MB / 0.7095 GB, free: 166.6 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01318/1.192, allocations: 7.731 MB / 0.7171 GB, free: 163.9 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00119/1.193, allocations: 326.2 kB / 0.7174 GB, free: 163.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004117/1.194, allocations: 41.62 kB / 0.7174 GB, free: 163.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001478/1.195, allocations: 197 kB / 0.7176 GB, free: 163.7 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004228/1.196, allocations: 147.8 kB / 0.7177 GB, free: 163.7 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001764/1.196, allocations: 68.42 kB / 0.7178 GB, free: 163.7 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.002215/1.198, allocations: 1.724 MB / 0.7195 GB, free: 163.1 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.31e-07/1.198, allocations: 0 / 0.7195 GB, free: 163.1 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004375/1.202, allocations: 1.102 MB / 0.7206 GB, free: 163 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.0004789/1.203, allocations: 190.3 kB / 0.7207 GB, free: 162.8 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01338/1.216, allocations: 9.686 MB / 0.7302 GB, free: 160.1 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.121e-05/1.216, allocations: 0 / 0.7302 GB, free: 160.1 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00306/1.219, allocations: 2.529 MB / 0.7327 GB, free: 157.9 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002096/1.222, allocations: 368.4 kB / 0.733 GB, free: 157.6 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01335/1.235, allocations: 9.925 MB / 0.7427 GB, free: 148.6 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002654/1.238, allocations: 3.162 MB / 0.7458 GB, free: 146.1 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004045/1.242, allocations: 2.06 MB / 0.7478 GB, free: 144 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007038/1.242, allocations: 215.4 kB / 0.748 GB, free: 143.8 MB / 0.5137 GB Notification: Performance of SimCode: time 1.243e-06/1.242, allocations: 0 / 0.748 GB, free: 143.8 MB / 0.5137 GB Notification: Performance of Templates: time 0.063/1.305, allocations: 46.09 MB / 0.793 GB, free: 97.81 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 -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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","/var/lib/jenkins/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