Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009051/0.0009052, allocations: 200.5 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.255/1.255, allocations: 226.6 MB / 243.1 MB, free: 14.1 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007251/0.0007253, allocations: 92.11 kB / 295.1 MB, free: 10.03 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.185/0.185, allocations: 44.84 MB / 392 MB, free: 9.289 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002988/0.0002988, allocations: 4 kB / 464.7 MB, free: 49.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1019, allocations: 62.95 MB / 0.5153 GB, free: 2.758 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.2187/0.3206, allocations: 23.16 MB / 0.5379 GB, free: 13.46 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0137/0.3343, allocations: 5.98 MB / 0.5438 GB, free: 9.461 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004958/0.3393, allocations: 103.1 kB / 0.5439 GB, free: 9.445 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00373/0.3431, allocations: 1.096 MB / 0.5449 GB, free: 9.062 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009651/0.3528, allocations: 3.497 MB / 0.5484 GB, free: 7.656 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001675/0.3545, allocations: 461.3 kB / 0.5488 GB, free: 7.402 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.007046/0.3615, allocations: 4.269 MB / 0.553 GB, free: 5.047 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004045/0.3656, allocations: 2.149 MB / 0.5551 GB, free: 3.672 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002221/0.3678, allocations: 1.005 MB / 0.5561 GB, free: 3.172 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003052/0.3709, allocations: 1.667 MB / 0.5577 GB, free: 2.152 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008519/0.3718, allocations: 124 kB / 0.5578 GB, free: 2.031 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002626/0.3744, allocations: 1.041 MB / 0.5588 GB, free: 0.9883 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00199/0.3764, allocations: 1.484 MB / 0.5603 GB, free: 15.5 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001138/0.3776, allocations: 0.7297 MB / 0.561 GB, free: 14.76 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005158/0.3827, allocations: 4.698 MB / 0.5656 GB, free: 10.05 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.3828, allocations: 4 kB / 0.5656 GB, free: 10.05 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3828, allocations: 0 / 0.5656 GB, free: 10.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002185/0.383, allocations: 4 kB / 0.5656 GB, free: 10.05 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.00691/0.3899, allocations: 3.431 MB / 0.5689 GB, free: 6.551 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.39, allocations: 16.03 kB / 0.5689 GB, free: 6.535 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01885/0.4088, allocations: 6.238 MB / 0.575 GB, free: 288 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00472/0.4136, allocations: 2.134 MB / 0.5771 GB, free: 14.1 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000153/0.4138, allocations: 180.4 kB / 0.5773 GB, free: 13.92 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001009/0.4148, allocations: 307.6 kB / 0.5776 GB, free: 13.62 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01472/0.4295, allocations: 10.72 MB / 0.588 GB, free: 2.441 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.672e-05/0.4296, allocations: 31.73 kB / 0.5881 GB, free: 2.41 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000322/0.43, allocations: 115.8 kB / 0.5882 GB, free: 2.297 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003509/0.4335, allocations: 2.459 MB / 0.5906 GB, free: 15.83 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01584/0.4493, allocations: 10.13 MB / 0.6005 GB, free: 5.688 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0406/0.4899, allocations: 35.68 MB / 0.6353 GB, free: 1.148 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01005/0.5, allocations: 5.588 MB / 0.6408 GB, free: 11.34 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002692/0.5028, allocations: 2.327 MB / 0.6431 GB, free: 9.008 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001501/0.5043, allocations: 1.88 MB / 0.6449 GB, free: 6.793 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/0.5043, allocations: 52.56 kB / 0.6449 GB, free: 6.734 MB / 458.7 MB Notification: Performance of pre-optimization done (n=224): time 5.531e-06/0.5043, allocations: 3.984 kB / 0.6449 GB, free: 6.73 MB / 458.7 MB Notification: Performance of matching and sorting (n=231): time 0.03245/0.5368, allocations: 14.93 MB / 0.6595 GB, free: 7.684 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001341/0.5382, allocations: 1.519 MB / 0.661 GB, free: 6.004 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003844/0.542, allocations: 2.783 MB / 0.6637 GB, free: 3.207 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002351/0.5423, allocations: 57.86 kB / 0.6638 GB, free: 3.145 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001879/0.5442, allocations: 2.678 MB / 0.6664 GB, free: 436 kB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007235/0.5449, allocations: 0.8481 MB / 0.6672 GB, free: 15.57 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002457/0.5451, allocations: 104 kB / 0.6673 GB, free: 15.46 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003024/0.5455, allocations: 0.5416 MB / 0.6679 GB, free: 14.91 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003392/0.5489, allocations: 2.615 MB / 0.6704 GB, free: 12.29 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005244/0.5541, allocations: 5.624 MB / 0.6759 GB, free: 5.195 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004783/0.5589, allocations: 3.806 MB / 0.6796 GB, free: 1.387 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.604e-05/0.559, allocations: 28 kB / 0.6796 GB, free: 1.359 MB / 490.7 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.05409/0.613, allocations: 17.11 MB / 0.6963 GB, free: 224 kB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 6.77e-05/0.6132, allocations: 53.81 kB / 0.6964 GB, free: 172 kB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03755/0.6507, allocations: 10.62 MB / 0.7068 GB, free: 5.527 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2393/0.89, allocations: 8.647 MB / 0.7152 GB, free: 159.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004429/0.8945, allocations: 1.314 MB / 0.7165 GB, free: 159.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02576/0.9203, allocations: 15.62 MB / 0.7317 GB, free: 153.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004136/0.9245, allocations: 427.1 kB / 0.7322 GB, free: 153.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005478/0.925, allocations: 317.8 kB / 0.7325 GB, free: 153.6 MB / 0.5105 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.002926/0.928, allocations: 2.03 MB / 0.7344 GB, free: 152.7 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003562/0.9283, allocations: 272 kB / 0.7347 GB, free: 152.7 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007005/0.9353, allocations: 5.105 MB / 0.7397 GB, free: 151.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005763/0.9411, allocations: 4.388 MB / 0.744 GB, free: 149.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/0.9411, allocations: 3.953 kB / 0.744 GB, free: 149.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.565e-05/0.9412, allocations: 11.78 kB / 0.744 GB, free: 149.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01488/0.956, allocations: 12.9 MB / 0.7566 GB, free: 143.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.227e-05/0.9561, allocations: 7.984 kB / 0.7566 GB, free: 143.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001659/0.9578, allocations: 459.2 kB / 0.757 GB, free: 142.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00244/0.9602, allocations: 0.9429 MB / 0.7579 GB, free: 141.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001267/0.9603, allocations: 48.67 kB / 0.758 GB, free: 141.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004549/0.9649, allocations: 5.457 MB / 0.7633 GB, free: 136 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006346/0.9655, allocations: 1.467 MB / 0.7648 GB, free: 134.4 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008379/0.9739, allocations: 7.707 MB / 0.7723 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005391/0.9745, allocations: 327.5 kB / 0.7726 GB, free: 126.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002746/0.9748, allocations: 39.98 kB / 0.7726 GB, free: 126.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001269/0.9761, allocations: 200.9 kB / 0.7728 GB, free: 126.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002306/0.9763, allocations: 140.3 kB / 0.773 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001356/0.9764, allocations: 73.69 kB / 0.773 GB, free: 126 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001769/0.9782, allocations: 1.689 MB / 0.7747 GB, free: 124.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9782, allocations: 0 / 0.7747 GB, free: 124.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003585/0.9818, allocations: 1.11 MB / 0.7758 GB, free: 123.2 MB / 0.5105 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.0003548/0.9822, allocations: 184.9 kB / 0.7759 GB, free: 123 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00806/0.9902, allocations: 6.536 MB / 0.7823 GB, free: 116.5 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/0.9903, allocations: 0 / 0.7823 GB, free: 116.5 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002796/0.9931, allocations: 2.529 MB / 0.7848 GB, free: 114 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00177/0.9949, allocations: 369.2 kB / 0.7851 GB, free: 113.6 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01226/1.007, allocations: 12.01 MB / 0.7969 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002258/1.009, allocations: 3.167 MB / 0.8 GB, free: 98.26 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009958/1.01, allocations: 255.4 kB / 0.8002 GB, free: 98.01 MB / 0.5105 GB Notification: Performance of SimCode: time 1.984e-06/1.01, allocations: 0 / 0.8002 GB, free: 98.01 MB / 0.5105 GB Notification: Performance of Templates: time 0.2851/1.296, allocations: 111.6 MB / 0.9092 GB, free: 171.7 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches