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.001225/0.001226, allocations: 104.1 kB / 18.44 MB, free: 4.605 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.00125/0.00125, allocations: 184.2 kB / 19.38 MB, free: 3.684 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.271/1.271, allocations: 222.9 MB / 243.1 MB, free: 15.05 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.1968/0.1968, allocations: 44.18 MB / 337.4 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 55.91 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3648/0.366, allocations: 60.82 MB / 0.5196 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01229/0.3783, allocations: 11.8 MB / 0.5311 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009184/0.3876, allocations: 4.053 MB / 0.5351 GB, free: 8.145 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002612/0.3902, allocations: 64.38 kB / 0.5351 GB, free: 8.133 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002978/0.3932, allocations: 1.166 MB / 0.5363 GB, free: 7.336 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005125/0.3984, allocations: 1.761 MB / 0.538 GB, free: 6.141 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001802/0.4002, allocations: 0.5536 MB / 0.5385 GB, free: 5.789 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006735/0.407, allocations: 3.957 MB / 0.5424 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003485/0.4105, allocations: 1.788 MB / 0.5441 GB, free: 2.605 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002705/0.4132, allocations: 1.161 MB / 0.5453 GB, free: 1.664 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003185/0.4164, allocations: 1.686 MB / 0.5469 GB, free: 15.97 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009256/0.4174, allocations: 223.9 kB / 0.5471 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003181/0.4206, allocations: 1.307 MB / 0.5484 GB, free: 14.45 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002115/0.4227, allocations: 1.585 MB / 0.5499 GB, free: 12.86 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003283/0.426, allocations: 1.851 MB / 0.5517 GB, free: 10.99 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009481/0.4355, allocations: 6.237 MB / 0.5578 GB, free: 4.734 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.573e-06/0.4355, allocations: 0 / 0.5578 GB, free: 4.734 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.4356, allocations: 0 / 0.5578 GB, free: 4.734 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002517/0.4358, allocations: 0 / 0.5578 GB, free: 4.734 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.009742/0.4456, allocations: 4.119 MB / 0.5619 GB, free: 0.5469 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.4456, allocations: 12.03 kB / 0.5619 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01873/0.4644, allocations: 5.665 MB / 0.5674 GB, free: 10.86 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005512/0.4699, allocations: 2.221 MB / 0.5696 GB, free: 8.59 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002381/0.4702, allocations: 176.8 kB / 0.5697 GB, free: 8.414 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001583/0.4718, allocations: 319.5 kB / 0.57 GB, free: 8.102 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02136/0.4932, allocations: 10.72 MB / 0.5805 GB, free: 12.92 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001407/0.4934, allocations: 23.81 kB / 0.5805 GB, free: 12.9 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00116/0.4946, allocations: 119.8 kB / 0.5806 GB, free: 12.78 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004065/0.4986, allocations: 2.463 MB / 0.5831 GB, free: 10.32 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02026/0.5189, allocations: 10.17 MB / 0.593 GB, free: 148 kB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05482/0.5738, allocations: 35.5 MB / 0.6277 GB, free: 11.77 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01153/0.5854, allocations: 5.603 MB / 0.6331 GB, free: 5.941 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003228/0.5886, allocations: 2.33 MB / 0.6354 GB, free: 3.605 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001677/0.5903, allocations: 1.868 MB / 0.6372 GB, free: 1.402 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.824e-05/0.5904, allocations: 56.5 kB / 0.6373 GB, free: 1.34 MB / 494.1 MB Notification: Performance of pre-optimization done (n=224): time 6.943e-06/0.5904, allocations: 0 / 0.6373 GB, free: 1.34 MB / 494.1 MB Notification: Performance of matching and sorting (n=231): time 0.03631/0.6267, allocations: 14.96 MB / 0.6519 GB, free: 2.266 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001398/0.6282, allocations: 1.614 MB / 0.6535 GB, free: 496 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004771/0.633, allocations: 2.794 MB / 0.6562 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0005405/0.6335, allocations: 57.69 kB / 0.6562 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002085/0.6356, allocations: 2.678 MB / 0.6589 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001194/0.6368, allocations: 0.8557 MB / 0.6597 GB, free: 10.03 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002659/0.6395, allocations: 1.103 MB / 0.6608 GB, free: 8.91 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.489e-05/0.6396, allocations: 305.1 kB / 0.6611 GB, free: 8.609 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004048/0.6437, allocations: 2.63 MB / 0.6636 GB, free: 5.973 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005947/0.6496, allocations: 5.647 MB / 0.6691 GB, free: 14.85 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01066/0.6603, allocations: 8.945 MB / 0.6779 GB, free: 4.438 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001056/0.6605, allocations: 32 kB / 0.6779 GB, free: 4.406 MB / 0.5294 GB Notification: Performance of matching and sorting (n=733) (initialization): time 0.06709/0.7276, allocations: 19.03 MB / 0.6965 GB, free: 1.344 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001569/0.7278, allocations: 52.94 kB / 0.6965 GB, free: 1.293 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.048/0.7758, allocations: 12.01 MB / 0.7083 GB, free: 5.242 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04974/0.8256, allocations: 10.28 MB / 0.7183 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004566/0.8302, allocations: 1.318 MB / 0.7196 GB, free: 9.613 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.289/1.119, allocations: 18.21 MB / 0.7374 GB, free: 177.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004216/1.123, allocations: 435.2 kB / 0.7378 GB, free: 177.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008284/1.124, allocations: 321.2 kB / 0.7381 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.003746/1.128, allocations: 2.024 MB / 0.7401 GB, free: 177 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007216/1.129, allocations: 273.8 kB / 0.7403 GB, free: 177 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009732/1.138, allocations: 5.112 MB / 0.7453 GB, free: 175.3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006329/1.145, allocations: 4.407 MB / 0.7496 GB, free: 174.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.287e-05/1.145, allocations: 0 / 0.7496 GB, free: 174.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-05/1.145, allocations: 13.5 kB / 0.7497 GB, free: 174.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01694/1.162, allocations: 12.92 MB / 0.7623 GB, free: 169.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.55e-05/1.162, allocations: 7.625 kB / 0.7623 GB, free: 169.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001929/1.164, allocations: 452.7 kB / 0.7627 GB, free: 169.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002561/1.166, allocations: 0.9378 MB / 0.7636 GB, free: 169.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002598/1.167, allocations: 55.41 kB / 0.7637 GB, free: 169.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005118/1.172, allocations: 5.822 MB / 0.7694 GB, free: 163.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007287/1.173, allocations: 1.559 MB / 0.7709 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009121/1.182, allocations: 7.725 MB / 0.7784 GB, free: 153.8 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008396/1.183, allocations: 324.6 kB / 0.7787 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004424/1.183, allocations: 47.98 kB / 0.7788 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001483/1.185, allocations: 203.6 kB / 0.779 GB, free: 153.4 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003537/1.185, allocations: 138.9 kB / 0.7791 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00015/1.185, allocations: 65.98 kB / 0.7792 GB, free: 153.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001994/1.187, allocations: 1.725 MB / 0.7809 GB, free: 151.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.91e-07/1.187, allocations: 0 / 0.7809 GB, free: 151.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00422/1.191, allocations: 1.107 MB / 0.7819 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.0004923/1.192, allocations: 188 kB / 0.7821 GB, free: 150.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.009183/1.201, allocations: 6.671 MB / 0.7886 GB, free: 143.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.147e-05/1.201, allocations: 0 / 0.7886 GB, free: 143.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003245/1.204, allocations: 2.539 MB / 0.7911 GB, free: 140.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002242/1.207, allocations: 386.5 kB / 0.7915 GB, free: 140.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01293/1.22, allocations: 10.25 MB / 0.8015 GB, free: 130.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002717/1.222, allocations: 3.152 MB / 0.8046 GB, free: 127 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001099/1.223, allocations: 259.4 kB / 0.8048 GB, free: 126.8 MB / 0.5762 GB Notification: Performance of SimCode: time 1.041e-06/1.223, allocations: 4 kB / 0.8048 GB, free: 126.8 MB / 0.5762 GB Notification: Performance of Templates: time 0.09749/1.321, allocations: 112.7 MB / 0.9149 GB, free: 14.14 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","/var/lib/jenkins1/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