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.001542/0.001543, allocations: 113.8 kB / 17.78 MB, free: 5.309 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.002347/0.002347, allocations: 183.1 kB / 18.71 MB, free: 4.387 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.4/1.4, allocations: 222.9 MB / 242.4 MB, free: 15.21 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.2213/0.2213, allocations: 44.19 MB / 336.7 MB, free: 2.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 68.08 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4106/0.4118, allocations: 60.82 MB / 0.5189 GB, free: 3.625 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01322/0.4251, allocations: 11.81 MB / 0.5304 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00924/0.4344, allocations: 4.055 MB / 0.5344 GB, free: 8.152 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002466/0.4369, allocations: 61.56 kB / 0.5345 GB, free: 8.145 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002617/0.4395, allocations: 1.172 MB / 0.5356 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005016/0.4446, allocations: 1.797 MB / 0.5374 GB, free: 6.121 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001684/0.4463, allocations: 0.5537 MB / 0.5379 GB, free: 5.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006123/0.4525, allocations: 3.947 MB / 0.5417 GB, free: 3.723 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003619/0.4561, allocations: 1.801 MB / 0.5435 GB, free: 2.586 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003176/0.4593, allocations: 1.171 MB / 0.5447 GB, free: 1.633 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002292/0.4616, allocations: 1.682 MB / 0.5463 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005186/0.4622, allocations: 216 kB / 0.5465 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002659/0.4648, allocations: 1.303 MB / 0.5478 GB, free: 14.43 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00149/0.4663, allocations: 1.585 MB / 0.5493 GB, free: 12.84 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001925/0.4683, allocations: 1.848 MB / 0.5511 GB, free: 10.98 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006936/0.4752, allocations: 6.241 MB / 0.5572 GB, free: 4.719 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.4752, allocations: 0 / 0.5572 GB, free: 4.719 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.4753, allocations: 0 / 0.5572 GB, free: 4.719 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001287/0.4754, allocations: 4 kB / 0.5572 GB, free: 4.715 MB / 414.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.00803/0.4834, allocations: 4.103 MB / 0.5612 GB, free: 0.543 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.4835, allocations: 19.97 kB / 0.5612 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01998/0.5035, allocations: 5.669 MB / 0.5668 GB, free: 10.84 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005708/0.5092, allocations: 2.224 MB / 0.569 GB, free: 8.57 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001855/0.5094, allocations: 176.8 kB / 0.5691 GB, free: 8.395 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001149/0.5106, allocations: 311.5 kB / 0.5694 GB, free: 8.09 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01886/0.5295, allocations: 10.72 MB / 0.5799 GB, free: 12.91 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.103e-05/0.5296, allocations: 27.75 kB / 0.5799 GB, free: 12.88 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003735/0.53, allocations: 111.8 kB / 0.58 GB, free: 12.77 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004011/0.534, allocations: 2.471 MB / 0.5824 GB, free: 10.3 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02135/0.5554, allocations: 10.16 MB / 0.5924 GB, free: 128 kB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05916/0.6146, allocations: 35.5 MB / 0.627 GB, free: 11.75 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0127/0.6273, allocations: 5.599 MB / 0.6325 GB, free: 5.926 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003491/0.6309, allocations: 2.334 MB / 0.6348 GB, free: 3.586 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00197/0.6329, allocations: 1.876 MB / 0.6366 GB, free: 1.375 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.911e-05/0.633, allocations: 53.16 kB / 0.6367 GB, free: 1.316 MB / 494.1 MB Notification: Performance of pre-optimization done (n=224): time 1.435e-05/0.633, allocations: 0 / 0.6367 GB, free: 1.316 MB / 494.1 MB Notification: Performance of matching and sorting (n=231): time 0.03896/0.672, allocations: 14.96 MB / 0.6513 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001441/0.6735, allocations: 1.61 MB / 0.6528 GB, free: 476 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005041/0.6785, allocations: 2.795 MB / 0.6556 GB, free: 13.65 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0003508/0.6789, allocations: 53.77 kB / 0.6556 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002036/0.681, allocations: 2.681 MB / 0.6582 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009739/0.682, allocations: 0.8557 MB / 0.6591 GB, free: 10.01 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001976/0.684, allocations: 1.107 MB / 0.6602 GB, free: 8.887 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.294e-05/0.6841, allocations: 301.1 kB / 0.6604 GB, free: 8.59 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00395/0.688, allocations: 2.634 MB / 0.663 GB, free: 5.949 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006578/0.6946, allocations: 5.64 MB / 0.6685 GB, free: 14.83 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01295/0.7076, allocations: 8.948 MB / 0.6773 GB, free: 4.414 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001795/0.7078, allocations: 28 kB / 0.6773 GB, free: 4.387 MB / 0.5294 GB Notification: Performance of matching and sorting (n=733) (initialization): time 0.07103/0.7788, allocations: 19.04 MB / 0.6959 GB, free: 1.32 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.000147/0.779, allocations: 49 kB / 0.6959 GB, free: 1.273 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04977/0.8288, allocations: 12.02 MB / 0.7077 GB, free: 5.215 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05167/0.8805, allocations: 10.29 MB / 0.7177 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004972/0.8855, allocations: 1.306 MB / 0.719 GB, free: 9.586 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4013/1.287, allocations: 18.2 MB / 0.7368 GB, free: 177.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005456/1.292, allocations: 439.7 kB / 0.7372 GB, free: 177.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001141/1.294, allocations: 320.7 kB / 0.7375 GB, free: 177.8 MB / 0.5762 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.003949/1.298, allocations: 2.027 MB / 0.7395 GB, free: 177 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006145/1.298, allocations: 273.7 kB / 0.7397 GB, free: 177 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009103/1.307, allocations: 5.109 MB / 0.7447 GB, free: 175.4 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006841/1.314, allocations: 4.408 MB / 0.749 GB, free: 174.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.229e-05/1.314, allocations: 3.844 kB / 0.749 GB, free: 174.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.246e-05/1.314, allocations: 15.42 kB / 0.749 GB, free: 174.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01959/1.334, allocations: 12.9 MB / 0.7616 GB, free: 169.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.434e-05/1.334, allocations: 11.64 kB / 0.7617 GB, free: 169.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001937/1.336, allocations: 465.9 kB / 0.7621 GB, free: 169.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002598/1.338, allocations: 0.9345 MB / 0.763 GB, free: 169.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000191/1.339, allocations: 51.97 kB / 0.7631 GB, free: 169.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00531/1.344, allocations: 5.826 MB / 0.7687 GB, free: 163.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007682/1.345, allocations: 1.545 MB / 0.7703 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009389/1.354, allocations: 7.729 MB / 0.7778 GB, free: 153.8 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009932/1.355, allocations: 330.4 kB / 0.7781 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004066/1.356, allocations: 43.98 kB / 0.7782 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001482/1.357, allocations: 199.6 kB / 0.7784 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003835/1.357, allocations: 148.7 kB / 0.7785 GB, free: 153.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001504/1.358, allocations: 59.98 kB / 0.7786 GB, free: 153.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002109/1.36, allocations: 1.728 MB / 0.7802 GB, free: 151.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.11e-07/1.36, allocations: 0 / 0.7802 GB, free: 151.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004521/1.364, allocations: 1.11 MB / 0.7813 GB, free: 150.3 MB / 0.5762 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.0004894/1.365, allocations: 180 kB / 0.7815 GB, free: 150.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00932/1.374, allocations: 6.676 MB / 0.788 GB, free: 143.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.516e-05/1.374, allocations: 4 kB / 0.788 GB, free: 143.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003161/1.377, allocations: 2.527 MB / 0.7905 GB, free: 140.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002713/1.38, allocations: 386.7 kB / 0.7909 GB, free: 140.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01952/1.4, allocations: 9.826 MB / 0.8005 GB, free: 130.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006008/1.406, allocations: 3.16 MB / 0.8035 GB, free: 127.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.007849/1.414, allocations: 2.064 MB / 0.8056 GB, free: 125.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001653/1.415, allocations: 207.4 kB / 0.8058 GB, free: 125.1 MB / 0.5762 GB Notification: Performance of SimCode: time 1.683e-06/1.415, allocations: 0 / 0.8058 GB, free: 125.1 MB / 0.5762 GB Notification: Performance of Templates: time 0.1002/1.516, allocations: 43.87 MB / 0.8486 GB, free: 81.36 MB / 0.5762 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