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.00236/0.00236, allocations: 188.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.273/2.273, allocations: 205.4 MB / 222.5 MB, free: 13.77 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.001155/0.001155, allocations: 98.84 kB / 270.9 MB, free: 13.28 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.3026/0.3026, allocations: 43.55 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007621/0.0007622, allocations: 16 kB / 431.4 MB, free: 20.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1327/0.1335, allocations: 58.85 MB / 490.2 MB, free: 9.344 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.03523/0.1688, allocations: 21.94 MB / 0.5002 GB, free: 3.328 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01819/0.187, allocations: 6.147 MB / 0.5062 GB, free: 13.16 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004354/0.1915, allocations: 103.8 kB / 0.5063 GB, free: 13.06 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004345/0.1959, allocations: 1.12 MB / 0.5074 GB, free: 11.94 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01399/0.2099, allocations: 3.468 MB / 0.5107 GB, free: 8.461 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002541/0.2125, allocations: 451.2 kB / 0.5112 GB, free: 8.02 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.005616/0.2181, allocations: 2.117 MB / 0.5132 GB, free: 5.902 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004755/0.223, allocations: 2.128 MB / 0.5153 GB, free: 3.723 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002032/0.2251, allocations: 0.8524 MB / 0.5161 GB, free: 2.867 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002474/0.2276, allocations: 1.191 MB / 0.5173 GB, free: 1.672 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006272/0.2282, allocations: 124 kB / 0.5174 GB, free: 1.551 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00303/0.2313, allocations: 1.03 MB / 0.5184 GB, free: 0.5195 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.3319/0.5632, allocations: 1.37 MB / 0.5198 GB, free: 13.43 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001858/0.5652, allocations: 0.7348 MB / 0.5205 GB, free: 13.4 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009662/0.5749, allocations: 4.717 MB / 0.5251 GB, free: 13.06 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.5749, allocations: 0 / 0.5251 GB, free: 13.06 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.5749, allocations: 0 / 0.5251 GB, free: 13.06 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002481/0.5752, allocations: 0 / 0.5251 GB, free: 13.06 MB / 362.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.0127/0.5879, allocations: 3.479 MB / 0.5285 GB, free: 11.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.588, allocations: 12.25 kB / 0.5285 GB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03968/0.6277, allocations: 6.412 MB / 0.5348 GB, free: 10.72 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009214/0.6369, allocations: 2.512 MB / 0.5372 GB, free: 9.922 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00029/0.6373, allocations: 178.8 kB / 0.5374 GB, free: 9.914 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002715/0.64, allocations: 315.9 kB / 0.5377 GB, free: 9.891 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03082/0.6709, allocations: 10.8 MB / 0.5482 GB, free: 6.996 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001526/0.6711, allocations: 26.16 kB / 0.5483 GB, free: 6.996 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00148/0.6726, allocations: 117.7 kB / 0.5484 GB, free: 6.992 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006671/0.6793, allocations: 2.456 MB / 0.5508 GB, free: 6.441 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0317/0.711, allocations: 10.24 MB / 0.5608 GB, free: 308 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08811/0.7992, allocations: 35.82 MB / 0.5958 GB, free: 14.14 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0212/0.8205, allocations: 5.596 MB / 0.6012 GB, free: 8.332 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002854/0.8234, allocations: 1.879 MB / 0.6031 GB, free: 6.133 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.984e-05/0.8235, allocations: 48.56 kB / 0.6031 GB, free: 6.078 MB / 410.7 MB Notification: Performance of pre-optimization done (n=224): time 8.947e-06/0.8235, allocations: 0 / 0.6031 GB, free: 6.078 MB / 410.7 MB Notification: Performance of matching and sorting (n=231): time 0.06685/0.8904, allocations: 15.54 MB / 0.6183 GB, free: 6.348 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001891/0.8923, allocations: 1.538 MB / 0.6198 GB, free: 4.664 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007167/0.8995, allocations: 3.025 MB / 0.6227 GB, free: 1.629 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007819/0.9004, allocations: 53.7 kB / 0.6228 GB, free: 1.57 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003088/0.9035, allocations: 2.679 MB / 0.6254 GB, free: 14.9 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001847/0.9054, allocations: 0.8454 MB / 0.6262 GB, free: 14.06 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008656/0.9063, allocations: 115.7 kB / 0.6263 GB, free: 13.95 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005834/0.9069, allocations: 0.5445 MB / 0.6269 GB, free: 13.4 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007694/0.9146, allocations: 2.609 MB / 0.6294 GB, free: 10.79 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01129/0.9259, allocations: 5.59 MB / 0.6349 GB, free: 3.77 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01016/0.9361, allocations: 3.799 MB / 0.6386 GB, free: 72 kB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.652e-05/0.9363, allocations: 28 kB / 0.6386 GB, free: 44 kB / 442.7 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.1214/1.058, allocations: 18.9 MB / 0.6571 GB, free: 13.61 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001059/1.058, allocations: 55.95 kB / 0.6571 GB, free: 13.56 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08686/1.145, allocations: 12 MB / 0.6688 GB, free: 1.535 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09504/1.24, allocations: 10.3 MB / 0.6789 GB, free: 7.207 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009153/1.249, allocations: 1.298 MB / 0.6802 GB, free: 5.906 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05549/1.305, allocations: 17.29 MB / 0.6971 GB, free: 4.34 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007753/1.312, allocations: 443.3 kB / 0.6975 GB, free: 3.91 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001829/1.314, allocations: 319.9 kB / 0.6978 GB, free: 3.598 MB / 0.4949 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 (653): * Single equations (assignments): 642 * 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.007488/1.322, allocations: 2.027 MB / 0.6998 GB, free: 1.562 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008885/1.323, allocations: 272.4 kB / 0.7 GB, free: 1.293 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01796/1.341, allocations: 5.108 MB / 0.705 GB, free: 12.16 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01517/1.356, allocations: 4.392 MB / 0.7093 GB, free: 7.746 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.931e-05/1.356, allocations: 0 / 0.7093 GB, free: 7.746 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.95e-05/1.356, allocations: 11.95 kB / 0.7093 GB, free: 7.734 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3822/1.738, allocations: 12.93 MB / 0.7219 GB, free: 186.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.889e-05/1.738, allocations: 8.156 kB / 0.7219 GB, free: 186.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004442/1.743, allocations: 458.7 kB / 0.7224 GB, free: 186.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005516/1.748, allocations: 0.9396 MB / 0.7233 GB, free: 186.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007684/1.749, allocations: 48.8 kB / 0.7234 GB, free: 186.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01108/1.76, allocations: 5.581 MB / 0.7288 GB, free: 183.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001352/1.762, allocations: 1.463 MB / 0.7302 GB, free: 182.1 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02032/1.782, allocations: 8.354 MB / 0.7384 GB, free: 178.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001017/1.783, allocations: 347.5 kB / 0.7387 GB, free: 178.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001372/1.785, allocations: 48.69 kB / 0.7388 GB, free: 178.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00358/1.788, allocations: 194.2 kB / 0.739 GB, free: 178.4 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001111/1.789, allocations: 142.8 kB / 0.7391 GB, free: 178.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000453/1.79, allocations: 66.84 kB / 0.7392 GB, free: 178.3 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004989/1.795, allocations: 1.886 MB / 0.741 GB, free: 177.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.11e-07/1.795, allocations: 3.938 kB / 0.741 GB, free: 177.7 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008361/1.803, allocations: 1.125 MB / 0.7421 GB, free: 177.6 MB / 0.5105 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.001319/1.805, allocations: 205.6 kB / 0.7423 GB, free: 177.5 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01784/1.823, allocations: 6.555 MB / 0.7487 GB, free: 173.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.337e-06/1.823, allocations: 0 / 0.7487 GB, free: 173.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006547/1.829, allocations: 2.533 MB / 0.7512 GB, free: 171.6 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003115/1.832, allocations: 343.8 kB / 0.7515 GB, free: 171.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02684/1.859, allocations: 12.02 MB / 0.7632 GB, free: 159.6 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006683/1.866, allocations: 3.257 MB / 0.7664 GB, free: 156.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002052/1.868, allocations: 255.4 kB / 0.7667 GB, free: 156.1 MB / 0.5105 GB Notification: Performance of SimCode: time 1.133e-06/1.868, allocations: 0 / 0.7667 GB, free: 156.1 MB / 0.5105 GB Notification: Performance of Templates: time 0.1946/2.063, allocations: 107.5 MB / 0.8716 GB, free: 48.45 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