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.001206/0.001206, allocations: 113 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001274/0.001274, allocations: 208.9 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.256/1.256, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1893/0.1893, allocations: 46.1 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 75.88 kB / 482 MB, free: 4.051 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.2733, allocations: 62.45 MB / 0.5317 GB, free: 13.57 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01161/0.2849, allocations: 11.76 MB / 0.5431 GB, free: 4.348 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007989/0.293, allocations: 4.059 MB / 0.5471 GB, free: 1.227 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001352/0.2944, allocations: 60.56 kB / 0.5472 GB, free: 1.219 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002238/0.2966, allocations: 1.183 MB / 0.5483 GB, free: 416 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003481/0.3001, allocations: 1.763 MB / 0.55 GB, free: 14.84 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001216/0.3014, allocations: 0.5574 MB / 0.5506 GB, free: 14.29 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00468/0.3061, allocations: 4.04 MB / 0.5545 GB, free: 10.24 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00196/0.3081, allocations: 1.771 MB / 0.5563 GB, free: 8.445 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001539/0.3096, allocations: 1.16 MB / 0.5574 GB, free: 7.281 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001803/0.3114, allocations: 1.67 MB / 0.559 GB, free: 5.605 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004377/0.3119, allocations: 216 kB / 0.5592 GB, free: 5.395 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002052/0.3139, allocations: 1.283 MB / 0.5605 GB, free: 4.109 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001376/0.3153, allocations: 1.574 MB / 0.562 GB, free: 2.531 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001842/0.3172, allocations: 1.828 MB / 0.5638 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006269/0.3235, allocations: 6.179 MB / 0.5698 GB, free: 10.49 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.3235, allocations: 4 kB / 0.5698 GB, free: 10.49 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3235, allocations: 0 / 0.5698 GB, free: 10.49 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001396/0.3237, allocations: 0 / 0.5698 GB, free: 10.49 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.006658/0.3303, allocations: 4.069 MB / 0.5738 GB, free: 6.352 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.3304, allocations: 8.922 kB / 0.5738 GB, free: 6.344 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01779/0.3482, allocations: 6.129 MB / 0.5798 GB, free: 204 kB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004891/0.3531, allocations: 2.174 MB / 0.5819 GB, free: 13.98 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001346/0.3533, allocations: 180.8 kB / 0.5821 GB, free: 13.8 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009036/0.3542, allocations: 319.5 kB / 0.5824 GB, free: 13.49 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01574/0.3699, allocations: 10.72 MB / 0.5929 GB, free: 2.312 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.652e-05/0.37, allocations: 27.75 kB / 0.5929 GB, free: 2.285 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003429/0.3704, allocations: 111.8 kB / 0.593 GB, free: 2.176 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003411/0.3738, allocations: 2.459 MB / 0.5954 GB, free: 15.71 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01793/0.3918, allocations: 10.17 MB / 0.6053 GB, free: 5.535 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0451/0.4369, allocations: 35.5 MB / 0.64 GB, free: 1.164 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0108/0.4478, allocations: 5.602 MB / 0.6455 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003025/0.4508, allocations: 2.339 MB / 0.6478 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001619/0.4525, allocations: 1.868 MB / 0.6496 GB, free: 6.789 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.436e-05/0.4525, allocations: 57.16 kB / 0.6496 GB, free: 6.727 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=224): time 6.452e-06/0.4525, allocations: 0 / 0.6496 GB, free: 6.727 MB / 0.4981 GB Notification: Performance of matching and sorting (n=231): time 0.03184/0.4844, allocations: 14.95 MB / 0.6642 GB, free: 7.66 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001192/0.4856, allocations: 1.611 MB / 0.6658 GB, free: 5.887 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003206/0.4888, allocations: 2.782 MB / 0.6685 GB, free: 3.09 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0003819/0.4892, allocations: 57.7 kB / 0.6686 GB, free: 3.027 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001667/0.4909, allocations: 2.674 MB / 0.6712 GB, free: 320 kB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009961/0.4919, allocations: 0.856 MB / 0.672 GB, free: 15.44 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001424/0.4934, allocations: 1.107 MB / 0.6731 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 8.499e-05/0.4935, allocations: 305.1 kB / 0.6734 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003433/0.4969, allocations: 2.638 MB / 0.676 GB, free: 11.38 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005507/0.5024, allocations: 5.636 MB / 0.6815 GB, free: 4.266 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009508/0.512, allocations: 8.945 MB / 0.6902 GB, free: 9.852 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.317e-05/0.5121, allocations: 28 kB / 0.6902 GB, free: 9.824 MB / 0.545 GB Notification: Performance of matching and sorting (n=733) (initialization): time 0.05653/0.5686, allocations: 17.15 MB / 0.707 GB, free: 8.641 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.639e-05/0.5687, allocations: 48.19 kB / 0.707 GB, free: 8.594 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.2588/0.8275, allocations: 10.63 MB / 0.7174 GB, free: 159.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03997/0.8675, allocations: 8.651 MB / 0.7259 GB, free: 159.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003845/0.8714, allocations: 1.314 MB / 0.7271 GB, free: 159.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02261/0.8941, allocations: 17.81 MB / 0.7445 GB, free: 149.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003496/0.8976, allocations: 419.5 kB / 0.7449 GB, free: 149.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00052/0.8981, allocations: 324 kB / 0.7452 GB, free: 149 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.002153/0.9003, allocations: 2.027 MB / 0.7472 GB, free: 147 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003297/0.9006, allocations: 266.1 kB / 0.7475 GB, free: 146.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006445/0.9071, allocations: 5.117 MB / 0.7525 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005457/0.9125, allocations: 4.405 MB / 0.7568 GB, free: 137.4 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.9126, allocations: 4.656 kB / 0.7568 GB, free: 137.4 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.487e-05/0.9126, allocations: 11.56 kB / 0.7568 GB, free: 137.4 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01494/0.9275, allocations: 12.91 MB / 0.7694 GB, free: 124.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.35e-05/0.9276, allocations: 8 kB / 0.7694 GB, free: 124.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001731/0.9293, allocations: 465.2 kB / 0.7699 GB, free: 123.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002369/0.9317, allocations: 0.9344 MB / 0.7708 GB, free: 123 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002414/0.932, allocations: 51.92 kB / 0.7708 GB, free: 122.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004641/0.9366, allocations: 5.832 MB / 0.7765 GB, free: 116.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000622/0.9373, allocations: 1.552 MB / 0.778 GB, free: 115.2 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008415/0.9457, allocations: 7.726 MB / 0.7856 GB, free: 107.5 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005648/0.9463, allocations: 334.6 kB / 0.7859 GB, free: 107.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003056/0.9466, allocations: 43.83 kB / 0.7859 GB, free: 107.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001257/0.9479, allocations: 191.7 kB / 0.7861 GB, free: 107.1 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002932/0.9482, allocations: 151 kB / 0.7863 GB, free: 106.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001404/0.9483, allocations: 70.88 kB / 0.7863 GB, free: 106.9 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001723/0.95, allocations: 1.72 MB / 0.788 GB, free: 105.1 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.95, allocations: 0 / 0.788 GB, free: 105.1 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003647/0.9537, allocations: 1.088 MB / 0.7891 GB, free: 104.1 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.0004165/0.9541, allocations: 181.6 kB / 0.7892 GB, free: 103.9 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007879/0.962, allocations: 6.61 MB / 0.7957 GB, free: 97.26 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/0.9621, allocations: 0 / 0.7957 GB, free: 97.26 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002671/0.9647, allocations: 2.529 MB / 0.7982 GB, free: 94.69 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001716/0.9665, allocations: 382.4 kB / 0.7985 GB, free: 94.32 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01143/0.9779, allocations: 10.25 MB / 0.8085 GB, free: 83.95 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00228/0.9802, allocations: 3.159 MB / 0.8116 GB, free: 80.76 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009757/0.9812, allocations: 259.4 kB / 0.8119 GB, free: 80.51 MB / 0.5606 GB Notification: Performance of SimCode: time 8.12e-07/0.9812, allocations: 0 / 0.8119 GB, free: 80.51 MB / 0.5606 GB Notification: Performance of Templates: time 0.09867/1.08, allocations: 112.5 MB / 0.9217 GB, free: 108 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