Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008135/0.0008135, allocations: 95.34 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009616/0.0009616, allocations: 202 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.7 MB / 246.8 MB, free: 11.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.231/0.231, allocations: 46.18 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002831/0.0002831, allocations: 8 kB / 419.5 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1481/0.1484, allocations: 63.56 MB / 483.1 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.02433/0.1728, allocations: 24.7 MB / 0.4959 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0144/0.1872, allocations: 6.279 MB / 0.502 GB, free: 5.055 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005426/0.1927, allocations: 103.8 kB / 0.5021 GB, free: 4.953 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001319/0.1941, allocations: 422.2 kB / 0.5025 GB, free: 4.539 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004805/0.1989, allocations: 1.632 MB / 0.5041 GB, free: 2.902 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00146/0.2004, allocations: 0.507 MB / 0.5046 GB, free: 2.395 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2868/0.4872, allocations: 5.477 MB / 0.5099 GB, free: 11.62 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005185/0.4925, allocations: 2.257 MB / 0.5121 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002109/0.4946, allocations: 0.9337 MB / 0.5131 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003688/0.4983, allocations: 1.686 MB / 0.5147 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007083/0.499, allocations: 128.2 kB / 0.5148 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003531/0.5026, allocations: 1.277 MB / 0.5161 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002159/0.5047, allocations: 1.503 MB / 0.5175 GB, free: 11 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001897/0.5066, allocations: 1.755 MB / 0.5192 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007474/0.5141, allocations: 5.737 MB / 0.5249 GB, free: 8.93 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.5142, allocations: 0 / 0.5249 GB, free: 8.93 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.5142, allocations: 0 / 0.5249 GB, free: 8.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001518/0.5143, allocations: 1.094 kB / 0.5249 GB, free: 8.93 MB / 382.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.008287/0.5226, allocations: 3.35 MB / 0.5281 GB, free: 6.766 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.983e-05/0.5227, allocations: 9.344 kB / 0.5281 GB, free: 6.766 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02094/0.5436, allocations: 6.25 MB / 0.5342 GB, free: 3.855 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006185/0.5499, allocations: 2.16 MB / 0.5363 GB, free: 3.055 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001654/0.5501, allocations: 183.7 kB / 0.5365 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001113/0.5512, allocations: 313.5 kB / 0.5368 GB, free: 3.023 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02129/0.5725, allocations: 10.73 MB / 0.5473 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001014/0.5726, allocations: 28.09 kB / 0.5473 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004427/0.5731, allocations: 117.7 kB / 0.5474 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004595/0.5777, allocations: 2.459 MB / 0.5498 GB, free: 8.289 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02517/0.6029, allocations: 10.18 MB / 0.5598 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0644/0.6673, allocations: 35.67 MB / 0.5946 GB, free: 10.17 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01298/0.6804, allocations: 5.607 MB / 0.6001 GB, free: 4.34 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003981/0.6844, allocations: 2.33 MB / 0.6024 GB, free: 2.008 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002177/0.6866, allocations: 1.874 MB / 0.6042 GB, free: 15.81 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.883e-05/0.6867, allocations: 49.97 kB / 0.6042 GB, free: 15.75 MB / 462.1 MB Notification: Performance of pre-optimization done (n=224): time 6.172e-06/0.6867, allocations: 3.938 kB / 0.6042 GB, free: 15.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=231): time 0.0428/0.7295, allocations: 14.96 MB / 0.6189 GB, free: 0.7031 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001456/0.731, allocations: 1.523 MB / 0.6203 GB, free: 15.03 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006362/0.7374, allocations: 2.79 MB / 0.6231 GB, free: 12.23 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007214/0.7381, allocations: 50.48 kB / 0.6231 GB, free: 12.17 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002645/0.7408, allocations: 2.685 MB / 0.6257 GB, free: 9.484 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002327/0.7432, allocations: 0.8504 MB / 0.6266 GB, free: 8.641 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002181/0.7454, allocations: 488.4 kB / 0.627 GB, free: 8.156 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.7455, allocations: 305.1 kB / 0.6273 GB, free: 7.855 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005173/0.7507, allocations: 2.63 MB / 0.6299 GB, free: 5.219 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00799/0.7587, allocations: 5.638 MB / 0.6354 GB, free: 14.16 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01303/0.7718, allocations: 8.939 MB / 0.6441 GB, free: 4.156 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001431/0.7719, allocations: 32 kB / 0.6442 GB, free: 4.125 MB / 494.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.08428/0.8562, allocations: 17.15 MB / 0.6609 GB, free: 2.934 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001317/0.8564, allocations: 50.81 kB / 0.661 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0755/0.9319, allocations: 10.64 MB / 0.6713 GB, free: 8.23 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04798/0.98, allocations: 8.644 MB / 0.6798 GB, free: 15.56 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00503/0.985, allocations: 1.318 MB / 0.6811 GB, free: 14.24 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02927/1.014, allocations: 15.63 MB / 0.6963 GB, free: 14.35 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007118/1.022, allocations: 429.8 kB / 0.6967 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001917/1.024, allocations: 320 kB / 0.697 GB, free: 13.62 MB / 0.545 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.00541/1.029, allocations: 2.021 MB / 0.699 GB, free: 11.59 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006956/1.03, allocations: 272.4 kB / 0.6993 GB, free: 11.32 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00954/1.039, allocations: 5.115 MB / 0.7043 GB, free: 6.172 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007576/1.047, allocations: 4.413 MB / 0.7086 GB, free: 1.746 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/1.047, allocations: 4 kB / 0.7086 GB, free: 1.742 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.745e-05/1.047, allocations: 7.969 kB / 0.7086 GB, free: 1.734 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3201/1.367, allocations: 12.93 MB / 0.7212 GB, free: 193.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-05/1.367, allocations: 15.62 kB / 0.7212 GB, free: 193.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002085/1.369, allocations: 456.6 kB / 0.7217 GB, free: 193.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003371/1.372, allocations: 0.9377 MB / 0.7226 GB, free: 193.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002115/1.373, allocations: 53.05 kB / 0.7226 GB, free: 193 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006725/1.379, allocations: 5.456 MB / 0.728 GB, free: 189.8 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008526/1.38, allocations: 1.461 MB / 0.7294 GB, free: 188.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01088/1.391, allocations: 7.731 MB / 0.7369 GB, free: 185.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009475/1.392, allocations: 328.9 kB / 0.7373 GB, free: 185.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003541/1.393, allocations: 44.61 kB / 0.7373 GB, free: 185.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001598/1.394, allocations: 199.3 kB / 0.7375 GB, free: 185.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003741/1.395, allocations: 147.6 kB / 0.7376 GB, free: 185.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001588/1.395, allocations: 64.42 kB / 0.7377 GB, free: 185.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003669/1.398, allocations: 1.72 MB / 0.7394 GB, free: 184.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.31e-07/1.398, allocations: 0 / 0.7394 GB, free: 184.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00694/1.405, allocations: 1.084 MB / 0.7404 GB, free: 184.7 MB / 0.545 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.0005909/1.406, allocations: 187.1 kB / 0.7406 GB, free: 184.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009853/1.416, allocations: 6.557 MB / 0.747 GB, free: 180.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.166e-05/1.416, allocations: 4 kB / 0.747 GB, free: 180.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003237/1.419, allocations: 2.526 MB / 0.7495 GB, free: 178.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004587/1.424, allocations: 362 kB / 0.7498 GB, free: 178 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01414/1.438, allocations: 11.97 MB / 0.7615 GB, free: 167.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002913/1.441, allocations: 3.159 MB / 0.7646 GB, free: 164.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004324/1.445, allocations: 2.059 MB / 0.7666 GB, free: 162.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006567/1.446, allocations: 215.4 kB / 0.7668 GB, free: 162.5 MB / 0.545 GB Notification: Performance of SimCode: time 1.082e-06/1.446, allocations: 0 / 0.7668 GB, free: 162.5 MB / 0.545 GB Notification: Performance of Templates: time 0.06565/1.512, allocations: 43.91 MB / 0.8097 GB, free: 118.7 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches