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.001059/0.001059, allocations: 112.5 kB / 17.86 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001095/0.001095, allocations: 209.7 kB / 18.79 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.4 MB / 246.9 MB, free: 9.082 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.214/0.214, allocations: 46.1 MB / 344.3 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 75.53 kB / 417.5 MB, free: 20.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1172, allocations: 62.45 MB / 479.9 MB, free: 5.707 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.02667/0.1439, allocations: 25.54 MB / 0.4936 GB, free: 12.06 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01448/0.1584, allocations: 6.356 MB / 0.4998 GB, free: 5.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004798/0.1633, allocations: 107.8 kB / 0.4999 GB, free: 5.574 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002863/0.1662, allocations: 1.141 MB / 0.5011 GB, free: 4.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004068/0.1703, allocations: 1.616 MB / 0.5026 GB, free: 2.809 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001439/0.1718, allocations: 0.507 MB / 0.5031 GB, free: 2.301 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2505/0.4223, allocations: 5.478 MB / 0.5085 GB, free: 12.22 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003426/0.4258, allocations: 1.746 MB / 0.5102 GB, free: 12.12 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002186/0.428, allocations: 0.9907 MB / 0.5111 GB, free: 12.12 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003235/0.4312, allocations: 1.778 MB / 0.5129 GB, free: 11.92 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006413/0.4319, allocations: 152.7 kB / 0.513 GB, free: 11.92 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002839/0.4347, allocations: 1.306 MB / 0.5143 GB, free: 11.92 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002342/0.4371, allocations: 1.533 MB / 0.5158 GB, free: 11.74 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00226/0.4394, allocations: 1.77 MB / 0.5175 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006527/0.4459, allocations: 4.755 MB / 0.5222 GB, free: 10.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.4459, allocations: 10.09 kB / 0.5222 GB, free: 10.72 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.4459, allocations: 0 / 0.5222 GB, free: 10.72 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001751/0.4461, allocations: 0 / 0.5222 GB, free: 10.72 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.01008/0.4562, allocations: 4.07 MB / 0.5262 GB, free: 8.367 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.728e-05/0.4563, allocations: 13.75 kB / 0.5262 GB, free: 8.363 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01815/0.4744, allocations: 6.136 MB / 0.5322 GB, free: 5.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006081/0.4806, allocations: 2.155 MB / 0.5343 GB, free: 4.152 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001789/0.4808, allocations: 185.8 kB / 0.5344 GB, free: 4.105 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001504/0.4823, allocations: 314.6 kB / 0.5347 GB, free: 4.031 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01954/0.5018, allocations: 10.72 MB / 0.5452 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001464/0.502, allocations: 24.66 kB / 0.5452 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001201/0.5032, allocations: 110.5 kB / 0.5453 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004203/0.5075, allocations: 2.461 MB / 0.5477 GB, free: 9.164 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02317/0.5307, allocations: 10.17 MB / 0.5577 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06011/0.5908, allocations: 35.68 MB / 0.5925 GB, free: 11.06 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01255/0.6034, allocations: 5.597 MB / 0.598 GB, free: 5.238 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003714/0.6072, allocations: 2.331 MB / 0.6003 GB, free: 2.906 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001837/0.609, allocations: 1.886 MB / 0.6021 GB, free: 0.6953 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.768e-05/0.6091, allocations: 48.56 kB / 0.6021 GB, free: 0.6406 MB / 446.1 MB Notification: Performance of pre-optimization done (n=224): time 5.19e-06/0.6091, allocations: 0 / 0.6021 GB, free: 0.6406 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.04096/0.6501, allocations: 14.96 MB / 0.6168 GB, free: 1.594 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001427/0.6516, allocations: 1.523 MB / 0.6182 GB, free: 15.92 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00564/0.6572, allocations: 2.79 MB / 0.621 GB, free: 13.12 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006393/0.6579, allocations: 57 kB / 0.621 GB, free: 13.06 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00223/0.6602, allocations: 2.671 MB / 0.6236 GB, free: 10.38 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001473/0.6616, allocations: 0.855 MB / 0.6245 GB, free: 9.535 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00363/0.6653, allocations: 1.106 MB / 0.6255 GB, free: 8.422 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.6654, allocations: 305.1 kB / 0.6258 GB, free: 8.121 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005177/0.6706, allocations: 2.634 MB / 0.6284 GB, free: 5.48 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007373/0.678, allocations: 5.64 MB / 0.6339 GB, free: 14.42 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01182/0.6899, allocations: 8.941 MB / 0.6426 GB, free: 4.445 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001269/0.69, allocations: 32 kB / 0.6427 GB, free: 4.414 MB / 494.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.06142/0.7515, allocations: 17.15 MB / 0.6594 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001068/0.7516, allocations: 48 kB / 0.6595 GB, free: 3.281 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04097/0.7926, allocations: 10.63 MB / 0.6699 GB, free: 8.629 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04223/0.8349, allocations: 8.647 MB / 0.6783 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005034/0.8399, allocations: 1.31 MB / 0.6796 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02753/0.8675, allocations: 15.65 MB / 0.6949 GB, free: 14.74 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005099/0.8726, allocations: 429.6 kB / 0.6953 GB, free: 14.32 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001433/0.8741, allocations: 327 kB / 0.6956 GB, free: 14 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.005515/0.8796, allocations: 2.016 MB / 0.6975 GB, free: 11.97 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000805/0.8804, allocations: 272.4 kB / 0.6978 GB, free: 11.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01068/0.8911, allocations: 5.107 MB / 0.7028 GB, free: 6.566 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008636/0.8998, allocations: 4.403 MB / 0.7071 GB, free: 2.145 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.519e-05/0.8999, allocations: 4 kB / 0.7071 GB, free: 2.141 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-05/0.8999, allocations: 7.969 kB / 0.7071 GB, free: 2.133 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2997/1.2, allocations: 12.93 MB / 0.7197 GB, free: 194.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.908e-05/1.2, allocations: 8.547 kB / 0.7197 GB, free: 194.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0021/1.202, allocations: 457.4 kB / 0.7202 GB, free: 194.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003302/1.205, allocations: 0.941 MB / 0.7211 GB, free: 194.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003244/1.205, allocations: 53.25 kB / 0.7211 GB, free: 194.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00656/1.212, allocations: 5.446 MB / 0.7265 GB, free: 191.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008805/1.213, allocations: 1.473 MB / 0.7279 GB, free: 189.8 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01076/1.224, allocations: 7.734 MB / 0.7355 GB, free: 187.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009128/1.225, allocations: 327.9 kB / 0.7358 GB, free: 187 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003729/1.225, allocations: 43.75 kB / 0.7358 GB, free: 187 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001348/1.226, allocations: 197.5 kB / 0.736 GB, free: 186.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004236/1.227, allocations: 142.7 kB / 0.7361 GB, free: 186.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001714/1.227, allocations: 72.3 kB / 0.7362 GB, free: 186.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002663/1.23, allocations: 1.722 MB / 0.7379 GB, free: 186.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/1.23, allocations: 0 / 0.7379 GB, free: 186.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004506/1.234, allocations: 1.085 MB / 0.7389 GB, free: 186.2 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.0004603/1.235, allocations: 192.5 kB / 0.7391 GB, free: 186.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008823/1.243, allocations: 6.55 MB / 0.7455 GB, free: 181.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/1.243, allocations: 2 kB / 0.7455 GB, free: 181.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003093/1.247, allocations: 2.519 MB / 0.748 GB, free: 179.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002363/1.249, allocations: 366.9 kB / 0.7483 GB, free: 179.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01743/1.266, allocations: 12.3 MB / 0.7604 GB, free: 168.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003139/1.27, allocations: 3.16 MB / 0.7634 GB, free: 165.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001392/1.271, allocations: 266.7 kB / 0.7637 GB, free: 165.3 MB / 0.545 GB Notification: Performance of SimCode: time 1.232e-06/1.271, allocations: 7.938 kB / 0.7637 GB, free: 165.3 MB / 0.545 GB Notification: Performance of Templates: time 0.1193/1.39, allocations: 111.9 MB / 0.873 GB, free: 53.65 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches