Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001829/0.001829, allocations: 179.5 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.561/1.561, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001029/0.001029, allocations: 89.27 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3455/0.3455, allocations: 43.56 MB / 362.7 MB, free: 52.21 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003646/0.0003648, allocations: 15.98 kB / 431.4 MB, free: 6.156 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1274, allocations: 58.84 MB / 490.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.3352/0.4627, allocations: 23.16 MB / 0.5014 GB, free: 33.81 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01377/0.4765, allocations: 5.961 MB / 0.5072 GB, free: 30.25 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005583/0.4822, allocations: 102.8 kB / 0.5073 GB, free: 30.23 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003179/0.4854, allocations: 1.091 MB / 0.5084 GB, free: 29.86 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0106/0.496, allocations: 3.507 MB / 0.5118 GB, free: 28.45 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002418/0.4984, allocations: 459.1 kB / 0.5122 GB, free: 28.29 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006352/0.5048, allocations: 4.162 MB / 0.5163 GB, free: 26.95 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004436/0.5093, allocations: 2.161 MB / 0.5184 GB, free: 26.07 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002516/0.5118, allocations: 1.008 MB / 0.5194 GB, free: 25.75 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002844/0.5147, allocations: 1.665 MB / 0.521 GB, free: 25.27 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009058/0.5156, allocations: 122.4 kB / 0.5211 GB, free: 25.27 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003027/0.5186, allocations: 1.055 MB / 0.5221 GB, free: 25.04 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00179/0.5204, allocations: 1.487 MB / 0.5236 GB, free: 24.59 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008307/0.5213, allocations: 0.7327 MB / 0.5243 GB, free: 24.06 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006294/0.5276, allocations: 4.704 MB / 0.5289 GB, free: 23.11 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.5276, allocations: 0 / 0.5289 GB, free: 23.11 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.066e-06/0.5276, allocations: 0 / 0.5289 GB, free: 23.11 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002621/0.5279, allocations: 0 / 0.5289 GB, free: 23.11 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.008243/0.5362, allocations: 3.439 MB / 0.5323 GB, free: 21.11 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.5362, allocations: 10.16 kB / 0.5323 GB, free: 21.11 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01851/0.5547, allocations: 5.776 MB / 0.5379 GB, free: 18.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006591/0.5614, allocations: 2.215 MB / 0.5401 GB, free: 17.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002534/0.5617, allocations: 183.5 kB / 0.5403 GB, free: 17.42 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001555/0.5632, allocations: 314.3 kB / 0.5406 GB, free: 17.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0198/0.5831, allocations: 10.72 MB / 0.551 GB, free: 11.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.106e-05/0.5832, allocations: 21.53 kB / 0.551 GB, free: 11.37 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004049/0.5836, allocations: 111 kB / 0.5511 GB, free: 11.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003802/0.5874, allocations: 2.471 MB / 0.5536 GB, free: 9.348 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01953/0.607, allocations: 10.13 MB / 0.5635 GB, free: 15.21 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06417/0.6712, allocations: 35.67 MB / 0.5983 GB, free: 10.69 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0136/0.6849, allocations: 5.588 MB / 0.6038 GB, free: 4.879 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003918/0.6888, allocations: 2.33 MB / 0.606 GB, free: 2.543 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002087/0.691, allocations: 1.876 MB / 0.6079 GB, free: 340 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.069e-05/0.691, allocations: 52.56 kB / 0.6079 GB, free: 280 kB / 426.7 MB Notification: Performance of pre-optimization done (n=224): time 5.681e-06/0.6911, allocations: 0 / 0.6079 GB, free: 280 kB / 426.7 MB Notification: Performance of matching and sorting (n=231): time 0.04272/0.7338, allocations: 14.95 MB / 0.6225 GB, free: 1.203 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001555/0.7354, allocations: 1.523 MB / 0.624 GB, free: 15.52 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006212/0.7416, allocations: 2.794 MB / 0.6267 GB, free: 12.71 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007769/0.7425, allocations: 57.69 kB / 0.6268 GB, free: 12.65 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003316/0.7458, allocations: 2.67 MB / 0.6294 GB, free: 9.941 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002144/0.748, allocations: 0.8519 MB / 0.6302 GB, free: 9.078 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001121/0.7491, allocations: 104 kB / 0.6303 GB, free: 8.977 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0008715/0.75, allocations: 0.5494 MB / 0.6309 GB, free: 8.418 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0056/0.7556, allocations: 2.615 MB / 0.6334 GB, free: 5.797 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008573/0.7642, allocations: 5.62 MB / 0.6389 GB, free: 14.7 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007329/0.7716, allocations: 3.814 MB / 0.6426 GB, free: 10.89 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001433/0.7718, allocations: 32 kB / 0.6427 GB, free: 10.86 MB / 474.7 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.06701/0.8388, allocations: 18.99 MB / 0.6612 GB, free: 7.82 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001777/0.839, allocations: 50.97 kB / 0.6613 GB, free: 7.773 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04209/0.8811, allocations: 12 MB / 0.673 GB, free: 11.74 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0449/0.9261, allocations: 10.3 MB / 0.683 GB, free: 1.418 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005512/0.9317, allocations: 1.31 MB / 0.6843 GB, free: 108 kB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3292/1.261, allocations: 16.03 MB / 0.7 GB, free: 147.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005469/1.266, allocations: 435.1 kB / 0.7004 GB, free: 147.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008124/1.267, allocations: 323.1 kB / 0.7007 GB, free: 147.4 MB / 0.4948 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 (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.003803/1.271, allocations: 2.024 MB / 0.7027 GB, free: 146.6 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006047/1.272, allocations: 270.2 kB / 0.7029 GB, free: 146.6 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007794/1.279, allocations: 5.108 MB / 0.7079 GB, free: 145 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007609/1.287, allocations: 4.385 MB / 0.7122 GB, free: 143.7 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/1.287, allocations: 0 / 0.7122 GB, free: 143.7 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.946e-05/1.287, allocations: 16.73 kB / 0.7122 GB, free: 143.7 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02223/1.309, allocations: 12.9 MB / 0.7248 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.659e-05/1.309, allocations: 7.844 kB / 0.7248 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002015/1.312, allocations: 457.3 kB / 0.7252 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003/1.315, allocations: 0.9425 MB / 0.7262 GB, free: 139.1 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002033/1.315, allocations: 52.64 kB / 0.7262 GB, free: 139.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005824/1.321, allocations: 5.461 MB / 0.7315 GB, free: 135.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007919/1.321, allocations: 1.454 MB / 0.733 GB, free: 134.4 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01036/1.332, allocations: 7.713 MB / 0.7405 GB, free: 131.7 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000781/1.333, allocations: 332.8 kB / 0.7408 GB, free: 131.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003242/1.333, allocations: 46.89 kB / 0.7409 GB, free: 131.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001422/1.334, allocations: 194.3 kB / 0.741 GB, free: 131.4 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002917/1.335, allocations: 148.8 kB / 0.7412 GB, free: 131.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001571/1.335, allocations: 63.73 kB / 0.7412 GB, free: 131.4 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002929/1.338, allocations: 1.701 MB / 0.7429 GB, free: 130.8 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.91e-07/1.338, allocations: 0 / 0.7429 GB, free: 130.8 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004192/1.342, allocations: 1.11 MB / 0.744 GB, free: 130.7 MB / 0.4948 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000445/1.342, allocations: 178.5 kB / 0.7442 GB, free: 130.6 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01006/1.352, allocations: 6.602 MB / 0.7506 GB, free: 124.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.699e-06/1.353, allocations: 0 / 0.7506 GB, free: 124.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003431/1.356, allocations: 2.529 MB / 0.7531 GB, free: 121.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003121/1.359, allocations: 358.8 kB / 0.7534 GB, free: 121.2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01747/1.377, allocations: 12.04 MB / 0.7652 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002718/1.379, allocations: 3.162 MB / 0.7683 GB, free: 105.9 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001192/1.381, allocations: 255.4 kB / 0.7685 GB, free: 105.6 MB / 0.4948 GB Notification: Performance of SimCode: time 1.052e-06/1.381, allocations: 4 kB / 0.7685 GB, free: 105.6 MB / 0.4948 GB Notification: Performance of Templates: time 0.4106/1.791, allocations: 111.7 MB / 0.8776 GB, free: 146.4 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches