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.001072/0.001072, allocations: 97.72 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001492/0.001492, allocations: 177.7 kB / 16.92 MB, free: 6.668 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.594/1.594, allocations: 205.4 MB / 223.1 MB, free: 5.555 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.3834/0.3834, allocations: 43.57 MB / 315 MB, free: 8.766 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.0005508/0.0005508, allocations: 12 kB / 384.6 MB, free: 7.648 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.168/0.1686, allocations: 58.87 MB / 443.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.3434/0.512, allocations: 24.86 MB / 468.3 MB, free: 34.83 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01665/0.5288, allocations: 6.317 MB / 474.6 MB, free: 32.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005252/0.5341, allocations: 111.6 kB / 474.7 MB, free: 32.49 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001082/0.5352, allocations: 422.3 kB / 475.1 MB, free: 32.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004134/0.5394, allocations: 1.654 MB / 476.8 MB, free: 31.98 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00142/0.5408, allocations: 0.505 MB / 477.3 MB, free: 31.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005732/0.5465, allocations: 5.422 MB / 482.7 MB, free: 30.46 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003122/0.5497, allocations: 2.264 MB / 485 MB, free: 29.51 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001764/0.5515, allocations: 0.9401 MB / 485.9 MB, free: 29.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002391/0.5539, allocations: 1.701 MB / 487.6 MB, free: 28.65 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004356/0.5543, allocations: 125 kB / 487.8 MB, free: 28.65 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002611/0.557, allocations: 1.29 MB / 489 MB, free: 28.31 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002206/0.5592, allocations: 1.531 MB / 490.6 MB, free: 27.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003208/0.5624, allocations: 1.773 MB / 492.3 MB, free: 26.56 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01333/0.5758, allocations: 5.796 MB / 498.1 MB, free: 24.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.034e-05/0.5758, allocations: 0 / 498.1 MB, free: 24.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 5.851e-06/0.5759, allocations: 0.6562 kB / 498.1 MB, free: 24.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004248/0.5763, allocations: 1.406 kB / 498.1 MB, free: 24.91 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.01345/0.5897, allocations: 3.39 MB / 0.4898 GB, free: 22.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.307e-05/0.5898, allocations: 10.17 kB / 0.4898 GB, free: 22.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02172/0.6116, allocations: 5.776 MB / 0.4954 GB, free: 20.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008089/0.6197, allocations: 2.259 MB / 0.4976 GB, free: 19.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000266/0.62, allocations: 181.7 kB / 0.4978 GB, free: 19.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00212/0.6222, allocations: 312.7 kB / 0.4981 GB, free: 18.95 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02509/0.6473, allocations: 10.74 MB / 0.5086 GB, free: 12.6 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001002/0.6474, allocations: 31.66 kB / 0.5086 GB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004147/0.6479, allocations: 111.8 kB / 0.5087 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003755/0.6516, allocations: 2.459 MB / 0.5111 GB, free: 10 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02175/0.6734, allocations: 10.19 MB / 0.5211 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07128/0.7447, allocations: 35.68 MB / 0.5559 GB, free: 11.29 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01336/0.7582, allocations: 5.599 MB / 0.5614 GB, free: 5.465 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004087/0.7623, allocations: 2.334 MB / 0.5637 GB, free: 3.125 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001906/0.7643, allocations: 1.872 MB / 0.5655 GB, free: 0.918 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.545e-05/0.7643, allocations: 60.44 kB / 0.5656 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of pre-optimization done (n=224): time 6.763e-06/0.7643, allocations: 0 / 0.5656 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of matching and sorting (n=231): time 0.04038/0.8047, allocations: 14.97 MB / 0.5802 GB, free: 1.762 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00157/0.8063, allocations: 1.519 MB / 0.5817 GB, free: 84 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004985/0.8113, allocations: 2.802 MB / 0.5844 GB, free: 13.27 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007714/0.8121, allocations: 57.64 kB / 0.5845 GB, free: 13.2 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00228/0.8144, allocations: 2.674 MB / 0.5871 GB, free: 10.49 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001457/0.8159, allocations: 0.8557 MB / 0.5879 GB, free: 9.621 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007783/0.8167, allocations: 490.3 kB / 0.5884 GB, free: 9.133 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.8168, allocations: 305.2 kB / 0.5887 GB, free: 8.832 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004412/0.8212, allocations: 2.638 MB / 0.5912 GB, free: 6.188 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006737/0.828, allocations: 5.64 MB / 0.5967 GB, free: 15.08 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01346/0.8415, allocations: 8.929 MB / 0.6055 GB, free: 4.68 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001679/0.8417, allocations: 36 kB / 0.6055 GB, free: 4.645 MB / 478.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.0721/0.9138, allocations: 19.04 MB / 0.6241 GB, free: 1.57 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001113/0.914, allocations: 52 kB / 0.6241 GB, free: 1.52 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04784/0.9618, allocations: 12.01 MB / 0.6359 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.401/1.363, allocations: 10.29 MB / 0.6459 GB, free: 154.1 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00592/1.369, allocations: 1.312 MB / 0.6472 GB, free: 154.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02804/1.397, allocations: 16.04 MB / 0.6629 GB, free: 150.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006013/1.403, allocations: 442.8 kB / 0.6633 GB, free: 150.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001457/1.404, allocations: 324.1 kB / 0.6636 GB, free: 150.5 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.006299/1.411, allocations: 2.021 MB / 0.6656 GB, free: 149.6 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007153/1.412, allocations: 271.9 kB / 0.6658 GB, free: 149.6 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01095/1.422, allocations: 5.117 MB / 0.6708 GB, free: 148 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009302/1.432, allocations: 4.409 MB / 0.6751 GB, free: 146.7 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.447e-05/1.432, allocations: 2.688 kB / 0.6751 GB, free: 146.7 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.536e-05/1.432, allocations: 7.547 kB / 0.6751 GB, free: 146.7 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02578/1.458, allocations: 12.94 MB / 0.6878 GB, free: 142.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.32e-05/1.458, allocations: 11.75 kB / 0.6878 GB, free: 142.2 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002173/1.46, allocations: 456.9 kB / 0.6882 GB, free: 142.2 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002904/1.463, allocations: 0.9322 MB / 0.6891 GB, free: 142 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004772/1.463, allocations: 57.61 kB / 0.6892 GB, free: 142 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006129/1.47, allocations: 5.466 MB / 0.6945 GB, free: 138.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008857/1.47, allocations: 1.459 MB / 0.6959 GB, free: 136.8 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01172/1.482, allocations: 7.731 MB / 0.7035 GB, free: 131.1 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001108/1.483, allocations: 335.9 kB / 0.7038 GB, free: 130.9 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004503/1.484, allocations: 44 kB / 0.7039 GB, free: 130.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001605/1.485, allocations: 196.5 kB / 0.704 GB, free: 130.6 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004265/1.486, allocations: 148.5 kB / 0.7042 GB, free: 130.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001765/1.486, allocations: 67.97 kB / 0.7043 GB, free: 130.4 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003045/1.489, allocations: 1.729 MB / 0.7059 GB, free: 128.7 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.31e-07/1.489, allocations: 0 / 0.7059 GB, free: 128.7 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.007346/1.496, allocations: 1.108 MB / 0.707 GB, free: 127.6 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.000696/1.497, allocations: 189.3 kB / 0.7072 GB, free: 127.4 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01246/1.51, allocations: 6.617 MB / 0.7137 GB, free: 120.8 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.288e-05/1.51, allocations: 5.969 kB / 0.7137 GB, free: 120.8 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003394/1.513, allocations: 2.518 MB / 0.7161 GB, free: 118.3 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004758/1.518, allocations: 378.4 kB / 0.7165 GB, free: 117.9 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0178/1.536, allocations: 11.99 MB / 0.7282 GB, free: 105.8 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003088/1.539, allocations: 3.173 MB / 0.7313 GB, free: 102.6 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00452/1.543, allocations: 2.06 MB / 0.7333 GB, free: 100.5 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007129/1.544, allocations: 215.4 kB / 0.7335 GB, free: 100.3 MB / 0.4981 GB Notification: Performance of SimCode: time 1.633e-06/1.544, allocations: 0 / 0.7335 GB, free: 100.3 MB / 0.4981 GB Notification: Performance of Templates: time 0.0716/1.616, allocations: 44.03 MB / 0.7765 GB, free: 56.32 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