Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009909/0.0009909, allocations: 183.7 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.557/1.557, allocations: 205.4 MB / 221.9 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001114/0.001114, allocations: 94.86 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2178/0.2178, allocations: 43.56 MB / 362.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003405/0.0003406, allocations: 11.98 kB / 431.4 MB, free: 19.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1457/0.146, allocations: 58.86 MB / 490.2 MB, free: 8.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4618/0.608, allocations: 101.7 MB / 0.5781 GB, free: 14.36 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002837/0.6083, allocations: 80.39 kB / 0.5781 GB, free: 14.32 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2111/0.8194, allocations: 83.59 MB / 0.6598 GB, free: 2.535 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.8194, allocations: 0 / 0.6598 GB, free: 2.535 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001389/0.8196, allocations: 68 kB / 0.6598 GB, free: 2.469 MB / 458.7 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.0162/0.8358, allocations: 4.027 MB / 0.6638 GB, free: 14.38 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.9e-05/0.8359, allocations: 12.03 kB / 0.6638 GB, free: 14.36 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02231/0.8582, allocations: 5.867 MB / 0.6695 GB, free: 8.48 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01798/0.8763, allocations: 5.336 MB / 0.6747 GB, free: 3.094 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002422/0.8766, allocations: 283.2 kB / 0.675 GB, free: 2.816 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001172/0.8777, allocations: 363.9 kB / 0.6753 GB, free: 2.461 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01982/0.8976, allocations: 10.44 MB / 0.6855 GB, free: 7.508 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.309e-05/0.8977, allocations: 35.73 kB / 0.6856 GB, free: 7.473 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000524/0.8983, allocations: 163.9 kB / 0.6857 GB, free: 7.312 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001595/0.8999, allocations: 1.156 MB / 0.6869 GB, free: 6.156 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0189/0.9188, allocations: 10.1 MB / 0.6967 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3675/1.286, allocations: 37.42 MB / 0.7333 GB, free: 106.8 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01264/1.299, allocations: 5.599 MB / 0.7387 GB, free: 105.6 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001871/1.301, allocations: 1.876 MB / 0.7406 GB, free: 103.9 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.457e-05/1.301, allocations: 53.34 kB / 0.7406 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=224): time 5.741e-06/1.301, allocations: 2.25 kB / 0.7406 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=231): time 0.03239/1.333, allocations: 15.5 MB / 0.7558 GB, free: 102 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001252/1.335, allocations: 1.536 MB / 0.7573 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004044/1.339, allocations: 2.518 MB / 0.7597 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003853/1.339, allocations: 55.73 kB / 0.7598 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001506/1.341, allocations: 2.686 MB / 0.7624 GB, free: 98.95 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008535/1.342, allocations: 0.8473 MB / 0.7632 GB, free: 98.45 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000242/1.342, allocations: 106.9 kB / 0.7633 GB, free: 98.45 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002623/1.342, allocations: 0.5437 MB / 0.7638 GB, free: 98.13 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00319/1.345, allocations: 2.606 MB / 0.7664 GB, free: 97.74 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004599/1.35, allocations: 5.589 MB / 0.7719 GB, free: 92.94 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004485/1.354, allocations: 3.801 MB / 0.7756 GB, free: 91.7 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.187e-05/1.355, allocations: 30.31 kB / 0.7756 GB, free: 91.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=724) (initialization): time 0.05712/1.412, allocations: 18.97 MB / 0.7941 GB, free: 88.82 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.471e-05/1.412, allocations: 48.38 kB / 0.7942 GB, free: 88.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03942/1.451, allocations: 12.01 MB / 0.8059 GB, free: 86.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04246/1.494, allocations: 10.31 MB / 0.816 GB, free: 76.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004463/1.498, allocations: 1.244 MB / 0.8172 GB, free: 75.26 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02457/1.523, allocations: 17.27 MB / 0.834 GB, free: 57.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005235/1.528, allocations: 440.8 kB / 0.8345 GB, free: 57.32 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001444/1.53, allocations: 321.8 kB / 0.8348 GB, free: 57.01 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 477 * 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 (652): * Single equations (assignments): 641 * 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.005136/1.535, allocations: 2.017 MB / 0.8367 GB, free: 54.98 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007769/1.536, allocations: 268.4 kB / 0.837 GB, free: 54.71 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008425/1.544, allocations: 5.107 MB / 0.842 GB, free: 49.59 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006336/1.55, allocations: 4.384 MB / 0.8463 GB, free: 45.19 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-05/1.55, allocations: 7.953 kB / 0.8463 GB, free: 45.18 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.829e-05/1.55, allocations: 7.969 kB / 0.8463 GB, free: 45.18 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0237/1.574, allocations: 12.99 MB / 0.859 GB, free: 32.05 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-05/1.574, allocations: 8 kB / 0.859 GB, free: 32.04 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001706/1.576, allocations: 415.3 kB / 0.8594 GB, free: 31.64 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002928/1.579, allocations: 0.9347 MB / 0.8603 GB, free: 30.69 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004017/1.579, allocations: 47.98 kB / 0.8603 GB, free: 30.64 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006183/1.586, allocations: 5.554 MB / 0.8657 GB, free: 24.83 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009011/1.586, allocations: 1.463 MB / 0.8672 GB, free: 23.23 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01153/1.598, allocations: 8.36 MB / 0.8753 GB, free: 14.57 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001201/1.599, allocations: 325.6 kB / 0.8756 GB, free: 14.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007792/1.6, allocations: 45.16 kB / 0.8757 GB, free: 14.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001965/1.602, allocations: 197 kB / 0.8759 GB, free: 14 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003838/1.602, allocations: 148.9 kB / 0.876 GB, free: 13.85 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001964/1.603, allocations: 68.52 kB / 0.8761 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00345/1.606, allocations: 1.717 MB / 0.8778 GB, free: 12.06 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.5e-07/1.606, allocations: 0 / 0.8778 GB, free: 12.06 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006539/1.613, allocations: 1.113 MB / 0.8788 GB, free: 10.96 MB / 0.4948 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.0007723/1.614, allocations: 193.3 kB / 0.879 GB, free: 10.77 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01096/1.624, allocations: 6.551 MB / 0.8854 GB, free: 4.203 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.382e-05/1.625, allocations: 0 / 0.8854 GB, free: 4.203 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003715/1.628, allocations: 2.526 MB / 0.8879 GB, free: 1.629 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003135/1.631, allocations: 337.8 kB / 0.8882 GB, free: 1.309 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02491/1.656, allocations: 11.76 MB / 0.8997 GB, free: 5.457 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004554/1.661, allocations: 3.247 MB / 0.9029 GB, free: 2.188 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005307/1.666, allocations: 2.059 MB / 0.9049 GB, free: 132 kB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2485/1.915, allocations: 206.2 kB / 0.9051 GB, free: 129.9 MB / 0.5105 GB Notification: Performance of SimCode: time 1.613e-06/1.915, allocations: 0 / 0.9051 GB, free: 129.9 MB / 0.5105 GB Notification: Performance of Templates: time 0.07684/1.992, allocations: 43.21 MB / 0.9473 GB, free: 128.2 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches