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.0007722/0.0007722, allocations: 96.97 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008838/0.0008839, allocations: 206.3 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 227.8 MB / 246.8 MB, free: 9.719 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2272/0.2272, allocations: 46.18 MB / 345.2 MB, free: 11.16 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003694/0.0003694, allocations: 8 kB / 419.5 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1539/0.1543, allocations: 63.57 MB / 483.1 MB, free: 4.113 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.02409/0.1784, allocations: 24.69 MB / 0.4959 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01467/0.1931, allocations: 6.287 MB / 0.502 GB, free: 5.008 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004728/0.1979, allocations: 103.8 kB / 0.5021 GB, free: 4.906 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001404/0.1993, allocations: 418.2 kB / 0.5025 GB, free: 4.496 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004365/0.2037, allocations: 1.639 MB / 0.5041 GB, free: 2.855 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00148/0.2052, allocations: 0.507 MB / 0.5046 GB, free: 2.348 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.3206/0.5259, allocations: 5.465 MB / 0.5099 GB, free: 11.61 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004751/0.5307, allocations: 2.262 MB / 0.5122 GB, free: 11.33 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002406/0.5331, allocations: 0.9337 MB / 0.5131 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003361/0.5365, allocations: 1.688 MB / 0.5147 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000742/0.5373, allocations: 122.5 kB / 0.5148 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003879/0.5411, allocations: 1.285 MB / 0.5161 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002671/0.5438, allocations: 1.499 MB / 0.5176 GB, free: 10.99 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002574/0.5464, allocations: 1.756 MB / 0.5193 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008357/0.5548, allocations: 5.735 MB / 0.5249 GB, free: 8.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.263e-06/0.5548, allocations: 1.094 kB / 0.5249 GB, free: 8.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.256e-06/0.5549, allocations: 0 / 0.5249 GB, free: 8.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002274/0.5551, allocations: 0 / 0.5249 GB, free: 8.91 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.008464/0.5636, allocations: 3.349 MB / 0.5281 GB, free: 6.746 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.5636, allocations: 8.875 kB / 0.5281 GB, free: 6.746 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02042/0.584, allocations: 6.253 MB / 0.5343 GB, free: 3.832 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00646/0.5906, allocations: 2.156 MB / 0.5364 GB, free: 3.035 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001859/0.5908, allocations: 182.1 kB / 0.5365 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001359/0.5921, allocations: 310 kB / 0.5368 GB, free: 3.004 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0194/0.6116, allocations: 10.73 MB / 0.5473 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.64e-05/0.6117, allocations: 33.22 kB / 0.5473 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003803/0.6121, allocations: 113.4 kB / 0.5474 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0041/0.6162, allocations: 2.459 MB / 0.5499 GB, free: 8.242 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02299/0.6392, allocations: 10.18 MB / 0.5598 GB, free: 14.17 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0641/0.7033, allocations: 35.67 MB / 0.5946 GB, free: 10.12 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01229/0.7157, allocations: 5.598 MB / 0.6001 GB, free: 4.297 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003542/0.7193, allocations: 2.333 MB / 0.6024 GB, free: 1.965 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001825/0.7211, allocations: 1.877 MB / 0.6042 GB, free: 15.76 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.98e-05/0.7212, allocations: 52.56 kB / 0.6043 GB, free: 15.7 MB / 462.1 MB Notification: Performance of pre-optimization done (n=224): time 5.099e-06/0.7212, allocations: 0 / 0.6043 GB, free: 15.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=231): time 0.03759/0.7588, allocations: 14.95 MB / 0.6189 GB, free: 0.6641 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001445/0.7603, allocations: 1.531 MB / 0.6204 GB, free: 14.99 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004767/0.7651, allocations: 2.786 MB / 0.6231 GB, free: 12.19 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007369/0.7658, allocations: 60.91 kB / 0.6231 GB, free: 12.12 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00221/0.7681, allocations: 2.674 MB / 0.6257 GB, free: 9.445 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001496/0.7696, allocations: 0.852 MB / 0.6266 GB, free: 8.602 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008161/0.7704, allocations: 486.3 kB / 0.627 GB, free: 8.117 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.7705, allocations: 301.1 kB / 0.6273 GB, free: 7.82 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004092/0.7746, allocations: 2.634 MB / 0.6299 GB, free: 5.18 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007468/0.7821, allocations: 5.644 MB / 0.6354 GB, free: 14.12 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01296/0.7951, allocations: 8.947 MB / 0.6441 GB, free: 4.098 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.848e-05/0.7953, allocations: 28 kB / 0.6442 GB, free: 4.07 MB / 494.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.07013/0.8654, allocations: 17.15 MB / 0.6609 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001023/0.8656, allocations: 52 kB / 0.661 GB, free: 2.832 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04813/0.9137, allocations: 10.63 MB / 0.6714 GB, free: 8.184 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0516/0.9653, allocations: 8.639 MB / 0.6798 GB, free: 15.52 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00564/0.971, allocations: 1.322 MB / 0.6811 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02908/1, allocations: 15.64 MB / 0.6964 GB, free: 14.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00476/1.005, allocations: 423.5 kB / 0.6968 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008497/1.006, allocations: 316 kB / 0.6971 GB, free: 13.57 MB / 0.545 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.004635/1.01, allocations: 2.029 MB / 0.699 GB, free: 11.54 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005252/1.011, allocations: 272.4 kB / 0.6993 GB, free: 11.27 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00927/1.02, allocations: 5.114 MB / 0.7043 GB, free: 6.121 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007733/1.028, allocations: 4.409 MB / 0.7086 GB, free: 1.695 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.166e-05/1.028, allocations: 0 / 0.7086 GB, free: 1.695 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.852e-05/1.028, allocations: 7.969 kB / 0.7086 GB, free: 1.688 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3135/1.342, allocations: 12.92 MB / 0.7212 GB, free: 193.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-05/1.342, allocations: 12.28 kB / 0.7212 GB, free: 193.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00261/1.344, allocations: 463 kB / 0.7217 GB, free: 193.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003832/1.348, allocations: 0.9396 MB / 0.7226 GB, free: 193.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003961/1.349, allocations: 47.08 kB / 0.7226 GB, free: 193.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007324/1.356, allocations: 5.46 MB / 0.728 GB, free: 189.8 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008313/1.357, allocations: 1.471 MB / 0.7294 GB, free: 188.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01061/1.367, allocations: 7.73 MB / 0.737 GB, free: 185.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000878/1.368, allocations: 332.4 kB / 0.7373 GB, free: 185.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003162/1.369, allocations: 42.22 kB / 0.7373 GB, free: 185.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001433/1.37, allocations: 200 kB / 0.7375 GB, free: 185.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004087/1.37, allocations: 142.1 kB / 0.7376 GB, free: 185.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001725/1.371, allocations: 74.88 kB / 0.7377 GB, free: 185.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002843/1.374, allocations: 1.71 MB / 0.7394 GB, free: 184.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.11e-07/1.374, allocations: 0 / 0.7394 GB, free: 184.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005427/1.379, allocations: 1.092 MB / 0.7404 GB, free: 184.8 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.0004959/1.379, allocations: 183.1 kB / 0.7406 GB, free: 184.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009704/1.389, allocations: 6.549 MB / 0.747 GB, free: 180.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/1.389, allocations: 0 / 0.747 GB, free: 180.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003183/1.392, allocations: 2.537 MB / 0.7495 GB, free: 178.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004484/1.397, allocations: 367.3 kB / 0.7498 GB, free: 177.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01646/1.413, allocations: 11.97 MB / 0.7615 GB, free: 166.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003469/1.417, allocations: 3.162 MB / 0.7646 GB, free: 164.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004693/1.422, allocations: 2.065 MB / 0.7666 GB, free: 162.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006911/1.422, allocations: 207.4 kB / 0.7668 GB, free: 162.4 MB / 0.545 GB Notification: Performance of SimCode: time 1.723e-06/1.422, allocations: 0 / 0.7668 GB, free: 162.4 MB / 0.545 GB Notification: Performance of Templates: time 0.06288/1.485, allocations: 43.9 MB / 0.8097 GB, free: 118.6 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 -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/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_trunk_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches