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.002205/0.002205, allocations: 188.3 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 2.039/2.039, 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.001168/0.001168, allocations: 90.88 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005294/0.0005295, allocations: 15.98 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1131, allocations: 47.57 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint): time 0.3859/0.4991, allocations: 73.51 MB / 448.1 MB, free: 2.727 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.05045/0.5496, allocations: 17.27 MB / 465.4 MB, free: 1.406 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01695/0.5666, allocations: 383 kB / 465.8 MB, free: 1.031 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01464/0.5813, allocations: 3.717 MB / 469.5 MB, free: 13.3 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04162/0.623, allocations: 10.31 MB / 479.8 MB, free: 2.965 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00775/0.6307, allocations: 1.209 MB / 481 MB, free: 1.754 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01071/0.6415, allocations: 3.905 MB / 484.9 MB, free: 13.84 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02031/0.6618, allocations: 9.476 MB / 494.4 MB, free: 4.293 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00425/0.6661, allocations: 1.659 MB / 496.1 MB, free: 2.629 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004644/0.6708, allocations: 2.032 MB / 498.1 MB, free: 0.5898 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001399/0.6723, allocations: 224 kB / 498.3 MB, free: 380 kB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004581/0.6769, allocations: 1.385 MB / 499.7 MB, free: 14.98 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004716/0.6816, allocations: 2.669 MB / 0.4906 GB, free: 12.3 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002566/0.6842, allocations: 1.376 MB / 0.4919 GB, free: 10.92 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01641/0.7007, allocations: 9.621 MB / 0.5013 GB, free: 1.273 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.7007, allocations: 0 / 0.5013 GB, free: 1.273 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.53e-06/0.7008, allocations: 3.984 kB / 0.5013 GB, free: 1.27 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004293/0.7012, allocations: 0 / 0.5013 GB, free: 1.27 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.02682/0.728, allocations: 7.278 MB / 0.5084 GB, free: 9.91 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.7281, allocations: 8.031 kB / 0.5085 GB, free: 9.902 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004234/0.7323, allocations: 1.156 MB / 0.5096 GB, free: 8.734 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01805/0.7504, allocations: 2.74 MB / 0.5123 GB, free: 5.98 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01481/0.7653, allocations: 4.803 MB / 0.5169 GB, free: 1.098 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006072/0.7659, allocations: 443.3 kB / 0.5174 GB, free: 0.6641 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003745/0.7697, allocations: 0.6712 MB / 0.518 GB, free: 15.99 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6219/1.392, allocations: 17.15 MB / 0.5348 GB, free: 124.5 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004164/1.392, allocations: 61.42 kB / 0.5348 GB, free: 124.5 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002146/1.394, allocations: 267.3 kB / 0.5351 GB, free: 124.5 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007285/1.402, allocations: 2.587 MB / 0.5376 GB, free: 124.5 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04957/1.451, allocations: 14.82 MB / 0.5521 GB, free: 119.8 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.1209/1.572, allocations: 64.32 MB / 0.6149 GB, free: 59.84 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03683/1.609, allocations: 7.562 MB / 0.6223 GB, free: 52.13 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03952/1.649, allocations: 16.77 MB / 0.6387 GB, free: 34.94 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.139e-05/1.649, allocations: 64.48 kB / 0.6387 GB, free: 34.87 MB / 410.8 MB Notification: Performance of pre-optimization done (n=262): time 7.715e-06/1.649, allocations: 0 / 0.6387 GB, free: 34.87 MB / 410.8 MB Notification: Performance of matching and sorting (n=278): time 0.1185/1.767, allocations: 28.24 MB / 0.6663 GB, free: 6.25 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001383/1.769, allocations: 1.622 MB / 0.6679 GB, free: 4.457 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.013/1.782, allocations: 6.247 MB / 0.674 GB, free: 14.19 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008524/1.783, allocations: 65.7 kB / 0.674 GB, free: 14.12 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005685/1.788, allocations: 4.694 MB / 0.6786 GB, free: 9.434 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002442/1.791, allocations: 1.086 MB / 0.6797 GB, free: 8.355 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001249/1.792, allocations: 180.2 kB / 0.6799 GB, free: 8.18 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0008582/1.793, allocations: 0.695 MB / 0.6805 GB, free: 7.473 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01007/1.803, allocations: 3.375 MB / 0.6838 GB, free: 4.094 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01592/1.819, allocations: 8.786 MB / 0.6924 GB, free: 8.605 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0142/1.833, allocations: 5.306 MB / 0.6976 GB, free: 3.297 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001841/1.834, allocations: 52 kB / 0.6976 GB, free: 3.246 MB / 442.8 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.3433/2.177, allocations: 14.6 MB / 0.7119 GB, free: 137.8 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001816/2.177, allocations: 90.59 kB / 0.712 GB, free: 137.8 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03219/2.209, allocations: 6.793 MB / 0.7186 GB, free: 135.8 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02445/2.234, allocations: 3.249 MB / 0.7218 GB, free: 135.4 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01336/2.247, allocations: 2.124 MB / 0.7239 GB, free: 135.2 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03057/2.278, allocations: 16.29 MB / 0.7398 GB, free: 124.8 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01052/2.289, allocations: 0.5892 MB / 0.7404 GB, free: 124.5 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001986/2.291, allocations: 0.5397 MB / 0.7409 GB, free: 124.5 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.009085/2.3, allocations: 3.244 MB / 0.744 GB, free: 122.6 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001483/2.301, allocations: 0.5235 MB / 0.7446 GB, free: 122.6 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0217/2.323, allocations: 6.561 MB / 0.751 GB, free: 116 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01818/2.341, allocations: 5.646 MB / 0.7565 GB, free: 110.2 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.01729/2.358, allocations: 5.48 MB / 0.7618 GB, free: 104.7 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.659e-05/2.359, allocations: 13.36 kB / 0.7618 GB, free: 104.7 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04983/2.408, allocations: 17.51 MB / 0.7789 GB, free: 87.09 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-05/2.409, allocations: 8 kB / 0.7789 GB, free: 87.08 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00485/2.413, allocations: 0.5116 MB / 0.7794 GB, free: 86.57 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009927/2.423, allocations: 1.852 MB / 0.7813 GB, free: 84.71 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007485/2.424, allocations: 69.45 kB / 0.7813 GB, free: 84.64 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01865/2.443, allocations: 9.979 MB / 0.7911 GB, free: 74.34 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001176/2.444, allocations: 1.485 MB / 0.7925 GB, free: 72.73 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02637/2.47, allocations: 11.32 MB / 0.8036 GB, free: 61.07 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001884/2.472, allocations: 0.5878 MB / 0.8041 GB, free: 60.45 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001891/2.474, allocations: 63.97 kB / 0.8042 GB, free: 60.39 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005525/2.48, allocations: 229.1 kB / 0.8044 GB, free: 60.17 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001106/2.481, allocations: 193.5 kB / 0.8046 GB, free: 59.98 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003212/2.481, allocations: 92.3 kB / 0.8047 GB, free: 59.89 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.009063/2.49, allocations: 3.934 MB / 0.8085 GB, free: 55.96 MB / 442.8 MB Notification: Performance of sort global known variables: time 6.92e-07/2.491, allocations: 0 / 0.8085 GB, free: 55.96 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.01096/2.502, allocations: 1.736 MB / 0.8102 GB, free: 54.24 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.0278/2.529, allocations: 13.88 MB / 0.8238 GB, free: 40.02 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.02264/2.552, allocations: 9.078 MB / 0.8327 GB, free: 30.86 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.632e-05/2.552, allocations: 4 kB / 0.8327 GB, free: 30.85 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009485/2.562, allocations: 3.388 MB / 0.836 GB, free: 27.37 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007068/2.569, allocations: 0.7756 MB / 0.8367 GB, free: 26.6 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3821/2.951, allocations: 164.9 MB / 0.9977 GB, free: 27.34 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01338/2.964, allocations: 5.022 MB / 1.003 GB, free: 26.46 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00751/2.972, allocations: 3.25 MB / 1.006 GB, free: 24.23 MB / 474.8 MB Notification: Performance of SimCode: time 9.42e-07/2.972, allocations: 0 / 1.006 GB, free: 24.23 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.883/9.855, allocations: 319.4 MB / 1.318 GB, free: 82.86 MB / 474.8 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)