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.001035/0.001035, allocations: 112.2 kB / 17.74 MB, free: 5.43 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.00107/0.00107, allocations: 187.1 kB / 18.66 MB, free: 4.508 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.304/1.304, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2089/0.2089, allocations: 44.18 MB / 336.7 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 59.91 kB / 470.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3721/0.3735, allocations: 60.82 MB / 0.5188 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01248/0.386, allocations: 11.81 MB / 0.5304 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009431/0.3955, allocations: 4.053 MB / 0.5343 GB, free: 8.145 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002376/0.3979, allocations: 59.97 kB / 0.5344 GB, free: 8.137 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002758/0.4007, allocations: 1.178 MB / 0.5355 GB, free: 7.328 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004725/0.4055, allocations: 1.756 MB / 0.5373 GB, free: 6.137 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001592/0.4071, allocations: 0.5456 MB / 0.5378 GB, free: 5.793 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005294/0.4124, allocations: 3.958 MB / 0.5417 GB, free: 3.734 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002896/0.4153, allocations: 1.796 MB / 0.5434 GB, free: 2.602 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002423/0.4178, allocations: 1.151 MB / 0.5445 GB, free: 1.695 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002924/0.4207, allocations: 1.686 MB / 0.5462 GB, free: 4 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006625/0.4214, allocations: 220 kB / 0.5464 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002942/0.4243, allocations: 1.299 MB / 0.5477 GB, free: 14.49 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001778/0.4261, allocations: 1.586 MB / 0.5492 GB, free: 12.9 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003427/0.4296, allocations: 1.851 MB / 0.551 GB, free: 11.04 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009122/0.4387, allocations: 6.241 MB / 0.5571 GB, free: 4.773 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.215e-06/0.4387, allocations: 3.938 kB / 0.5571 GB, free: 4.77 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.346e-06/0.4387, allocations: 4 kB / 0.5571 GB, free: 4.766 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002297/0.439, allocations: 0 / 0.5571 GB, free: 4.766 MB / 414.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.01035/0.4493, allocations: 4.111 MB / 0.5611 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.361e-05/0.4494, allocations: 8.031 kB / 0.5611 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01943/0.4689, allocations: 5.673 MB / 0.5667 GB, free: 10.89 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00497/0.4739, allocations: 2.224 MB / 0.5688 GB, free: 8.621 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001432/0.474, allocations: 176.8 kB / 0.569 GB, free: 8.445 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001153/0.4752, allocations: 319.5 kB / 0.5693 GB, free: 8.133 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01798/0.4932, allocations: 10.72 MB / 0.5798 GB, free: 12.95 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.063e-05/0.4933, allocations: 23.81 kB / 0.5798 GB, free: 12.93 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003927/0.4937, allocations: 115.8 kB / 0.5799 GB, free: 12.82 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003773/0.4975, allocations: 2.467 MB / 0.5823 GB, free: 10.35 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0193/0.5168, allocations: 10.16 MB / 0.5923 GB, free: 180 kB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04868/0.5655, allocations: 35.5 MB / 0.6269 GB, free: 11.8 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01148/0.5771, allocations: 5.595 MB / 0.6324 GB, free: 5.977 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003133/0.5802, allocations: 2.33 MB / 0.6347 GB, free: 3.645 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001749/0.582, allocations: 1.872 MB / 0.6365 GB, free: 1.438 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.455e-05/0.5821, allocations: 64.44 kB / 0.6366 GB, free: 1.367 MB / 494.1 MB Notification: Performance of pre-optimization done (n=224): time 4.939e-06/0.5821, allocations: 0 / 0.6366 GB, free: 1.367 MB / 494.1 MB Notification: Performance of matching and sorting (n=231): time 0.03386/0.6159, allocations: 14.96 MB / 0.6512 GB, free: 2.293 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001198/0.6172, allocations: 1.614 MB / 0.6527 GB, free: 0.5117 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003427/0.6206, allocations: 2.791 MB / 0.6555 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0004318/0.621, allocations: 61.67 kB / 0.6555 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001692/0.6227, allocations: 2.674 MB / 0.6581 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009124/0.6237, allocations: 0.8518 MB / 0.659 GB, free: 10.06 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0014/0.6251, allocations: 1.107 MB / 0.66 GB, free: 8.941 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 8.932e-05/0.6252, allocations: 301.1 kB / 0.6603 GB, free: 8.645 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003447/0.6286, allocations: 2.638 MB / 0.6629 GB, free: 6 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005669/0.6343, allocations: 5.643 MB / 0.6684 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01173/0.6461, allocations: 8.937 MB / 0.6771 GB, free: 4.477 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.987e-05/0.6462, allocations: 40 kB / 0.6772 GB, free: 4.438 MB / 0.5294 GB Notification: Performance of matching and sorting (n=733) (initialization): time 0.06554/0.7117, allocations: 19.03 MB / 0.6958 GB, free: 1.367 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.64e-05/0.7118, allocations: 55.98 kB / 0.6958 GB, free: 1.312 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04568/0.7575, allocations: 12.01 MB / 0.7076 GB, free: 5.27 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04925/0.8068, allocations: 10.28 MB / 0.7176 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004792/0.8117, allocations: 1.314 MB / 0.7189 GB, free: 9.641 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2896/1.101, allocations: 18.21 MB / 0.7367 GB, free: 177.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004752/1.106, allocations: 433.6 kB / 0.7371 GB, free: 177.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007252/1.107, allocations: 320.2 kB / 0.7374 GB, free: 177.7 MB / 0.5762 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.003409/1.11, allocations: 2.032 MB / 0.7394 GB, free: 177 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005185/1.111, allocations: 271.2 kB / 0.7396 GB, free: 177 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008295/1.119, allocations: 5.106 MB / 0.7446 GB, free: 175.3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006158/1.125, allocations: 4.408 MB / 0.7489 GB, free: 174 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/1.125, allocations: 0 / 0.7489 GB, free: 174 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.699e-05/1.125, allocations: 15.09 kB / 0.7489 GB, free: 174 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01687/1.142, allocations: 12.92 MB / 0.7615 GB, free: 169.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.206e-05/1.142, allocations: 7.594 kB / 0.7615 GB, free: 169.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001837/1.144, allocations: 451.5 kB / 0.762 GB, free: 169.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002518/1.147, allocations: 0.9445 MB / 0.7629 GB, free: 169.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001748/1.147, allocations: 47.36 kB / 0.7629 GB, free: 169.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00487/1.152, allocations: 5.832 MB / 0.7686 GB, free: 163.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006631/1.152, allocations: 1.552 MB / 0.7702 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008415/1.161, allocations: 7.726 MB / 0.7777 GB, free: 153.8 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007803/1.162, allocations: 329.9 kB / 0.778 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003083/1.162, allocations: 43.52 kB / 0.7781 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001357/1.163, allocations: 199.6 kB / 0.7782 GB, free: 153.4 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003394/1.164, allocations: 140.9 kB / 0.7784 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001447/1.164, allocations: 67.97 kB / 0.7784 GB, free: 153.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001875/1.166, allocations: 1.722 MB / 0.7801 GB, free: 151.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.31e-07/1.166, allocations: 0 / 0.7801 GB, free: 151.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003575/1.169, allocations: 1.112 MB / 0.7812 GB, free: 150.4 MB / 0.5762 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.0003782/1.17, allocations: 181.8 kB / 0.7814 GB, free: 150.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.008177/1.178, allocations: 6.679 MB / 0.7879 GB, free: 143.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/1.178, allocations: 0 / 0.7879 GB, free: 143.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002885/1.181, allocations: 2.533 MB / 0.7904 GB, free: 141 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002135/1.183, allocations: 382.2 kB / 0.7907 GB, free: 140.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01487/1.198, allocations: 9.822 MB / 0.8003 GB, free: 130.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004488/1.202, allocations: 3.16 MB / 0.8034 GB, free: 127.5 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004197/1.207, allocations: 2.064 MB / 0.8054 GB, free: 125.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009137/1.207, allocations: 207.4 kB / 0.8056 GB, free: 125.2 MB / 0.5762 GB Notification: Performance of SimCode: time 9.92e-07/1.208, allocations: 4 kB / 0.8056 GB, free: 125.2 MB / 0.5762 GB Notification: Performance of Templates: time 0.05452/1.262, allocations: 42.03 MB / 0.8467 GB, free: 83.33 MB / 0.5762 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