Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001497/0.001496, allocations: 174.7 kB / 17.41 MB, free: 4.293 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 225.7 MB / 243.9 MB, free: 8.453 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009187/0.0009183, allocations: 92.84 kB / 295 MB, free: 9.484 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4921/0.4921, allocations: 44.31 MB / 390.5 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003685/0.0003687, allocations: 8 kB / 463.1 MB, free: 468 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3847/0.3851, allocations: 61.91 MB / 0.5127 GB, free: 37.89 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01913/0.4043, allocations: 23.23 MB / 0.5354 GB, free: 21.46 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0156/0.42, allocations: 9.145 MB / 0.5444 GB, free: 13.81 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004831/0.4248, allocations: 102.2 kB / 0.5445 GB, free: 13.8 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009227/0.4258, allocations: 419.4 kB / 0.5449 GB, free: 13.66 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003318/0.4291, allocations: 1.653 MB / 0.5465 GB, free: 13 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001019/0.4301, allocations: 0.5116 MB / 0.547 GB, free: 12.82 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.004791/0.435, allocations: 5.407 MB / 0.5523 GB, free: 11.3 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003013/0.438, allocations: 2.569 MB / 0.5548 GB, free: 9.949 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001868/0.4399, allocations: 1.03 MB / 0.5558 GB, free: 9.598 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002442/0.4423, allocations: 1.679 MB / 0.5574 GB, free: 9.094 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004953/0.4428, allocations: 124.1 kB / 0.5575 GB, free: 9.094 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003268/0.4461, allocations: 1.282 MB / 0.5588 GB, free: 8.766 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00249/0.4486, allocations: 1.506 MB / 0.5602 GB, free: 8.293 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002038/0.4507, allocations: 1.769 MB / 0.562 GB, free: 7.02 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01046/0.4611, allocations: 5.807 MB / 0.5676 GB, free: 3.969 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.065e-05/0.4612, allocations: 0 / 0.5676 GB, free: 3.969 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.308e-06/0.4612, allocations: 0 / 0.5676 GB, free: 3.969 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002776/0.4615, allocations: 1.125 kB / 0.5676 GB, free: 3.969 MB / 378.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.009873/0.4714, allocations: 3.386 MB / 0.571 GB, free: 1.336 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.4714, allocations: 8.031 kB / 0.571 GB, free: 1.328 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01737/0.4888, allocations: 5.778 MB / 0.5766 GB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006457/0.4953, allocations: 2.205 MB / 0.5788 GB, free: 9.285 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001566/0.4955, allocations: 180.7 kB / 0.5789 GB, free: 9.105 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001006/0.4965, allocations: 315.5 kB / 0.5792 GB, free: 8.797 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01813/0.5146, allocations: 10.71 MB / 0.5897 GB, free: 13.63 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.951e-05/0.5147, allocations: 35.66 kB / 0.5897 GB, free: 13.59 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003387/0.5151, allocations: 115.8 kB / 0.5898 GB, free: 13.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003656/0.5188, allocations: 2.459 MB / 0.5922 GB, free: 11.02 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01904/0.5378, allocations: 10.14 MB / 0.6021 GB, free: 0.875 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0536/0.5915, allocations: 35.69 MB / 0.637 GB, free: 12.33 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01145/0.6029, allocations: 5.588 MB / 0.6424 GB, free: 6.516 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003429/0.6064, allocations: 2.326 MB / 0.6447 GB, free: 4.184 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001832/0.6083, allocations: 1.88 MB / 0.6465 GB, free: 1.969 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.748e-05/0.6083, allocations: 60.5 kB / 0.6466 GB, free: 1.902 MB / 458.7 MB Notification: Performance of pre-optimization done (n=224): time 7.584e-06/0.6084, allocations: 0 / 0.6466 GB, free: 1.902 MB / 458.7 MB Notification: Performance of matching and sorting (n=231): time 0.03821/0.6466, allocations: 14.93 MB / 0.6612 GB, free: 2.852 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001737/0.6484, allocations: 1.519 MB / 0.6627 GB, free: 1.172 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004874/0.6532, allocations: 2.779 MB / 0.6654 GB, free: 14.38 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004931/0.6538, allocations: 57.69 kB / 0.6654 GB, free: 14.32 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001824/0.6556, allocations: 2.674 MB / 0.668 GB, free: 11.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00113/0.6567, allocations: 0.848 MB / 0.6689 GB, free: 10.74 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002825/0.657, allocations: 115.9 kB / 0.669 GB, free: 10.63 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004108/0.6574, allocations: 0.5416 MB / 0.6695 GB, free: 10.08 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003848/0.6613, allocations: 2.615 MB / 0.6721 GB, free: 7.457 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005542/0.6669, allocations: 5.62 MB / 0.6776 GB, free: 376 kB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2995/0.9664, allocations: 8.906 MB / 0.6863 GB, free: 123.9 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.59e-05/0.9665, allocations: 28.88 kB / 0.6863 GB, free: 123.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.06055/1.027, allocations: 18.99 MB / 0.7048 GB, free: 120.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000124/1.027, allocations: 51.28 kB / 0.7049 GB, free: 120.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0415/1.069, allocations: 12.01 MB / 0.7166 GB, free: 117.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04127/1.11, allocations: 10.27 MB / 0.7266 GB, free: 110.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004846/1.115, allocations: 1.318 MB / 0.7279 GB, free: 108.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02357/1.139, allocations: 16.02 MB / 0.7436 GB, free: 92.63 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004883/1.143, allocations: 440.5 kB / 0.744 GB, free: 92.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008609/1.144, allocations: 320 kB / 0.7443 GB, free: 91.89 MB / 490.7 MB 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.00379/1.148, allocations: 2.023 MB / 0.7463 GB, free: 89.91 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004974/1.149, allocations: 275.4 kB / 0.7465 GB, free: 89.79 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007061/1.156, allocations: 5.1 MB / 0.7515 GB, free: 84.66 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005944/1.162, allocations: 4.4 MB / 0.7558 GB, free: 80.25 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.919e-06/1.162, allocations: 0 / 0.7558 GB, free: 80.25 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.569e-05/1.162, allocations: 11.97 kB / 0.7558 GB, free: 80.24 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01882/1.181, allocations: 12.92 MB / 0.7684 GB, free: 67.23 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.527e-05/1.181, allocations: 9.375 kB / 0.7684 GB, free: 67.22 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0018/1.182, allocations: 455.2 kB / 0.7689 GB, free: 66.78 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002565/1.185, allocations: 0.9393 MB / 0.7698 GB, free: 65.83 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002356/1.185, allocations: 51.34 kB / 0.7698 GB, free: 65.78 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004847/1.19, allocations: 5.46 MB / 0.7752 GB, free: 60.08 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006816/1.191, allocations: 1.458 MB / 0.7766 GB, free: 58.49 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009835/1.201, allocations: 7.715 MB / 0.7841 GB, free: 50.8 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009656/1.202, allocations: 343.9 kB / 0.7845 GB, free: 50.44 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003556/1.202, allocations: 45.08 kB / 0.7845 GB, free: 50.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001391/1.203, allocations: 199.7 kB / 0.7847 GB, free: 50.2 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003874/1.204, allocations: 144.8 kB / 0.7848 GB, free: 50.06 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001595/1.204, allocations: 67.98 kB / 0.7849 GB, free: 50 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002305/1.206, allocations: 1.701 MB / 0.7866 GB, free: 48.29 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.206, allocations: 0 / 0.7866 GB, free: 48.29 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004873/1.211, allocations: 1.104 MB / 0.7876 GB, free: 47.19 MB / 490.7 MB 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.0004666/1.212, allocations: 191.8 kB / 0.7878 GB, free: 47 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009439/1.221, allocations: 6.595 MB / 0.7943 GB, free: 40.38 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.327e-06/1.221, allocations: 0 / 0.7943 GB, free: 40.38 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00311/1.224, allocations: 2.525 MB / 0.7967 GB, free: 37.81 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004251/1.229, allocations: 357.4 kB / 0.7971 GB, free: 37.46 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01489/1.243, allocations: 11.98 MB / 0.8088 GB, free: 25.35 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002647/1.246, allocations: 3.168 MB / 0.8119 GB, free: 22.15 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004223/1.25, allocations: 2.058 MB / 0.8139 GB, free: 20.09 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006897/1.251, allocations: 219.4 kB / 0.8141 GB, free: 19.88 MB / 490.7 MB Notification: Performance of SimCode: time 8.72e-07/1.251, allocations: 0 / 0.8141 GB, free: 19.88 MB / 490.7 MB Notification: Performance of Templates: time 0.07459/1.326, allocations: 43.99 MB / 0.857 GB, free: 8.027 MB / 0.5105 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","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches