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.001206/0.001206, allocations: 108.3 kB / 18.41 MB, free: 4.566 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.001161/0.001161, allocations: 187 kB / 19.33 MB, free: 3.641 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.392/1.392, allocations: 222.9 MB / 243 MB, free: 15.08 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.2084/0.2084, allocations: 44.19 MB / 337.4 MB, free: 2.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.00127, allocations: 74.02 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1355, allocations: 60.82 MB / 470.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01316/0.1487, allocations: 11.8 MB / 482.5 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008847/0.1576, allocations: 4.058 MB / 486.6 MB, free: 13.74 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001432/0.1591, allocations: 59.88 kB / 486.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002325/0.1614, allocations: 1.175 MB / 487.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00379/0.1652, allocations: 1.759 MB / 489.6 MB, free: 10.73 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001355/0.1666, allocations: 0.5574 MB / 490.1 MB, free: 10.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004985/0.1716, allocations: 3.957 MB / 494.1 MB, free: 6.211 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002171/0.1738, allocations: 1.787 MB / 495.9 MB, free: 4.398 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001795/0.1756, allocations: 1.167 MB / 497 MB, free: 3.227 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002007/0.1776, allocations: 1.674 MB / 498.7 MB, free: 1.547 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004415/0.1781, allocations: 220 kB / 498.9 MB, free: 1.332 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002351/0.1805, allocations: 1.299 MB / 0.4885 GB, free: 32 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001476/0.1819, allocations: 1.582 MB / 0.49 GB, free: 14.45 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00212/0.1841, allocations: 1.851 MB / 0.4918 GB, free: 12.58 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007501/0.1916, allocations: 6.251 MB / 0.4979 GB, free: 6.309 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1916, allocations: 0 / 0.4979 GB, free: 6.309 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1916, allocations: 4 kB / 0.498 GB, free: 6.305 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001329/0.1918, allocations: 0 / 0.498 GB, free: 6.305 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.007379/0.1992, allocations: 4.107 MB / 0.502 GB, free: 2.129 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.1992, allocations: 8.031 kB / 0.502 GB, free: 2.121 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2987/0.4979, allocations: 5.666 MB / 0.5075 GB, free: 46.37 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00678/0.5047, allocations: 2.215 MB / 0.5097 GB, free: 45.76 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001906/0.5049, allocations: 185.8 kB / 0.5098 GB, free: 45.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001121/0.506, allocations: 316.7 kB / 0.5101 GB, free: 45.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01644/0.5225, allocations: 10.72 MB / 0.5206 GB, free: 40.79 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.135e-05/0.5226, allocations: 23.59 kB / 0.5206 GB, free: 40.78 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003261/0.5229, allocations: 110.7 kB / 0.5207 GB, free: 40.74 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003083/0.526, allocations: 2.464 MB / 0.5231 GB, free: 39.78 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01707/0.5431, allocations: 10.16 MB / 0.5331 GB, free: 30.29 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04585/0.589, allocations: 35.5 MB / 0.5677 GB, free: 10.01 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01112/0.6002, allocations: 5.604 MB / 0.5732 GB, free: 4.184 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003448/0.6037, allocations: 2.337 MB / 0.5755 GB, free: 1.844 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001828/0.6055, allocations: 1.876 MB / 0.5773 GB, free: 15.63 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.497e-05/0.6056, allocations: 52.5 kB / 0.5774 GB, free: 15.57 MB / 414.1 MB Notification: Performance of pre-optimization done (n=224): time 6.172e-06/0.6056, allocations: 0 / 0.5774 GB, free: 15.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=231): time 0.03394/0.6396, allocations: 14.96 MB / 0.592 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001479/0.6411, allocations: 1.604 MB / 0.5936 GB, free: 14.73 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004119/0.6452, allocations: 2.798 MB / 0.5963 GB, free: 11.92 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005497/0.6458, allocations: 57.77 kB / 0.5963 GB, free: 11.86 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002037/0.6478, allocations: 2.681 MB / 0.599 GB, free: 9.133 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001059/0.6489, allocations: 0.8519 MB / 0.5998 GB, free: 8.27 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001664/0.6506, allocations: 1.107 MB / 0.6009 GB, free: 7.148 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.6507, allocations: 301.1 kB / 0.6012 GB, free: 6.852 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003912/0.6546, allocations: 2.63 MB / 0.6037 GB, free: 4.215 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006294/0.6609, allocations: 5.644 MB / 0.6092 GB, free: 13.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01176/0.6727, allocations: 8.945 MB / 0.618 GB, free: 2.684 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001102/0.6728, allocations: 28 kB / 0.618 GB, free: 2.656 MB / 446.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.05995/0.7328, allocations: 19.04 MB / 0.6366 GB, free: 15.58 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.7e-05/0.7329, allocations: 48 kB / 0.6366 GB, free: 15.53 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04069/0.7736, allocations: 12.02 MB / 0.6484 GB, free: 3.477 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04233/0.816, allocations: 10.28 MB / 0.6584 GB, free: 9.164 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004638/0.8207, allocations: 1.31 MB / 0.6597 GB, free: 7.852 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02871/0.8494, allocations: 18.21 MB / 0.6775 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004563/0.854, allocations: 439.4 kB / 0.6779 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008895/0.8549, allocations: 320 kB / 0.6782 GB, free: 4.625 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.003443/0.8584, allocations: 2.024 MB / 0.6802 GB, free: 2.59 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005126/0.8589, allocations: 272.4 kB / 0.6805 GB, free: 2.32 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008477/0.8674, allocations: 5.11 MB / 0.6854 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007293/0.8747, allocations: 4.409 MB / 0.6898 GB, free: 8.75 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.245e-05/0.8748, allocations: 4 kB / 0.6898 GB, free: 8.746 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-05/0.8748, allocations: 7.969 kB / 0.6898 GB, free: 8.738 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2931/1.168, allocations: 12.92 MB / 0.7024 GB, free: 172 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.55e-05/1.168, allocations: 6.812 kB / 0.7024 GB, free: 172 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002136/1.17, allocations: 457.6 kB / 0.7028 GB, free: 171.9 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003064/1.173, allocations: 0.9392 MB / 0.7037 GB, free: 171.9 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003214/1.173, allocations: 49.03 kB / 0.7038 GB, free: 171.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006006/1.179, allocations: 5.829 MB / 0.7095 GB, free: 168.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008931/1.18, allocations: 1.555 MB / 0.711 GB, free: 167 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01343/1.194, allocations: 7.726 MB / 0.7185 GB, free: 164.2 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009962/1.195, allocations: 339 kB / 0.7189 GB, free: 164.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009426/1.196, allocations: 39.75 kB / 0.7189 GB, free: 164.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002046/1.198, allocations: 194 kB / 0.7191 GB, free: 164.1 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004758/1.198, allocations: 148.1 kB / 0.7192 GB, free: 164 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001642/1.199, allocations: 74.53 kB / 0.7193 GB, free: 164 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00221/1.201, allocations: 1.718 MB / 0.721 GB, free: 163.4 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.8e-07/1.201, allocations: 0 / 0.721 GB, free: 163.4 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00456/1.205, allocations: 1.107 MB / 0.7221 GB, free: 163.3 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.0005206/1.206, allocations: 188 kB / 0.7222 GB, free: 163.2 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.009514/1.215, allocations: 6.667 MB / 0.7287 GB, free: 160.9 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/1.215, allocations: 0 / 0.7287 GB, free: 160.9 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003158/1.219, allocations: 2.526 MB / 0.7312 GB, free: 159.9 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002157/1.221, allocations: 383.7 kB / 0.7316 GB, free: 159.7 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01445/1.235, allocations: 9.822 MB / 0.7412 GB, free: 151.1 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002725/1.238, allocations: 3.159 MB / 0.7443 GB, free: 148.3 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003612/1.242, allocations: 2.064 MB / 0.7463 GB, free: 146.2 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006759/1.242, allocations: 211.4 kB / 0.7465 GB, free: 146 MB / 0.5137 GB Notification: Performance of SimCode: time 9.62e-07/1.242, allocations: 0 / 0.7465 GB, free: 146 MB / 0.5137 GB Notification: Performance of Templates: time 0.05811/1.301, allocations: 42.03 MB / 0.7875 GB, free: 104.1 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 gbode -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