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/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 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 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006962/0.006962, allocations: 100.1 kB / 15.87 MB, free: 6.309 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.001453/0.001453, allocations: 197 kB / 16.79 MB, free: 6.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.513/1.513, allocations: 205.1 MB / 222.7 MB, free: 4.625 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3938/0.3938, allocations: 43.49 MB / 313.5 MB, free: 8.594 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 75.12 kB / 382 MB, free: 8.707 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1423, allocations: 57.79 MB / 439.8 MB, free: 14.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.3358/0.4782, allocations: 25.7 MB / 465.5 MB, free: 36.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0134/0.4916, allocations: 6.389 MB / 471.9 MB, free: 33.3 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007001/0.4987, allocations: 110 kB / 472 MB, free: 33.28 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002834/0.5016, allocations: 1.144 MB / 473.2 MB, free: 32.79 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004986/0.5066, allocations: 1.642 MB / 474.8 MB, free: 32.13 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0018/0.5084, allocations: 0.5108 MB / 475.3 MB, free: 31.95 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007298/0.5157, allocations: 5.412 MB / 480.7 MB, free: 30.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004505/0.5203, allocations: 1.756 MB / 482.5 MB, free: 29.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002875/0.5232, allocations: 1.009 MB / 483.5 MB, free: 29.45 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003517/0.5267, allocations: 1.779 MB / 485.3 MB, free: 28.89 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001321/0.5281, allocations: 156.7 kB / 485.4 MB, free: 28.89 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004815/0.5329, allocations: 1.32 MB / 486.8 MB, free: 28.55 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004299/0.5372, allocations: 1.556 MB / 488.3 MB, free: 28.06 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00744/0.5447, allocations: 1.807 MB / 490.1 MB, free: 26.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01308/0.5578, allocations: 5.917 MB / 496 MB, free: 24.7 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.5579, allocations: 0 / 496 MB, free: 24.7 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.5579, allocations: 0 / 496 MB, free: 24.7 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003227/0.5582, allocations: 1 kB / 496 MB, free: 24.7 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.0182/0.5764, allocations: 4.112 MB / 0.4884 GB, free: 22.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.623e-05/0.5765, allocations: 8.875 kB / 0.4884 GB, free: 22.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02178/0.5983, allocations: 5.677 MB / 0.494 GB, free: 20.42 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0082/0.6065, allocations: 2.251 MB / 0.4962 GB, free: 19.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003904/0.607, allocations: 177.3 kB / 0.4963 GB, free: 18.94 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002494/0.6095, allocations: 312.4 kB / 0.4966 GB, free: 18.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02608/0.6356, allocations: 10.71 MB / 0.5071 GB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001852/0.6358, allocations: 31.73 kB / 0.5071 GB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002078/0.6379, allocations: 119.8 kB / 0.5072 GB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003986/0.6419, allocations: 2.455 MB / 0.5096 GB, free: 9.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02397/0.6659, allocations: 10.17 MB / 0.5196 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07249/0.7385, allocations: 35.7 MB / 0.5544 GB, free: 10.87 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01357/0.7521, allocations: 5.594 MB / 0.5599 GB, free: 5.047 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004063/0.7562, allocations: 2.335 MB / 0.5622 GB, free: 2.707 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001851/0.7581, allocations: 1.88 MB / 0.564 GB, free: 0.4922 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.374e-05/0.7582, allocations: 60.44 kB / 0.5641 GB, free: 436 kB / 430.1 MB Notification: Performance of pre-optimization done (n=224): time 8.786e-06/0.7582, allocations: 0 / 0.5641 GB, free: 436 kB / 430.1 MB Notification: Performance of matching and sorting (n=231): time 0.042/0.8002, allocations: 14.96 MB / 0.5787 GB, free: 1.344 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001686/0.8019, allocations: 1.519 MB / 0.5802 GB, free: 15.66 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007514/0.8095, allocations: 2.81 MB / 0.5829 GB, free: 12.84 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008287/0.8103, allocations: 49.7 kB / 0.583 GB, free: 12.79 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003358/0.8137, allocations: 2.681 MB / 0.5856 GB, free: 10.06 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002019/0.8158, allocations: 0.8558 MB / 0.5864 GB, free: 9.195 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004646/0.8204, allocations: 1.107 MB / 0.5875 GB, free: 8.074 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.8206, allocations: 305.1 kB / 0.5878 GB, free: 7.773 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00548/0.8261, allocations: 2.638 MB / 0.5904 GB, free: 5.129 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008604/0.8347, allocations: 5.636 MB / 0.5959 GB, free: 14.02 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01397/0.8487, allocations: 8.941 MB / 0.6046 GB, free: 3.613 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001924/0.849, allocations: 32 kB / 0.6046 GB, free: 3.582 MB / 478.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.06455/0.9135, allocations: 19.04 MB / 0.6232 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001723/0.9138, allocations: 48 kB / 0.6233 GB, free: 472 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04382/0.9576, allocations: 12.01 MB / 0.635 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.396/1.354, allocations: 10.28 MB / 0.645 GB, free: 157.2 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006718/1.36, allocations: 1.318 MB / 0.6463 GB, free: 157.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0273/1.388, allocations: 16.05 MB / 0.662 GB, free: 152.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006383/1.394, allocations: 439 kB / 0.6624 GB, free: 152.2 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001692/1.396, allocations: 317.3 kB / 0.6627 GB, free: 152.2 MB / 0.4981 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.007474/1.403, allocations: 2.023 MB / 0.6647 GB, free: 151.4 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009314/1.404, allocations: 275.4 kB / 0.665 GB, free: 151.4 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009798/1.414, allocations: 5.112 MB / 0.67 GB, free: 149.8 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008054/1.422, allocations: 4.413 MB / 0.6743 GB, free: 148.5 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.522e-05/1.422, allocations: 1.844 kB / 0.6743 GB, free: 148.5 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.95e-05/1.422, allocations: 7.828 kB / 0.6743 GB, free: 148.5 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02236/1.445, allocations: 12.93 MB / 0.6869 GB, free: 144.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.585e-05/1.445, allocations: 11.06 kB / 0.6869 GB, free: 144 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001826/1.447, allocations: 459.4 kB / 0.6873 GB, free: 144 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002796/1.449, allocations: 0.9361 MB / 0.6883 GB, free: 143.9 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000251/1.45, allocations: 54.52 kB / 0.6883 GB, free: 143.9 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005847/1.456, allocations: 5.451 MB / 0.6936 GB, free: 139.9 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009282/1.457, allocations: 1.472 MB / 0.6951 GB, free: 138.4 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01183/1.468, allocations: 7.726 MB / 0.7026 GB, free: 131.7 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001108/1.47, allocations: 332.5 kB / 0.7029 GB, free: 131.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009152/1.47, allocations: 36 kB / 0.703 GB, free: 131.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00202/1.473, allocations: 197.7 kB / 0.7032 GB, free: 131.2 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004959/1.473, allocations: 149.1 kB / 0.7033 GB, free: 131.1 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002242/1.473, allocations: 69.92 kB / 0.7034 GB, free: 131 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003908/1.477, allocations: 1.732 MB / 0.7051 GB, free: 129.3 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.11e-07/1.477, allocations: 0 / 0.7051 GB, free: 129.3 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.006568/1.484, allocations: 1.104 MB / 0.7061 GB, free: 128.2 MB / 0.4981 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.000703/1.484, allocations: 192.6 kB / 0.7063 GB, free: 128 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01119/1.496, allocations: 6.621 MB / 0.7128 GB, free: 121.4 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.244e-05/1.496, allocations: 4 kB / 0.7128 GB, free: 121.4 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003186/1.499, allocations: 2.52 MB / 0.7153 GB, free: 118.8 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003107/1.502, allocations: 369.8 kB / 0.7156 GB, free: 118.5 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02228/1.524, allocations: 11.91 MB / 0.7272 GB, free: 106.5 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006045/1.53, allocations: 3.169 MB / 0.7303 GB, free: 103.3 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005792/1.536, allocations: 2.065 MB / 0.7323 GB, free: 101.2 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001211/1.538, allocations: 207.4 kB / 0.7325 GB, free: 101 MB / 0.4981 GB Notification: Performance of SimCode: time 1.273e-06/1.538, allocations: 2.625 kB / 0.7325 GB, free: 101 MB / 0.4981 GB Notification: Performance of Templates: time 0.07238/1.61, allocations: 44.74 MB / 0.7762 GB, free: 56.29 MB / 0.4981 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