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.001305/0.001305, allocations: 103.1 kB / 16.27 MB, free: 5.93 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.001334/0.001334, allocations: 192.5 kB / 17.2 MB, free: 5.574 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.619/1.619, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.255/0.255, allocations: 43.52 MB / 313.9 MB, free: 0.5117 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.001493/0.001493, allocations: 72.47 kB / 382.7 MB, free: 56.72 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1583/0.1598, allocations: 57.79 MB / 440.5 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01142/0.1712, allocations: 11.82 MB / 452.3 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01064/0.1819, allocations: 4.035 MB / 456.4 MB, free: 6.977 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002219/0.1842, allocations: 63.88 kB / 456.4 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002905/0.1871, allocations: 1.183 MB / 457.6 MB, free: 5.727 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00486/0.192, allocations: 1.751 MB / 459.4 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001647/0.1937, allocations: 0.5574 MB / 459.9 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006524/0.2002, allocations: 3.954 MB / 463.9 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004608/0.2049, allocations: 1.791 MB / 465.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002917/0.2078, allocations: 1.16 MB / 466.8 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003116/0.2109, allocations: 1.686 MB / 468.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001299/0.2123, allocations: 220 kB / 468.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004259/0.2165, allocations: 1.287 MB / 470 MB, free: 9.273 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003155/0.2197, allocations: 1.593 MB / 471.6 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005022/0.2248, allocations: 1.848 MB / 473.5 MB, free: 5.816 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00977/0.2345, allocations: 5.961 MB / 479.4 MB, free: 15.83 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.2346, allocations: 0 / 479.4 MB, free: 15.83 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.2346, allocations: 4 kB / 479.4 MB, free: 15.82 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001742/0.2348, allocations: 0 / 479.4 MB, free: 15.82 MB / 366.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.01102/0.2458, allocations: 4.115 MB / 483.5 MB, free: 11.64 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.2459, allocations: 8.031 kB / 483.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01962/0.2655, allocations: 5.673 MB / 489.2 MB, free: 5.949 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006058/0.2716, allocations: 2.248 MB / 491.5 MB, free: 3.652 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001615/0.2718, allocations: 184.7 kB / 491.7 MB, free: 3.469 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009769/0.2728, allocations: 307.7 kB / 492 MB, free: 3.168 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02191/0.2947, allocations: 10.73 MB / 0.4909 GB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000194/0.2949, allocations: 19.81 kB / 0.4909 GB, free: 7.957 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001087/0.296, allocations: 111.8 kB / 0.491 GB, free: 7.848 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004688/0.3008, allocations: 2.471 MB / 0.4934 GB, free: 5.375 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0231/0.3239, allocations: 10.15 MB / 0.5034 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4144/0.7383, allocations: 35.69 MB / 0.5382 GB, free: 67.13 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01224/0.7506, allocations: 5.601 MB / 0.5437 GB, free: 65.96 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003824/0.7545, allocations: 2.334 MB / 0.546 GB, free: 65.95 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001602/0.7561, allocations: 1.882 MB / 0.5478 GB, free: 64.25 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.365e-05/0.7561, allocations: 50.81 kB / 0.5478 GB, free: 64.2 MB / 414.1 MB Notification: Performance of pre-optimization done (n=224): time 6.603e-06/0.7562, allocations: 7.203 kB / 0.5478 GB, free: 64.2 MB / 414.1 MB Notification: Performance of matching and sorting (n=231): time 0.03334/0.7895, allocations: 14.96 MB / 0.5625 GB, free: 60 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001123/0.7907, allocations: 1.614 MB / 0.564 GB, free: 58.42 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00395/0.7946, allocations: 2.798 MB / 0.5668 GB, free: 57.33 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004091/0.7951, allocations: 56.17 kB / 0.5668 GB, free: 57.27 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001685/0.7968, allocations: 2.688 MB / 0.5694 GB, free: 54.93 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001212/0.798, allocations: 0.8435 MB / 0.5703 GB, free: 54.22 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001543/0.7995, allocations: 1.121 MB / 0.5714 GB, free: 53.38 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.384e-05/0.7996, allocations: 305.1 kB / 0.5717 GB, free: 53.07 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003018/0.8026, allocations: 2.63 MB / 0.5742 GB, free: 50.44 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004333/0.807, allocations: 5.638 MB / 0.5797 GB, free: 43.4 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008516/0.8155, allocations: 8.939 MB / 0.5885 GB, free: 33.1 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.406e-05/0.8156, allocations: 32 kB / 0.5885 GB, free: 33.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.06153/0.8771, allocations: 19.03 MB / 0.6071 GB, free: 14 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.739e-05/0.8773, allocations: 53.25 kB / 0.6071 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04366/0.9209, allocations: 12.03 MB / 0.6189 GB, free: 1.902 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05116/0.9721, allocations: 10.29 MB / 0.6289 GB, free: 7.59 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005771/0.978, allocations: 1.32 MB / 0.6302 GB, free: 6.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0309/1.009, allocations: 18.23 MB / 0.648 GB, free: 3.777 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005166/1.014, allocations: 427.5 kB / 0.6484 GB, free: 3.359 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00106/1.015, allocations: 317.4 kB / 0.6487 GB, free: 3.051 MB / 446.1 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.0039/1.019, allocations: 2.035 MB / 0.6507 GB, free: 1.008 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006518/1.02, allocations: 269 kB / 0.651 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008989/1.029, allocations: 5.113 MB / 0.656 GB, free: 11.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007366/1.036, allocations: 4.401 MB / 0.6603 GB, free: 7.184 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.688e-05/1.036, allocations: 7.938 kB / 0.6603 GB, free: 7.176 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.3e-05/1.036, allocations: 12.52 kB / 0.6603 GB, free: 7.164 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02651/1.063, allocations: 12.94 MB / 0.6729 GB, free: 10.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.89e-05/1.063, allocations: 8 kB / 0.6729 GB, free: 10.09 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00224/1.065, allocations: 460.1 kB / 0.6734 GB, free: 9.645 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003041/1.068, allocations: 0.9464 MB / 0.6743 GB, free: 8.688 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002096/1.068, allocations: 47.98 kB / 0.6743 GB, free: 8.641 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007219/1.076, allocations: 5.833 MB / 0.68 GB, free: 2.535 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001273/1.077, allocations: 1.543 MB / 0.6815 GB, free: 0.8398 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01278/1.09, allocations: 7.743 MB / 0.6891 GB, free: 8.977 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001145/1.091, allocations: 326.6 kB / 0.6894 GB, free: 8.637 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004668/1.091, allocations: 44.48 kB / 0.6894 GB, free: 8.594 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001589/1.093, allocations: 187.7 kB / 0.6896 GB, free: 8.41 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004392/1.093, allocations: 148.9 kB / 0.6898 GB, free: 8.262 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001842/1.094, allocations: 71.8 kB / 0.6898 GB, free: 8.195 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00293/1.097, allocations: 1.729 MB / 0.6915 GB, free: 6.461 MB / 494.1 MB Notification: Performance of sort global known variables: time 7.61e-07/1.097, allocations: 0 / 0.6915 GB, free: 6.461 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006556/1.103, allocations: 1.107 MB / 0.6926 GB, free: 5.359 MB / 494.1 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.0006061/1.104, allocations: 190.1 kB / 0.6928 GB, free: 5.172 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01793/1.122, allocations: 9.683 MB / 0.7022 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.193e-05/1.122, allocations: 0 / 0.7022 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003837/1.126, allocations: 2.524 MB / 0.7047 GB, free: 8.922 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002476/1.128, allocations: 387.2 kB / 0.7051 GB, free: 8.555 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02025/1.148, allocations: 9.949 MB / 0.7148 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003863/1.152, allocations: 3.16 MB / 0.7179 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004951/1.157, allocations: 2.064 MB / 0.7199 GB, free: 9.254 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007798/1.158, allocations: 211.4 kB / 0.7201 GB, free: 9.047 MB / 0.5137 GB Notification: Performance of SimCode: time 9.82e-07/1.158, allocations: 0 / 0.7201 GB, free: 9.047 MB / 0.5137 GB Notification: Performance of Templates: time 0.3457/1.504, allocations: 46.11 MB / 0.7651 GB, free: 168.2 MB / 0.5137 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches