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.0007883/0.0007884, allocations: 92.89 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009813/0.0009815, allocations: 192.4 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 227.7 MB / 246.4 MB, free: 9.812 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.222/0.222, allocations: 46.19 MB / 344.8 MB, free: 11.31 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003191/0.0003192, allocations: 12 kB / 418.8 MB, free: 20.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1647/0.165, allocations: 63.57 MB / 482.4 MB, free: 4.508 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.02428/0.1893, allocations: 23.01 MB / 0.4936 GB, free: 13.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01514/0.2045, allocations: 5.914 MB / 0.4993 GB, free: 7.496 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006475/0.211, allocations: 103.8 kB / 0.4994 GB, free: 7.395 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004185/0.2153, allocations: 1.089 MB / 0.5005 GB, free: 6.301 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01171/0.227, allocations: 3.448 MB / 0.5039 GB, free: 2.844 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002589/0.2296, allocations: 459.2 kB / 0.5043 GB, free: 2.395 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.3247/0.5544, allocations: 4.225 MB / 0.5084 GB, free: 11.92 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003999/0.5584, allocations: 2.135 MB / 0.5105 GB, free: 11.65 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002109/0.5605, allocations: 0.9994 MB / 0.5115 GB, free: 11.65 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003112/0.5637, allocations: 1.657 MB / 0.5131 GB, free: 11.65 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000554/0.5643, allocations: 125.4 kB / 0.5132 GB, free: 11.65 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002705/0.567, allocations: 1.048 MB / 0.5143 GB, free: 11.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001967/0.5689, allocations: 1.455 MB / 0.5157 GB, free: 11.65 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009217/0.5699, allocations: 0.7258 MB / 0.5164 GB, free: 11.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00793/0.5778, allocations: 4.646 MB / 0.5209 GB, free: 11.33 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.5779, allocations: 3.062 kB / 0.5209 GB, free: 11.33 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.5779, allocations: 0 / 0.5209 GB, free: 11.33 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002171/0.5781, allocations: 0 / 0.5209 GB, free: 11.33 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.008475/0.5866, allocations: 3.404 MB / 0.5243 GB, free: 9.641 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.5866, allocations: 9.094 kB / 0.5243 GB, free: 9.641 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01832/0.6049, allocations: 6.242 MB / 0.5304 GB, free: 6.789 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006464/0.6115, allocations: 2.133 MB / 0.5324 GB, free: 6.023 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001756/0.6117, allocations: 180.4 kB / 0.5326 GB, free: 6.016 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001276/0.613, allocations: 312.1 kB / 0.5329 GB, free: 5.992 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01755/0.6305, allocations: 10.71 MB / 0.5434 GB, free: 1.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.4e-05/0.6306, allocations: 32.39 kB / 0.5434 GB, free: 1.715 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003694/0.631, allocations: 116.4 kB / 0.5435 GB, free: 1.684 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003283/0.6343, allocations: 2.459 MB / 0.5459 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02078/0.6551, allocations: 10.14 MB / 0.5558 GB, free: 8.254 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05954/0.7147, allocations: 35.65 MB / 0.5906 GB, free: 4.133 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01206/0.7268, allocations: 5.601 MB / 0.5961 GB, free: 14.31 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003896/0.7307, allocations: 2.326 MB / 0.5984 GB, free: 11.98 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00196/0.7327, allocations: 1.875 MB / 0.6002 GB, free: 9.785 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.171e-05/0.7328, allocations: 60.55 kB / 0.6003 GB, free: 9.719 MB / 446.1 MB Notification: Performance of pre-optimization done (n=224): time 7.333e-06/0.7328, allocations: 0 / 0.6003 GB, free: 9.719 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.03895/0.7718, allocations: 14.93 MB / 0.6148 GB, free: 10.69 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001503/0.7733, allocations: 1.524 MB / 0.6163 GB, free: 9.012 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006272/0.7796, allocations: 2.777 MB / 0.619 GB, free: 6.223 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007708/0.7804, allocations: 57.86 kB / 0.6191 GB, free: 6.164 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002977/0.7834, allocations: 2.67 MB / 0.6217 GB, free: 3.504 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001876/0.7853, allocations: 0.8455 MB / 0.6225 GB, free: 2.664 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001061/0.7864, allocations: 106.7 kB / 0.6226 GB, free: 2.562 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0007042/0.7871, allocations: 0.5471 MB / 0.6232 GB, free: 2.008 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00532/0.7925, allocations: 2.616 MB / 0.6257 GB, free: 15.39 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008109/0.8006, allocations: 5.62 MB / 0.6312 GB, free: 8.305 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00709/0.8077, allocations: 3.81 MB / 0.6349 GB, free: 4.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001089/0.8079, allocations: 32 kB / 0.635 GB, free: 4.469 MB / 478.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.05958/0.8675, allocations: 17.1 MB / 0.6516 GB, free: 3.336 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001689/0.8677, allocations: 51.95 kB / 0.6517 GB, free: 3.285 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04058/0.9083, allocations: 10.61 MB / 0.6621 GB, free: 8.652 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04142/0.9497, allocations: 8.656 MB / 0.6705 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005413/0.9552, allocations: 1.31 MB / 0.6718 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02909/0.9843, allocations: 15.63 MB / 0.6871 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005731/0.9901, allocations: 427.4 kB / 0.6875 GB, free: 14.35 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001909/0.992, allocations: 319.9 kB / 0.6878 GB, free: 14.04 MB / 0.5294 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 (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.00663/0.9987, allocations: 2.027 MB / 0.6898 GB, free: 12 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009336/0.9996, allocations: 268.5 kB / 0.69 GB, free: 11.73 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01083/1.01, allocations: 5.11 MB / 0.695 GB, free: 6.598 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00749/1.018, allocations: 4.382 MB / 0.6993 GB, free: 2.195 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-05/1.018, allocations: 4 kB / 0.6993 GB, free: 2.191 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.197e-05/1.018, allocations: 7.969 kB / 0.6993 GB, free: 2.184 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.027/1.045, allocations: 12.92 MB / 0.7119 GB, free: 5.117 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-05/1.045, allocations: 4 kB / 0.7119 GB, free: 5.113 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00211/1.047, allocations: 459.2 kB / 0.7123 GB, free: 4.664 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002839/1.05, allocations: 0.9426 MB / 0.7133 GB, free: 3.711 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000387/1.051, allocations: 53.14 kB / 0.7133 GB, free: 3.66 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3118/1.362, allocations: 5.447 MB / 0.7186 GB, free: 193.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008688/1.363, allocations: 1.466 MB / 0.7201 GB, free: 192.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01345/1.377, allocations: 7.713 MB / 0.7276 GB, free: 191 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009227/1.378, allocations: 330.5 kB / 0.7279 GB, free: 190.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003536/1.378, allocations: 45.44 kB / 0.728 GB, free: 190.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001405/1.379, allocations: 189.5 kB / 0.7281 GB, free: 190.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004472/1.38, allocations: 144.7 kB / 0.7283 GB, free: 190.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002063/1.38, allocations: 71.47 kB / 0.7283 GB, free: 190.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003227/1.383, allocations: 1.69 MB / 0.73 GB, free: 190.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/1.383, allocations: 3.719 kB / 0.73 GB, free: 190.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005648/1.389, allocations: 1.086 MB / 0.7311 GB, free: 190.2 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000591/1.39, allocations: 189.7 kB / 0.7312 GB, free: 190 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01216/1.402, allocations: 6.521 MB / 0.7376 GB, free: 187.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/1.402, allocations: 0 / 0.7376 GB, free: 187.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003449/1.405, allocations: 2.523 MB / 0.7401 GB, free: 186.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002377/1.408, allocations: 367.6 kB / 0.7404 GB, free: 186.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0162/1.424, allocations: 11.58 MB / 0.7517 GB, free: 179.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003535/1.427, allocations: 3.156 MB / 0.7548 GB, free: 177.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004523/1.432, allocations: 2.07 MB / 0.7568 GB, free: 176.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006443/1.433, allocations: 206.3 kB / 0.757 GB, free: 175.9 MB / 0.545 GB Notification: Performance of SimCode: time 1.984e-06/1.433, allocations: 0 / 0.757 GB, free: 175.9 MB / 0.545 GB Notification: Performance of Templates: time 0.06332/1.496, allocations: 43.05 MB / 0.7991 GB, free: 135.4 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