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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_SphericalConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_SphericalConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008696/0.0008697, allocations: 173.7 kB / 16.72 MB, free: 5.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.255/1.255, allocations: 205.4 MB / 222.9 MB, free: 9.035 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.0007029/0.000703, allocations: 90.36 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002868/0.0002869, allocations: 8 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.196/0.1963, allocations: 47.57 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint): time 0.05361/0.25, allocations: 77.86 MB / 453.1 MB, free: 2.633 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03425/0.2843, allocations: 16.53 MB / 469.6 MB, free: 2.051 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01351/0.2978, allocations: 383 kB / 470 MB, free: 1.676 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01024/0.3081, allocations: 3.643 MB / 473.6 MB, free: 14.02 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0253/0.3334, allocations: 10.61 MB / 484.2 MB, free: 3.367 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005156/0.3386, allocations: 1.189 MB / 485.4 MB, free: 2.176 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.009728/0.3483, allocations: 8.209 MB / 493.6 MB, free: 9.949 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2072/0.5556, allocations: 10.67 MB / 0.4925 GB, free: 9.277 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003663/0.5593, allocations: 2.075 MB / 0.4945 GB, free: 9.277 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003917/0.5632, allocations: 3.043 MB / 0.4975 GB, free: 9.277 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008545/0.5641, allocations: 226.3 kB / 0.4977 GB, free: 9.277 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003105/0.5672, allocations: 1.661 MB / 0.4993 GB, free: 9.277 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002821/0.57, allocations: 2.88 MB / 0.5021 GB, free: 9.277 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003146/0.5732, allocations: 3.085 MB / 0.5051 GB, free: 9.246 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009738/0.5829, allocations: 9.651 MB / 0.5145 GB, free: 8.676 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.5829, allocations: 3.656 kB / 0.5145 GB, free: 8.676 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.583, allocations: 2.125 kB / 0.5145 GB, free: 8.676 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004654/0.5834, allocations: 0 / 0.5145 GB, free: 8.676 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.01642/0.5999, allocations: 6.925 MB / 0.5213 GB, free: 5.043 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.5999, allocations: 7.625 kB / 0.5213 GB, free: 5.043 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003651/0.6036, allocations: 1.155 MB / 0.5224 GB, free: 4.727 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008988/0.6126, allocations: 2.436 MB / 0.5248 GB, free: 3.559 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008956/0.6215, allocations: 5.505 MB / 0.5302 GB, free: 1.887 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002692/0.6218, allocations: 438 kB / 0.5306 GB, free: 1.875 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002118/0.624, allocations: 0.6713 MB / 0.5313 GB, free: 1.828 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03047/0.6544, allocations: 16.93 MB / 0.5478 GB, free: 11.3 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002156/0.6547, allocations: 61.19 kB / 0.5479 GB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001083/0.6558, allocations: 268.9 kB / 0.5481 GB, free: 11.19 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003492/0.6593, allocations: 2.591 MB / 0.5507 GB, free: 9.074 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02871/0.688, allocations: 14.54 MB / 0.5648 GB, free: 14.96 MB / 410.7 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.07974/0.7678, allocations: 64.05 MB / 0.6274 GB, free: 10.23 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0207/0.7885, allocations: 7.452 MB / 0.6347 GB, free: 3.598 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005032/0.7936, allocations: 3.797 MB / 0.6384 GB, free: 15.8 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02523/0.8188, allocations: 16.58 MB / 0.6546 GB, free: 14.8 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.653e-05/0.8189, allocations: 63.94 kB / 0.6546 GB, free: 14.73 MB / 490.7 MB Notification: Performance of pre-optimization done (n=262): time 5.801e-06/0.8189, allocations: 0 / 0.6546 GB, free: 14.73 MB / 490.7 MB Notification: Performance of matching and sorting (n=278): time 0.2366/1.056, allocations: 27.65 MB / 0.6816 GB, free: 199.6 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009533/1.057, allocations: 1.607 MB / 0.6832 GB, free: 198 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007255/1.064, allocations: 5.887 MB / 0.689 GB, free: 195.8 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005966/1.064, allocations: 66.23 kB / 0.689 GB, free: 195.8 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002181/1.067, allocations: 4.857 MB / 0.6938 GB, free: 192.1 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001077/1.068, allocations: 1.084 MB / 0.6948 GB, free: 191.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003736/1.068, allocations: 179.1 kB / 0.695 GB, free: 191.1 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003287/1.068, allocations: 0.688 MB / 0.6957 GB, free: 190.7 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004047/1.073, allocations: 3.336 MB / 0.6989 GB, free: 189.6 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005591/1.078, allocations: 8.775 MB / 0.7075 GB, free: 181.1 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01057/1.089, allocations: 13.12 MB / 0.7203 GB, free: 166.6 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001229/1.089, allocations: 58.16 kB / 0.7204 GB, free: 166.6 MB / 490.7 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.02177/1.111, allocations: 13.81 MB / 0.7339 GB, free: 154.7 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.307e-05/1.111, allocations: 86.81 kB / 0.7339 GB, free: 154.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00929/1.12, allocations: 5.823 MB / 0.7396 GB, free: 149.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005644/1.126, allocations: 2.139 MB / 0.7417 GB, free: 147.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006337/1.132, allocations: 2.117 MB / 0.7438 GB, free: 145.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01162/1.144, allocations: 14.14 MB / 0.7576 GB, free: 130.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007331/1.151, allocations: 0.5787 MB / 0.7581 GB, free: 129.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001358/1.152, allocations: 0.54 MB / 0.7587 GB, free: 129.1 MB / 490.7 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.006631/1.159, allocations: 3.241 MB / 0.7618 GB, free: 125.9 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001221/1.16, allocations: 0.5206 MB / 0.7624 GB, free: 125.4 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01148/1.172, allocations: 6.566 MB / 0.7688 GB, free: 118.7 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009168/1.181, allocations: 5.646 MB / 0.7743 GB, free: 113 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.008554/1.19, allocations: 5.482 MB / 0.7796 GB, free: 107.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.127e-05/1.19, allocations: 11.95 kB / 0.7796 GB, free: 107.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02908/1.219, allocations: 17.49 MB / 0.7967 GB, free: 89.71 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.791e-05/1.219, allocations: 12 kB / 0.7967 GB, free: 89.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002166/1.221, allocations: 0.5001 MB / 0.7972 GB, free: 89.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004932/1.226, allocations: 1.85 MB / 0.799 GB, free: 87.33 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003402/1.226, allocations: 74.38 kB / 0.7991 GB, free: 87.26 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009432/1.236, allocations: 9.75 MB / 0.8086 GB, free: 77.11 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006664/1.236, allocations: 1.485 MB / 0.8101 GB, free: 75.49 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01319/1.25, allocations: 9.821 MB / 0.8197 GB, free: 65.46 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00157/1.251, allocations: 0.5683 MB / 0.8202 GB, free: 64.86 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006873/1.252, allocations: 60.45 kB / 0.8203 GB, free: 64.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002316/1.254, allocations: 227.7 kB / 0.8205 GB, free: 64.58 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006154/1.255, allocations: 198.7 kB / 0.8207 GB, free: 64.39 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000194/1.255, allocations: 83.98 kB / 0.8208 GB, free: 64.31 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004492/1.26, allocations: 3.653 MB / 0.8243 GB, free: 60.66 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.26, allocations: 3.938 kB / 0.8243 GB, free: 60.65 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00737/1.267, allocations: 1.693 MB / 0.826 GB, free: 58.97 MB / 490.7 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.01316/1.28, allocations: 10.48 MB / 0.8362 GB, free: 48.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01243/1.293, allocations: 9.008 MB / 0.845 GB, free: 39.21 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.848e-06/1.293, allocations: 4 kB / 0.845 GB, free: 39.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004823/1.297, allocations: 3.384 MB / 0.8483 GB, free: 35.72 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01317/1.311, allocations: 0.8144 MB / 0.8491 GB, free: 34.92 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2468/1.557, allocations: 60.55 MB / 0.9082 GB, free: 166.1 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00734/1.565, allocations: 4.874 MB / 0.913 GB, free: 164.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004441/1.569, allocations: 3.253 MB / 0.9162 GB, free: 161.3 MB / 490.7 MB Notification: Performance of SimCode: time 8.41e-07/1.569, allocations: 0 / 0.9162 GB, free: 161.3 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.77/13.34, allocations: 322.1 MB / 1.231 GB, free: 39.48 MB / 490.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_SphericalConstraint_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_SphericalConstraint.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe 2>&1)