Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009902/0.0009904, allocations: 102.3 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001221/0.001221, allocations: 181.7 kB / 17.89 MB, free: 5.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 223.3 MB / 241.9 MB, free: 320 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2236/0.2236, allocations: 44.25 MB / 337.3 MB, free: 2.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003432/0.0003432, allocations: 8.594 kB / 409.7 MB, free: 27.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1616/0.162, allocations: 61.93 MB / 471.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.02361/0.1856, allocations: 23.15 MB / 494.7 MB, free: 6.473 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01557/0.2013, allocations: 5.969 MB / 0.489 GB, free: 496 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005544/0.2069, allocations: 103.8 kB / 0.4891 GB, free: 392 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004401/0.2113, allocations: 1.093 MB / 0.4901 GB, free: 15.29 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0126/0.224, allocations: 3.499 MB / 0.4936 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002311/0.2263, allocations: 459.2 kB / 0.494 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00695/0.2333, allocations: 4.152 MB / 0.498 GB, free: 7.164 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004544/0.2378, allocations: 2.147 MB / 0.5001 GB, free: 4.965 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002718/0.2406, allocations: 1.012 MB / 0.5011 GB, free: 3.949 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003489/0.2441, allocations: 1.659 MB / 0.5028 GB, free: 2.285 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001115/0.2452, allocations: 124 kB / 0.5029 GB, free: 2.164 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003242/0.2485, allocations: 1.069 MB / 0.5039 GB, free: 1.094 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.3138/0.5623, allocations: 1.479 MB / 0.5054 GB, free: 14.17 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001463/0.5638, allocations: 0.7314 MB / 0.5061 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008262/0.5721, allocations: 4.703 MB / 0.5107 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.5721, allocations: 0 / 0.5107 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.5721, allocations: 1.094 kB / 0.5107 GB, free: 13.86 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002311/0.5724, allocations: 0 / 0.5107 GB, free: 13.86 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.01152/0.5839, allocations: 3.441 MB / 0.514 GB, free: 12.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.584, allocations: 9.094 kB / 0.514 GB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01874/0.6027, allocations: 5.775 MB / 0.5197 GB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006593/0.6093, allocations: 2.174 MB / 0.5218 GB, free: 11.42 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001812/0.6096, allocations: 177.2 kB / 0.522 GB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001251/0.6108, allocations: 307.7 kB / 0.5223 GB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02071/0.6315, allocations: 10.72 MB / 0.5327 GB, free: 8.848 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-05/0.6317, allocations: 29.12 kB / 0.5328 GB, free: 8.844 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004592/0.6321, allocations: 118.8 kB / 0.5329 GB, free: 8.844 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003374/0.6355, allocations: 2.459 MB / 0.5353 GB, free: 8.293 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02121/0.6567, allocations: 10.14 MB / 0.5452 GB, free: 4.074 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06078/0.7176, allocations: 35.67 MB / 0.58 GB, free: 1.969 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01261/0.7302, allocations: 5.584 MB / 0.5855 GB, free: 12.17 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003953/0.7342, allocations: 2.326 MB / 0.5877 GB, free: 9.84 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002093/0.7363, allocations: 1.877 MB / 0.5896 GB, free: 7.637 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.347e-05/0.7364, allocations: 51.19 kB / 0.5896 GB, free: 7.582 MB / 430.1 MB Notification: Performance of pre-optimization done (n=224): time 7.745e-06/0.7364, allocations: 0 / 0.5896 GB, free: 7.582 MB / 430.1 MB Notification: Performance of matching and sorting (n=231): time 0.03961/0.776, allocations: 14.94 MB / 0.6042 GB, free: 8.559 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001397/0.7775, allocations: 1.52 MB / 0.6057 GB, free: 6.895 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006175/0.7837, allocations: 2.784 MB / 0.6084 GB, free: 4.098 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005968/0.7843, allocations: 54.83 kB / 0.6085 GB, free: 4.043 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002477/0.7868, allocations: 2.68 MB / 0.6111 GB, free: 1.371 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001508/0.7883, allocations: 0.8488 MB / 0.6119 GB, free: 0.5273 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008237/0.7891, allocations: 113.2 kB / 0.612 GB, free: 432 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0008438/0.79, allocations: 0.5416 MB / 0.6125 GB, free: 15.87 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006132/0.7961, allocations: 2.611 MB / 0.6151 GB, free: 13.25 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008481/0.8047, allocations: 5.615 MB / 0.6206 GB, free: 6.219 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008548/0.8132, allocations: 3.816 MB / 0.6243 GB, free: 2.496 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001503/0.8134, allocations: 32 kB / 0.6243 GB, free: 2.465 MB / 462.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.06304/0.8765, allocations: 18.99 MB / 0.6429 GB, free: 84 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001567/0.8767, allocations: 54.34 kB / 0.6429 GB, free: 32 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04289/0.9196, allocations: 12 MB / 0.6546 GB, free: 4.023 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04192/0.9615, allocations: 10.3 MB / 0.6647 GB, free: 9.699 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005603/0.9672, allocations: 1.315 MB / 0.666 GB, free: 8.488 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02798/0.9952, allocations: 16.02 MB / 0.6816 GB, free: 8.258 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00543/1.001, allocations: 435.5 kB / 0.682 GB, free: 7.832 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001525/1.002, allocations: 320 kB / 0.6824 GB, free: 7.52 MB / 0.5137 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.006249/1.008, allocations: 2.024 MB / 0.6843 GB, free: 5.59 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009291/1.009, allocations: 272.4 kB / 0.6846 GB, free: 5.32 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01122/1.021, allocations: 5.107 MB / 0.6896 GB, free: 200 kB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008142/1.029, allocations: 4.396 MB / 0.6939 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.53e-05/1.029, allocations: 4 kB / 0.6939 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.609e-05/1.029, allocations: 11.95 kB / 0.6939 GB, free: 11.79 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3712/1.4, allocations: 12.91 MB / 0.7065 GB, free: 190.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.104e-05/1.4, allocations: 7.688 kB / 0.7065 GB, free: 190.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002439/1.403, allocations: 460.3 kB / 0.7069 GB, free: 190.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002848/1.406, allocations: 0.9381 MB / 0.7079 GB, free: 190.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005565/1.406, allocations: 52.95 kB / 0.7079 GB, free: 190.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006417/1.413, allocations: 5.459 MB / 0.7132 GB, free: 188 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008701/1.413, allocations: 1.457 MB / 0.7147 GB, free: 186.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01365/1.427, allocations: 7.706 MB / 0.7222 GB, free: 184.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001011/1.428, allocations: 333 kB / 0.7225 GB, free: 184.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004617/1.429, allocations: 44.3 kB / 0.7225 GB, free: 184.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001429/1.43, allocations: 201.3 kB / 0.7227 GB, free: 184.5 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003433/1.43, allocations: 141.2 kB / 0.7229 GB, free: 184.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001653/1.431, allocations: 67.62 kB / 0.7229 GB, free: 184.5 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002831/1.433, allocations: 1.7 MB / 0.7246 GB, free: 183.9 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.21e-07/1.433, allocations: 0 / 0.7246 GB, free: 183.9 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005191/1.439, allocations: 1.103 MB / 0.7257 GB, free: 183.8 MB / 0.5294 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.0005372/1.439, allocations: 181.9 kB / 0.7258 GB, free: 183.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01051/1.45, allocations: 6.596 MB / 0.7323 GB, free: 181.4 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.24e-05/1.45, allocations: 3.875 kB / 0.7323 GB, free: 181.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003548/1.453, allocations: 2.527 MB / 0.7348 GB, free: 180.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002587/1.456, allocations: 364.2 kB / 0.7351 GB, free: 180.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01738/1.473, allocations: 11.59 MB / 0.7464 GB, free: 169.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003312/1.477, allocations: 3.167 MB / 0.7495 GB, free: 166.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00503/1.482, allocations: 2.056 MB / 0.7515 GB, free: 164.3 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007757/1.483, allocations: 211.4 kB / 0.7517 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of SimCode: time 2.214e-06/1.483, allocations: 0 / 0.7517 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of Templates: time 0.06668/1.549, allocations: 43.15 MB / 0.7939 GB, free: 121 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches