Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.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) 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(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bodyOfConstraint.body.w_a.1.|bodyOfConstraint.body.w_a.2.|bodyOfConstraint.body.w_a.3.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bodyOfConstraint.body.w_a.1.|bodyOfConstraint.body.w_a.2.|bodyOfConstraint.body.w_a.3.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002685/0.002684, allocations: 188.6 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.722/3.722, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001897/0.001897, allocations: 86.84 kB / 270.9 MB, free: 13.39 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006832/0.0006835, allocations: 12 kB / 327 MB, free: 15.1 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1578/0.1585, allocations: 47.59 MB / 374.5 MB, free: 15.43 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint): time 0.6425/0.8011, allocations: 73.49 MB / 448 MB, free: 2.797 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.08734/0.8885, allocations: 17.29 MB / 465.3 MB, free: 1.461 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.05251/0.9411, allocations: 383 kB / 465.7 MB, free: 1.086 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.04336/0.9846, allocations: 3.705 MB / 469.4 MB, free: 13.36 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1057/1.09, allocations: 10.31 MB / 479.7 MB, free: 3.031 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02026/1.111, allocations: 1.201 MB / 480.9 MB, free: 1.828 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.04721/1.158, allocations: 3.907 MB / 484.8 MB, free: 13.91 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05344/1.212, allocations: 9.479 MB / 494.3 MB, free: 4.355 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01641/1.228, allocations: 1.662 MB / 496 MB, free: 2.688 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01983/1.248, allocations: 2.032 MB / 498 MB, free: 0.6484 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002495/1.251, allocations: 224 kB / 498.2 MB, free: 440 kB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0147/1.265, allocations: 1.385 MB / 499.6 MB, free: 15.04 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007704/1.273, allocations: 2.669 MB / 0.4905 GB, free: 12.37 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00496/1.278, allocations: 1.365 MB / 0.4918 GB, free: 10.99 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02927/1.307, allocations: 9.633 MB / 0.5012 GB, free: 1.332 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/1.308, allocations: 0 / 0.5012 GB, free: 1.332 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.3e-06/1.308, allocations: 0 / 0.5012 GB, free: 1.332 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0005478/1.308, allocations: 0 / 0.5012 GB, free: 1.332 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: 2401 * Number of variables: 2401 Notification: Performance of Generate backend data structure: time 0.06377/1.372, allocations: 7.282 MB / 0.5083 GB, free: 9.969 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.329e-05/1.372, allocations: 8.031 kB / 0.5084 GB, free: 9.961 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03027/1.402, allocations: 2.74 MB / 0.511 GB, free: 7.207 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04408/1.447, allocations: 4.803 MB / 0.5157 GB, free: 2.324 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009842/1.448, allocations: 439.3 kB / 0.5161 GB, free: 1.895 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009773/1.457, allocations: 0.6672 MB / 0.5168 GB, free: 1.227 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.9543/2.412, allocations: 17.15 MB / 0.5335 GB, free: 125.3 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009322/2.413, allocations: 63.11 kB / 0.5336 GB, free: 125.2 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004669/2.417, allocations: 267.3 kB / 0.5339 GB, free: 125.2 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0112/2.429, allocations: 2.589 MB / 0.5364 GB, free: 125.2 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07759/2.506, allocations: 14.82 MB / 0.5509 GB, free: 120.7 MB / 410.8 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1829/2.689, allocations: 64.32 MB / 0.6137 GB, free: 61.1 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05713/2.747, allocations: 7.548 MB / 0.621 GB, free: 53.4 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06114/2.808, allocations: 16.78 MB / 0.6374 GB, free: 36.2 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.406e-05/2.808, allocations: 64.5 kB / 0.6375 GB, free: 36.13 MB / 410.8 MB Notification: Performance of pre-optimization done (n=262): time 1.021e-05/2.808, allocations: 0 / 0.6375 GB, free: 36.13 MB / 410.8 MB Notification: Performance of matching and sorting (n=278): time 0.192/3, allocations: 28.25 MB / 0.6651 GB, free: 7.508 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002195/3.002, allocations: 1.622 MB / 0.6667 GB, free: 5.715 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02214/3.024, allocations: 6.235 MB / 0.6727 GB, free: 15.46 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001312/3.026, allocations: 69.7 kB / 0.6728 GB, free: 15.39 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.008098/3.034, allocations: 4.701 MB / 0.6774 GB, free: 10.69 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003252/3.037, allocations: 1.085 MB / 0.6785 GB, free: 9.617 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002214/3.04, allocations: 176 kB / 0.6786 GB, free: 9.445 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.001499/3.041, allocations: 0.6991 MB / 0.6793 GB, free: 8.734 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01555/3.057, allocations: 3.375 MB / 0.6826 GB, free: 5.352 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02348/3.08, allocations: 8.778 MB / 0.6912 GB, free: 9.871 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02178/3.102, allocations: 5.31 MB / 0.6964 GB, free: 4.559 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002968/3.103, allocations: 56 kB / 0.6964 GB, free: 4.504 MB / 442.8 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.5256/3.628, allocations: 14.59 MB / 0.7107 GB, free: 137.5 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000342/3.629, allocations: 88.2 kB / 0.7107 GB, free: 137.5 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04723/3.676, allocations: 6.793 MB / 0.7174 GB, free: 135.5 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03525/3.711, allocations: 3.253 MB / 0.7206 GB, free: 135.2 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01912/3.73, allocations: 2.128 MB / 0.7226 GB, free: 134.9 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0471/3.778, allocations: 16.29 MB / 0.7385 GB, free: 124.5 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01729/3.795, allocations: 0.5868 MB / 0.7391 GB, free: 124.4 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003032/3.798, allocations: 0.5385 MB / 0.7396 GB, free: 124.3 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 875 * Number of states: 0 () * Number of discrete variables: 60 (freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],springOfConstraint.color[3],springOfConstraint.color[2],springOfConstraint.color[1],springOfConstraint.massColor[3],springOfConstraint.massColor[2],springOfConstraint.massColor[1],springOfJoint.color[3],springOfJoint.color[2],springOfJoint.color[1],springOfJoint.massColor[3],springOfJoint.massColor[2],springOfJoint.massColor[1],bodyOfConstraint.color[3],bodyOfConstraint.color[2],bodyOfConstraint.color[1],bodyOfConstraint.body.sphereColor[3],bodyOfConstraint.body.sphereColor[2],bodyOfConstraint.body.sphereColor[1],bodyOfConstraint.frameTranslation.color[3],bodyOfConstraint.frameTranslation.color[2],bodyOfConstraint.frameTranslation.color[1],bodyOfJoint.color[3],bodyOfJoint.color[2],bodyOfJoint.color[1],bodyOfJoint.body.sphereColor[3],bodyOfJoint.body.sphereColor[2],bodyOfJoint.body.sphereColor[1],bodyOfJoint.frameTranslation.color[3],bodyOfJoint.frameTranslation.color[2],bodyOfJoint.frameTranslation.color[1],sensorConstraintRelative.arrowColor[3],sensorConstraintRelative.arrowColor[2],sensorConstraintRelative.arrowColor[1],constraint.sphereColor[3],constraint.sphereColor[2],constraint.sphereColor[1],joint.sphereColor[3],joint.sphereColor[2],joint.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1116): * Single equations (assignments): 1100 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(3,100.0%) 3,(3,100.0%) 3,(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01343/3.812, allocations: 3.255 MB / 0.7428 GB, free: 122.6 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002229/3.814, allocations: 0.5175 MB / 0.7433 GB, free: 122.6 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03296/3.847, allocations: 6.566 MB / 0.7497 GB, free: 117 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02775/3.875, allocations: 5.648 MB / 0.7553 GB, free: 111.3 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.02732/3.902, allocations: 5.475 MB / 0.7606 GB, free: 105.8 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001236/3.902, allocations: 19.02 kB / 0.7606 GB, free: 105.7 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07756/3.98, allocations: 17.5 MB / 0.7777 GB, free: 88.15 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.093e-05/3.98, allocations: 8 kB / 0.7777 GB, free: 88.14 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006617/3.987, allocations: 0.5103 MB / 0.7782 GB, free: 87.64 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01394/4.001, allocations: 1.845 MB / 0.78 GB, free: 85.78 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001309/4.002, allocations: 81.8 kB / 0.7801 GB, free: 85.71 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02862/4.031, allocations: 9.973 MB / 0.7898 GB, free: 75.41 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001844/4.033, allocations: 1.483 MB / 0.7913 GB, free: 73.8 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04608/4.079, allocations: 11.32 MB / 0.8023 GB, free: 62.16 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003281/4.082, allocations: 0.5917 MB / 0.8029 GB, free: 61.55 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003981/4.086, allocations: 60.69 kB / 0.803 GB, free: 61.49 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01096/4.097, allocations: 232.6 kB / 0.8032 GB, free: 61.26 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00224/4.1, allocations: 197.5 kB / 0.8034 GB, free: 61.07 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001286/4.101, allocations: 89.27 kB / 0.8035 GB, free: 60.98 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.01836/4.119, allocations: 3.938 MB / 0.8073 GB, free: 57.05 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.763e-06/4.119, allocations: 0 / 0.8073 GB, free: 57.05 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.0191/4.139, allocations: 1.73 MB / 0.809 GB, free: 55.33 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],joint.w_rel[1],joint.w_rel[2],joint.w_rel[3],bodyOfConstraint.body.w_a[1],bodyOfConstraint.body.w_a[2],bodyOfConstraint.body.w_a[3],freeMotionScalarInit.derd[1].u,freeMotionScalarInit.derd[2].u,freeMotionScalarInit.derd[3].u) * 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 (233): * Single equations (assignments): 223 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 3,(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002339/4.141, allocations: 285.7 kB / 0.8093 GB, free: 55.06 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.04045/4.181, allocations: 9.084 MB / 0.8182 GB, free: 45.89 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 2.563e-05/4.182, allocations: 4 kB / 0.8182 GB, free: 45.89 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01496/4.197, allocations: 3.39 MB / 0.8215 GB, free: 42.41 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01038/4.207, allocations: 0.7807 MB / 0.8222 GB, free: 41.64 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06632/4.273, allocations: 18.77 MB / 0.8406 GB, free: 22.71 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01888/4.292, allocations: 5.015 MB / 0.8455 GB, free: 17.66 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004163/4.297, allocations: 447.4 kB / 0.8459 GB, free: 17.22 MB / 442.8 MB Notification: Performance of SimCode: time 2.855e-06/4.297, allocations: 0 / 0.8459 GB, free: 17.22 MB / 442.8 MB Notification: Performance of Templates: time 1.702/5.999, allocations: 280.8 MB / 1.12 GB, free: 74.55 MB / 458.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe 2>&1)