Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001625/0.001625, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001942/0.001942, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2109/0.2109, allocations: 46.1 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 75.89 kB / 419 MB, free: 18.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1165, allocations: 62.45 MB / 481.5 MB, free: 4.508 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.0143/0.1309, allocations: 11.74 MB / 493.2 MB, free: 8.711 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0111/0.142, allocations: 4.065 MB / 497.3 MB, free: 4.633 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00299/0.145, allocations: 59.88 kB / 497.3 MB, free: 4.574 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003806/0.1489, allocations: 1.191 MB / 498.5 MB, free: 3.379 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006217/0.1552, allocations: 1.72 MB / 0.4885 GB, free: 1.652 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002087/0.1573, allocations: 0.5535 MB / 0.4891 GB, free: 1.098 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006648/0.164, allocations: 4.028 MB / 0.493 GB, free: 13.06 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002484/0.1665, allocations: 1.779 MB / 0.4947 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001895/0.1684, allocations: 1.156 MB / 0.4959 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002615/0.171, allocations: 1.666 MB / 0.4975 GB, free: 8.426 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007421/0.1718, allocations: 216 kB / 0.4977 GB, free: 8.215 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002462/0.1743, allocations: 1.287 MB / 0.4989 GB, free: 6.926 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001745/0.176, allocations: 1.562 MB / 0.5005 GB, free: 5.359 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002519/0.1785, allocations: 1.836 MB / 0.5023 GB, free: 3.512 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2251/0.4037, allocations: 6.167 MB / 0.5083 GB, free: 19.62 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.4037, allocations: 0 / 0.5083 GB, free: 19.62 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.4038, allocations: 1.531 kB / 0.5083 GB, free: 19.62 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002213/0.404, allocations: 0 / 0.5083 GB, free: 19.62 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.008809/0.4128, allocations: 4.067 MB / 0.5123 GB, free: 17.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.4129, allocations: 10.86 kB / 0.5123 GB, free: 17.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01935/0.4322, allocations: 6.141 MB / 0.5183 GB, free: 17.64 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006686/0.4389, allocations: 2.177 MB / 0.5204 GB, free: 17.15 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000162/0.4391, allocations: 181.6 kB / 0.5206 GB, free: 17.14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001251/0.4404, allocations: 313.4 kB / 0.5209 GB, free: 17.14 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01585/0.4562, allocations: 10.72 MB / 0.5313 GB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.36e-05/0.4564, allocations: 28.5 kB / 0.5314 GB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003394/0.4567, allocations: 111.8 kB / 0.5315 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003014/0.4597, allocations: 2.46 MB / 0.5339 GB, free: 12.17 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01642/0.4762, allocations: 10.15 MB / 0.5438 GB, free: 4.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04915/0.5254, allocations: 35.5 MB / 0.5785 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01135/0.5368, allocations: 5.595 MB / 0.5839 GB, free: 10.71 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003238/0.54, allocations: 2.332 MB / 0.5862 GB, free: 8.379 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001799/0.5419, allocations: 1.874 MB / 0.588 GB, free: 6.18 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.333e-05/0.5419, allocations: 66.45 kB / 0.5881 GB, free: 6.113 MB / 430.1 MB Notification: Performance of pre-optimization done (n=224): time 4.649e-06/0.5419, allocations: 0 / 0.5881 GB, free: 6.113 MB / 430.1 MB Notification: Performance of matching and sorting (n=231): time 0.03349/0.5754, allocations: 14.96 MB / 0.6027 GB, free: 7.074 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001195/0.5767, allocations: 1.61 MB / 0.6043 GB, free: 5.312 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003615/0.5803, allocations: 2.791 MB / 0.607 GB, free: 2.508 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004326/0.5807, allocations: 55.56 kB / 0.607 GB, free: 2.449 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001624/0.5824, allocations: 2.671 MB / 0.6097 GB, free: 15.79 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009572/0.5833, allocations: 0.8506 MB / 0.6105 GB, free: 14.95 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001478/0.5848, allocations: 1.103 MB / 0.6116 GB, free: 13.83 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.646e-05/0.5849, allocations: 305.1 kB / 0.6119 GB, free: 13.53 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003531/0.5885, allocations: 2.642 MB / 0.6144 GB, free: 10.89 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005296/0.5938, allocations: 5.638 MB / 0.6199 GB, free: 3.828 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009973/0.6038, allocations: 8.936 MB / 0.6287 GB, free: 9.855 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.114e-05/0.6039, allocations: 34.3 kB / 0.6287 GB, free: 9.824 MB / 478.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.05982/0.6637, allocations: 17.15 MB / 0.6454 GB, free: 9.004 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.772e-05/0.6638, allocations: 48 kB / 0.6455 GB, free: 8.957 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04055/0.7044, allocations: 10.63 MB / 0.6559 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04332/0.7477, allocations: 8.647 MB / 0.6643 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004675/0.7524, allocations: 1.31 MB / 0.6656 GB, free: 4.324 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02757/0.78, allocations: 17.82 MB / 0.683 GB, free: 2.223 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004579/0.7846, allocations: 422 kB / 0.6834 GB, free: 1.812 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008319/0.7855, allocations: 320 kB / 0.6837 GB, free: 1.5 MB / 0.5137 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.003219/0.7887, allocations: 2.019 MB / 0.6857 GB, free: 15.47 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004368/0.7892, allocations: 272.4 kB / 0.6859 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008292/0.7975, allocations: 5.115 MB / 0.6909 GB, free: 10.05 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007239/0.8047, allocations: 4.4 MB / 0.6952 GB, free: 5.637 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.8047, allocations: 4 kB / 0.6952 GB, free: 5.633 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-05/0.8048, allocations: 15.98 kB / 0.6952 GB, free: 5.617 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02198/0.8268, allocations: 12.92 MB / 0.7079 GB, free: 8.555 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-05/0.8268, allocations: 16.03 kB / 0.7079 GB, free: 8.539 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001891/0.8287, allocations: 459.2 kB / 0.7083 GB, free: 8.09 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002842/0.8316, allocations: 0.9347 MB / 0.7092 GB, free: 7.145 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000175/0.8317, allocations: 47.98 kB / 0.7093 GB, free: 7.098 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006335/0.8381, allocations: 5.838 MB / 0.715 GB, free: 0.9766 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.2274/1.065, allocations: 1.539 MB / 0.7165 GB, free: 197.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01278/1.078, allocations: 7.733 MB / 0.724 GB, free: 195.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008916/1.079, allocations: 327.2 kB / 0.7243 GB, free: 195.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004976/1.08, allocations: 44.25 kB / 0.7244 GB, free: 195.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001542/1.081, allocations: 197.4 kB / 0.7246 GB, free: 195.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004106/1.082, allocations: 150.1 kB / 0.7247 GB, free: 195.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001888/1.082, allocations: 65.66 kB / 0.7248 GB, free: 195.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003094/1.085, allocations: 1.723 MB / 0.7265 GB, free: 195.1 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.51e-07/1.085, allocations: 0 / 0.7265 GB, free: 195.1 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005344/1.09, allocations: 1.083 MB / 0.7275 GB, free: 195 MB / 0.545 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.0005126/1.091, allocations: 198.2 kB / 0.7277 GB, free: 194.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009983/1.101, allocations: 6.602 MB / 0.7342 GB, free: 192.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.38e-05/1.101, allocations: 0 / 0.7342 GB, free: 192.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003112/1.104, allocations: 2.529 MB / 0.7366 GB, free: 191.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002127/1.106, allocations: 379.8 kB / 0.737 GB, free: 191.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01378/1.12, allocations: 9.809 MB / 0.7466 GB, free: 186.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002824/1.123, allocations: 3.159 MB / 0.7497 GB, free: 184.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00356/1.126, allocations: 2.057 MB / 0.7517 GB, free: 183.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006743/1.127, allocations: 219 kB / 0.7519 GB, free: 182.9 MB / 0.545 GB Notification: Performance of SimCode: time 6.72e-07/1.127, allocations: 0 / 0.7519 GB, free: 182.9 MB / 0.545 GB Notification: Performance of Templates: time 0.05847/1.186, allocations: 41.93 MB / 0.7928 GB, free: 141.3 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches