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.001393/0.001393, allocations: 113.1 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001403/0.001403, allocations: 208.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2112/0.2112, allocations: 46.1 MB / 345 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 75.88 kB / 482 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.31/0.3116, allocations: 62.43 MB / 0.5317 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.0118/0.3234, allocations: 11.76 MB / 0.5431 GB, free: 4.387 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008772/0.3322, allocations: 4.055 MB / 0.5471 GB, free: 1.27 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001921/0.3342, allocations: 64.06 kB / 0.5472 GB, free: 1.258 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002678/0.3369, allocations: 1.175 MB / 0.5483 GB, free: 464 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004004/0.3409, allocations: 1.718 MB / 0.55 GB, free: 14.92 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00128/0.3422, allocations: 0.5613 MB / 0.5505 GB, free: 14.36 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005268/0.3475, allocations: 4.043 MB / 0.5545 GB, free: 10.31 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002194/0.3497, allocations: 1.771 MB / 0.5562 GB, free: 8.516 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001664/0.3514, allocations: 1.16 MB / 0.5573 GB, free: 7.352 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001972/0.3534, allocations: 1.67 MB / 0.559 GB, free: 5.676 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004547/0.3539, allocations: 216 kB / 0.5592 GB, free: 5.465 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002154/0.356, allocations: 1.287 MB / 0.5604 GB, free: 4.176 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001201/0.3573, allocations: 1.574 MB / 0.562 GB, free: 2.598 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001428/0.3587, allocations: 1.828 MB / 0.5638 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00553/0.3642, allocations: 6.179 MB / 0.5698 GB, free: 10.56 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3643, allocations: 0 / 0.5698 GB, free: 10.56 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3643, allocations: 0 / 0.5698 GB, free: 10.56 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.669e-05/0.3644, allocations: 0 / 0.5698 GB, free: 10.56 MB / 430.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.006195/0.3706, allocations: 4.061 MB / 0.5738 GB, free: 6.43 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.3706, allocations: 8.922 kB / 0.5738 GB, free: 6.422 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02009/0.3907, allocations: 6.137 MB / 0.5798 GB, free: 276 kB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004768/0.3955, allocations: 2.181 MB / 0.5819 GB, free: 14.04 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001635/0.3957, allocations: 180.8 kB / 0.5821 GB, free: 13.86 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001156/0.3969, allocations: 319.5 kB / 0.5824 GB, free: 13.55 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01688/0.4137, allocations: 10.71 MB / 0.5928 GB, free: 2.379 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.831e-05/0.4139, allocations: 23.81 kB / 0.5929 GB, free: 2.355 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005625/0.4144, allocations: 115.8 kB / 0.593 GB, free: 2.242 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003811/0.4183, allocations: 2.463 MB / 0.5954 GB, free: 15.77 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01833/0.4366, allocations: 10.16 MB / 0.6053 GB, free: 5.605 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04827/0.4849, allocations: 35.5 MB / 0.64 GB, free: 1.23 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01213/0.4971, allocations: 5.608 MB / 0.6454 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003154/0.5003, allocations: 2.333 MB / 0.6477 GB, free: 9.062 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001645/0.5019, allocations: 1.88 MB / 0.6496 GB, free: 6.848 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.124e-05/0.502, allocations: 56.5 kB / 0.6496 GB, free: 6.785 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=224): time 5.53e-06/0.502, allocations: 0 / 0.6496 GB, free: 6.785 MB / 0.4981 GB Notification: Performance of matching and sorting (n=231): time 0.0372/0.5392, allocations: 14.94 MB / 0.6642 GB, free: 7.723 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00131/0.5405, allocations: 1.611 MB / 0.6658 GB, free: 5.949 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004153/0.5447, allocations: 2.782 MB / 0.6685 GB, free: 3.152 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0003972/0.5451, allocations: 57.7 kB / 0.6686 GB, free: 3.09 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001973/0.5471, allocations: 2.681 MB / 0.6712 GB, free: 376 kB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001188/0.5483, allocations: 0.8521 MB / 0.672 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002095/0.5504, allocations: 1.107 MB / 0.6731 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 8.561e-05/0.5505, allocations: 301.1 kB / 0.6734 GB, free: 14.08 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003845/0.5544, allocations: 2.63 MB / 0.6759 GB, free: 11.45 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00583/0.5602, allocations: 5.643 MB / 0.6815 GB, free: 4.328 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01079/0.5711, allocations: 8.945 MB / 0.6902 GB, free: 9.914 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.748e-05/0.5712, allocations: 28 kB / 0.6902 GB, free: 9.887 MB / 0.545 GB Notification: Performance of matching and sorting (n=733) (initialization): time 0.06575/0.637, allocations: 17.15 MB / 0.707 GB, free: 8.699 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001359/0.6371, allocations: 48 kB / 0.707 GB, free: 8.652 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.3464/0.9835, allocations: 10.63 MB / 0.7174 GB, free: 159.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0482/1.032, allocations: 8.638 MB / 0.7258 GB, free: 159.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004692/1.036, allocations: 1.313 MB / 0.7271 GB, free: 159.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02648/1.063, allocations: 17.8 MB / 0.7445 GB, free: 149.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004433/1.067, allocations: 431.3 kB / 0.7449 GB, free: 149.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000668/1.068, allocations: 316 kB / 0.7452 GB, free: 149.1 MB / 0.5606 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.00278/1.071, allocations: 2.02 MB / 0.7472 GB, free: 147.1 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004105/1.071, allocations: 275.7 kB / 0.7474 GB, free: 147 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007419/1.079, allocations: 5.116 MB / 0.7524 GB, free: 141.9 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005993/1.085, allocations: 4.409 MB / 0.7567 GB, free: 137.5 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/1.085, allocations: 0 / 0.7567 GB, free: 137.5 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.557e-05/1.085, allocations: 15.81 kB / 0.7568 GB, free: 137.5 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0163/1.101, allocations: 12.91 MB / 0.7694 GB, free: 124.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-05/1.101, allocations: 12.17 kB / 0.7694 GB, free: 124.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001886/1.103, allocations: 455.2 kB / 0.7698 GB, free: 124.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002637/1.106, allocations: 0.9414 MB / 0.7707 GB, free: 123.1 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000183/1.106, allocations: 59.73 kB / 0.7708 GB, free: 123.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005257/1.111, allocations: 5.823 MB / 0.7765 GB, free: 117 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007468/1.112, allocations: 1.557 MB / 0.778 GB, free: 115.3 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009316/1.121, allocations: 7.73 MB / 0.7855 GB, free: 107.6 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007885/1.122, allocations: 328.6 kB / 0.7858 GB, free: 107.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006576/1.123, allocations: 43.98 kB / 0.7859 GB, free: 107.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001916/1.125, allocations: 195.5 kB / 0.7861 GB, free: 107.2 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004012/1.125, allocations: 150 kB / 0.7862 GB, free: 107 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001784/1.125, allocations: 63.98 kB / 0.7863 GB, free: 107 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002676/1.128, allocations: 1.72 MB / 0.788 GB, free: 105.2 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/1.128, allocations: 3.719 kB / 0.788 GB, free: 105.2 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004388/1.132, allocations: 1.088 MB / 0.789 GB, free: 104.2 MB / 0.5606 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.0004855/1.133, allocations: 184.2 kB / 0.7892 GB, free: 104 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.009169/1.142, allocations: 6.597 MB / 0.7956 GB, free: 97.36 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.858e-06/1.142, allocations: 1 kB / 0.7956 GB, free: 97.36 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.003046/1.145, allocations: 2.542 MB / 0.7981 GB, free: 94.77 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002295/1.148, allocations: 382.7 kB / 0.7985 GB, free: 94.4 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01544/1.163, allocations: 10.24 MB / 0.8085 GB, free: 84.04 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002826/1.166, allocations: 3.161 MB / 0.8116 GB, free: 80.85 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001139/1.167, allocations: 255.4 kB / 0.8118 GB, free: 80.6 MB / 0.5606 GB Notification: Performance of SimCode: time 7.81e-07/1.167, allocations: 0 / 0.8118 GB, free: 80.6 MB / 0.5606 GB Notification: Performance of Templates: time 0.1155/1.283, allocations: 112.5 MB / 0.9217 GB, free: 212 kB / 0.5919 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/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