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.0009891/0.0009891, allocations: 199.8 kB / 16.1 MB, free: 5.699 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 226.5 MB / 243.4 MB, free: 6.363 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008326/0.0008326, allocations: 91.72 kB / 295.5 MB, free: 6.641 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3023/0.3023, allocations: 44.82 MB / 392.3 MB, free: 35.65 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002482/0.0002484, allocations: 8 kB / 465.3 MB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.2938, allocations: 62.96 MB / 0.5159 GB, free: 37.18 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.0158/0.3097, allocations: 23.18 MB / 0.5385 GB, free: 20.64 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01022/0.3199, allocations: 5.969 MB / 0.5443 GB, free: 16.63 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003054/0.323, allocations: 102.7 kB / 0.5444 GB, free: 16.62 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002072/0.3251, allocations: 1.094 MB / 0.5455 GB, free: 16.24 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007662/0.3328, allocations: 3.518 MB / 0.5489 GB, free: 14.82 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001827/0.3347, allocations: 0.5082 MB / 0.5494 GB, free: 14.64 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006135/0.3408, allocations: 4.339 MB / 0.5537 GB, free: 13.24 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003556/0.3444, allocations: 2.205 MB / 0.5558 GB, free: 12.29 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001924/0.3463, allocations: 1.007 MB / 0.5568 GB, free: 11.96 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002795/0.3492, allocations: 1.664 MB / 0.5584 GB, free: 11.31 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006812/0.3499, allocations: 125.2 kB / 0.5586 GB, free: 11.31 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002781/0.3527, allocations: 1.277 MB / 0.5598 GB, free: 10.71 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001712/0.3544, allocations: 1.473 MB / 0.5612 GB, free: 9.934 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001812/0.3562, allocations: 1.666 MB / 0.5629 GB, free: 8.684 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004745/0.361, allocations: 4.708 MB / 0.5675 GB, free: 4.43 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.361, allocations: 0 / 0.5675 GB, free: 4.43 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.361, allocations: 0 / 0.5675 GB, free: 4.43 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001331/0.3612, allocations: 0 / 0.5675 GB, free: 4.43 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.00518/0.3663, allocations: 3.386 MB / 0.5708 GB, free: 0.9766 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.3664, allocations: 12.03 kB / 0.5708 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01755/0.3839, allocations: 6.242 MB / 0.5769 GB, free: 10.71 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004889/0.3889, allocations: 2.162 MB / 0.579 GB, free: 8.5 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001392/0.3891, allocations: 180.8 kB / 0.5792 GB, free: 8.32 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008508/0.3899, allocations: 303.7 kB / 0.5795 GB, free: 8.023 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01565/0.4056, allocations: 10.72 MB / 0.5899 GB, free: 12.85 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.147e-05/0.4057, allocations: 35.64 kB / 0.59 GB, free: 12.81 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003452/0.4061, allocations: 115.8 kB / 0.5901 GB, free: 12.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003551/0.4096, allocations: 2.463 MB / 0.5925 GB, free: 10.23 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01904/0.4287, allocations: 10.14 MB / 0.6024 GB, free: 88 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04776/0.4765, allocations: 35.69 MB / 0.6372 GB, free: 11.53 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01073/0.4873, allocations: 5.588 MB / 0.6427 GB, free: 5.715 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003054/0.4904, allocations: 2.331 MB / 0.645 GB, free: 3.383 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001581/0.492, allocations: 1.884 MB / 0.6468 GB, free: 1.164 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.241e-05/0.492, allocations: 56.5 kB / 0.6469 GB, free: 1.102 MB / 458.7 MB Notification: Performance of pre-optimization done (n=224): time 5.671e-06/0.4921, allocations: 0 / 0.6469 GB, free: 1.102 MB / 458.7 MB Notification: Performance of matching and sorting (n=231): time 0.03354/0.5256, allocations: 14.92 MB / 0.6614 GB, free: 2.062 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001244/0.5269, allocations: 1.528 MB / 0.6629 GB, free: 388 kB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005035/0.5319, allocations: 2.783 MB / 0.6656 GB, free: 13.58 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004277/0.5324, allocations: 53.69 kB / 0.6657 GB, free: 13.52 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001975/0.5344, allocations: 2.674 MB / 0.6683 GB, free: 10.81 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001102/0.5356, allocations: 0.8519 MB / 0.6691 GB, free: 9.945 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005524/0.5361, allocations: 112 kB / 0.6692 GB, free: 9.836 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005013/0.5366, allocations: 0.5416 MB / 0.6698 GB, free: 9.285 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004921/0.5416, allocations: 2.615 MB / 0.6723 GB, free: 6.664 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.259/0.8006, allocations: 5.616 MB / 0.6778 GB, free: 124.2 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01145/0.8121, allocations: 8.915 MB / 0.6865 GB, free: 118.4 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001302/0.8123, allocations: 28.16 kB / 0.6865 GB, free: 118.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.05835/0.8706, allocations: 17.1 MB / 0.7032 GB, free: 115.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001575/0.8708, allocations: 49.5 kB / 0.7033 GB, free: 115.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04039/0.9112, allocations: 10.62 MB / 0.7137 GB, free: 113 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03915/0.9505, allocations: 8.638 MB / 0.7221 GB, free: 108.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004406/0.9549, allocations: 1.313 MB / 0.7234 GB, free: 108.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02369/0.9786, allocations: 15.61 MB / 0.7386 GB, free: 92.54 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004399/0.9831, allocations: 423.2 kB / 0.739 GB, free: 92.12 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001111/0.9842, allocations: 322.7 kB / 0.7393 GB, free: 91.81 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 (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.004407/0.9886, allocations: 2.022 MB / 0.7413 GB, free: 89.84 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008091/0.9895, allocations: 279 kB / 0.7416 GB, free: 89.71 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008094/0.9976, allocations: 5.096 MB / 0.7465 GB, free: 84.59 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006206/1.004, allocations: 4.393 MB / 0.7508 GB, free: 80.18 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.748e-05/1.004, allocations: 6.625 kB / 0.7508 GB, free: 80.17 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.861e-05/1.004, allocations: 15.89 kB / 0.7509 GB, free: 80.16 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01839/1.022, allocations: 12.9 MB / 0.7635 GB, free: 67.16 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.628e-05/1.022, allocations: 8 kB / 0.7635 GB, free: 67.15 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001797/1.024, allocations: 456.4 kB / 0.7639 GB, free: 66.71 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002421/1.027, allocations: 0.9355 MB / 0.7648 GB, free: 65.76 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002701/1.027, allocations: 60.67 kB / 0.7649 GB, free: 65.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005078/1.032, allocations: 5.462 MB / 0.7702 GB, free: 60 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007527/1.033, allocations: 1.452 MB / 0.7716 GB, free: 58.42 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01059/1.043, allocations: 7.711 MB / 0.7792 GB, free: 50.72 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009791/1.044, allocations: 336.1 kB / 0.7795 GB, free: 50.38 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008698/1.045, allocations: 51.11 kB / 0.7795 GB, free: 50.33 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001969/1.047, allocations: 195.7 kB / 0.7797 GB, free: 50.14 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005123/1.048, allocations: 148.9 kB / 0.7799 GB, free: 49.99 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002922/1.048, allocations: 59.98 kB / 0.7799 GB, free: 49.93 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002959/1.051, allocations: 1.697 MB / 0.7816 GB, free: 48.23 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.051, allocations: 0 / 0.7816 GB, free: 48.23 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005607/1.057, allocations: 1.11 MB / 0.7827 GB, free: 47.12 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 (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.0007657/1.058, allocations: 184.8 kB / 0.7828 GB, free: 46.94 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0105/1.068, allocations: 6.521 MB / 0.7892 GB, free: 40.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.083e-05/1.068, allocations: 4 kB / 0.7892 GB, free: 40.39 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00354/1.072, allocations: 2.538 MB / 0.7917 GB, free: 37.82 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005123/1.077, allocations: 353.3 kB / 0.792 GB, free: 37.48 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01774/1.095, allocations: 12.02 MB / 0.8038 GB, free: 25.32 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004437/1.099, allocations: 3.16 MB / 0.8068 GB, free: 22.13 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001764/1.101, allocations: 263.4 kB / 0.8071 GB, free: 21.88 MB / 490.7 MB Notification: Performance of SimCode: time 2.214e-06/1.101, allocations: 3.938 kB / 0.8071 GB, free: 21.87 MB / 490.7 MB Notification: Performance of Templates: time 0.4073/1.508, allocations: 111.5 MB / 0.916 GB, free: 151.9 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