Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_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_cpp_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.001552/0.001556, allocations: 181.4 kB / 13.66 MB, free: 1.664 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.995/1.995, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001074/0.001074, allocations: 78.66 kB / 267.5 MB, free: 14.05 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.2853/0.2853, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.518e-05/3.536e-05, allocations: 4 kB / 425.3 MB, free: 23.37 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.121, allocations: 58.86 MB / 484.1 MB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5047/0.6258, allocations: 101.6 MB / 0.572 GB, free: 2.18 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002416/0.6261, allocations: 85.48 kB / 0.5721 GB, free: 2.137 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3518/0.9779, allocations: 83.66 MB / 0.6538 GB, free: 6.32 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.006e-06/0.978, allocations: 0 / 0.6538 GB, free: 6.32 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002031/0.9782, allocations: 64 kB / 0.6539 GB, free: 6.258 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.0222/1, allocations: 3.864 MB / 0.6576 GB, free: 2.332 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.5e-05/1, allocations: 12.03 kB / 0.6576 GB, free: 2.32 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04217/1.043, allocations: 5.875 MB / 0.6634 GB, free: 12.43 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02265/1.065, allocations: 5.305 MB / 0.6686 GB, free: 7.074 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004358/1.066, allocations: 279.3 kB / 0.6688 GB, free: 6.801 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002766/1.069, allocations: 379.8 kB / 0.6692 GB, free: 6.43 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03423/1.103, allocations: 10.35 MB / 0.6793 GB, free: 11.57 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001971/1.103, allocations: 27.75 kB / 0.6793 GB, free: 11.54 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001624/1.105, allocations: 175.9 kB / 0.6795 GB, free: 11.37 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002729/1.108, allocations: 1.152 MB / 0.6806 GB, free: 10.21 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03295/1.141, allocations: 9.973 MB / 0.6904 GB, free: 240 kB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4159/1.557, allocations: 37.41 MB / 0.7269 GB, free: 105.9 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02015/1.577, allocations: 5.577 MB / 0.7323 GB, free: 104.7 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005583/1.582, allocations: 2.308 MB / 0.7346 GB, free: 104.7 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002352/1.585, allocations: 1.881 MB / 0.7364 GB, free: 103 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.8e-05/1.585, allocations: 48.19 kB / 0.7365 GB, free: 103 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=224): time 6.973e-06/1.585, allocations: 0 / 0.7365 GB, free: 103 MB / 0.4948 GB Notification: Performance of matching and sorting (n=231): time 0.05057/1.636, allocations: 12.41 MB / 0.7486 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001367/1.637, allocations: 1.519 MB / 0.7501 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005094/1.642, allocations: 2.49 MB / 0.7525 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006135/1.643, allocations: 57.03 kB / 0.7526 GB, free: 100.1 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002119/1.645, allocations: 2.673 MB / 0.7552 GB, free: 98.77 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001463/1.646, allocations: 0.8467 MB / 0.756 GB, free: 98.27 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007814/1.647, allocations: 110.8 kB / 0.7561 GB, free: 98.27 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004521/1.648, allocations: 0.5426 MB / 0.7566 GB, free: 97.95 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006311/1.654, allocations: 2.564 MB / 0.7591 GB, free: 97.94 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008383/1.662, allocations: 5.538 MB / 0.7645 GB, free: 93.91 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008504/1.671, allocations: 3.786 MB / 0.7682 GB, free: 92.83 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001155/1.671, allocations: 31.33 kB / 0.7683 GB, free: 92.83 MB / 0.4948 GB Notification: Performance of matching and sorting (n=724) (initialization): time 0.1127/1.784, allocations: 18.82 MB / 0.7867 GB, free: 90.12 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.617e-05/1.784, allocations: 58.16 kB / 0.7867 GB, free: 90.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08026/1.864, allocations: 11.97 MB / 0.7984 GB, free: 88.76 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08871/1.953, allocations: 10.31 MB / 0.8085 GB, free: 81.43 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007705/1.961, allocations: 1.244 MB / 0.8097 GB, free: 80.18 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0421/2.003, allocations: 15.88 MB / 0.8252 GB, free: 64.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006744/2.01, allocations: 445 kB / 0.8256 GB, free: 63.63 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001155/2.011, allocations: 321.2 kB / 0.8259 GB, free: 63.32 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 () * 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.001187/2.012, allocations: 0.4911 MB / 0.8264 GB, free: 62.82 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006348/2.013, allocations: 276.4 kB / 0.8267 GB, free: 62.55 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0133/2.026, allocations: 5.064 MB / 0.8316 GB, free: 57.46 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01186/2.038, allocations: 4.358 MB / 0.8359 GB, free: 53.09 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.511e-05/2.038, allocations: 4 kB / 0.8359 GB, free: 53.09 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-05/2.038, allocations: 11.95 kB / 0.8359 GB, free: 53.07 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03259/2.071, allocations: 12.97 MB / 0.8485 GB, free: 39.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.039e-05/2.071, allocations: 11.98 kB / 0.8485 GB, free: 39.97 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003483/2.074, allocations: 403.3 kB / 0.8489 GB, free: 39.58 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005161/2.08, allocations: 0.9348 MB / 0.8498 GB, free: 38.63 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005537/2.08, allocations: 52.83 kB / 0.8499 GB, free: 38.58 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009209/2.089, allocations: 5.422 MB / 0.8552 GB, free: 32.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001125/2.091, allocations: 1.455 MB / 0.8566 GB, free: 31.3 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01843/2.109, allocations: 8.299 MB / 0.8647 GB, free: 22.7 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009223/2.11, allocations: 329.6 kB / 0.865 GB, free: 22.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009809/2.111, allocations: 52.16 kB / 0.8651 GB, free: 22.31 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003413/2.114, allocations: 200.4 kB / 0.8653 GB, free: 22.12 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008519/2.115, allocations: 137.7 kB / 0.8654 GB, free: 21.98 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002718/2.116, allocations: 72.45 kB / 0.8655 GB, free: 21.91 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003961/2.12, allocations: 1.693 MB / 0.8671 GB, free: 20.21 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.32e-07/2.12, allocations: 0 / 0.8671 GB, free: 20.21 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006742/2.126, allocations: 1.11 MB / 0.8682 GB, free: 19.11 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 () * 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.0009239/2.127, allocations: 190.2 kB / 0.8684 GB, free: 18.92 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01619/2.144, allocations: 6.478 MB / 0.8747 GB, free: 12.43 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.009e-05/2.144, allocations: 3.938 kB / 0.8747 GB, free: 12.42 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006041/2.15, allocations: 2.504 MB / 0.8772 GB, free: 9.875 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002889/2.153, allocations: 336.6 kB / 0.8775 GB, free: 9.555 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02382/2.177, allocations: 9.009 MB / 0.8863 GB, free: 420 kB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0072/2.184, allocations: 3.253 MB / 0.8895 GB, free: 13.14 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001978/2.186, allocations: 255.4 kB / 0.8897 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of SimCode: time 1.483e-06/2.186, allocations: 0 / 0.8897 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of Templates: time 0.5337/2.72, allocations: 107 MB / 0.9942 GB, free: 93.54 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical_res.mat","/var/lib/jenkins1/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_cpp_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches