Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.conf.json 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/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_SphericalConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0009088/0.0009088, allocations: 194 kB / 17.38 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.167/1.167, allocations: 226.5 MB / 244.7 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007478/0.0007476, allocations: 98.73 kB / 296.7 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002096/0.0002096, allocations: 11.98 kB / 356.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1931/0.1933, allocations: 51.29 MB / 408.1 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint): time 0.05638/0.2497, allocations: 77.17 MB / 485.3 MB, free: 14.28 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.03102/0.2808, allocations: 16.45 MB / 0.49 GB, free: 13.79 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01136/0.2922, allocations: 390.9 kB / 0.4904 GB, free: 13.4 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009544/0.3018, allocations: 3.623 MB / 0.4939 GB, free: 9.762 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.2038/0.5056, allocations: 10.55 MB / 0.5042 GB, free: 4.242 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005662/0.5112, allocations: 1.179 MB / 0.5054 GB, free: 4.219 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008928/0.5202, allocations: 8.298 MB / 0.5135 GB, free: 4.176 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01334/0.5336, allocations: 10.6 MB / 0.5238 GB, free: 18.83 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003443/0.537, allocations: 2.033 MB / 0.5258 GB, free: 18.83 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004453/0.5415, allocations: 2.962 MB / 0.5287 GB, free: 18.82 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001546/0.5431, allocations: 217.5 kB / 0.5289 GB, free: 18.82 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004679/0.5478, allocations: 1.652 MB / 0.5305 GB, free: 18.81 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004354/0.5522, allocations: 2.815 MB / 0.5333 GB, free: 18.81 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004805/0.557, allocations: 3.029 MB / 0.5362 GB, free: 18.78 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01112/0.5682, allocations: 9.443 MB / 0.5454 GB, free: 13.68 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.5682, allocations: 4 kB / 0.5454 GB, free: 13.67 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.015e-06/0.5682, allocations: 2.344 kB / 0.5454 GB, free: 13.67 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005688/0.5688, allocations: 0 / 0.5454 GB, free: 13.67 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2352 * Number of variables: 2352 Notification: Performance of Generate backend data structure: time 0.01936/0.5882, allocations: 6.926 MB / 0.5522 GB, free: 8.355 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/0.5882, allocations: 8.031 kB / 0.5522 GB, free: 8.348 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003933/0.5922, allocations: 1.142 MB / 0.5533 GB, free: 7.668 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009677/0.6019, allocations: 2.465 MB / 0.5557 GB, free: 5.266 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01267/0.6146, allocations: 4.826 MB / 0.5605 GB, free: 1.754 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004248/0.6151, allocations: 428.6 kB / 0.5609 GB, free: 1.52 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002508/0.6176, allocations: 0.6557 MB / 0.5615 GB, free: 1.074 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0358/0.6534, allocations: 16.63 MB / 0.5777 GB, free: 4.273 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003386/0.6538, allocations: 65.12 kB / 0.5778 GB, free: 4.238 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001892/0.6557, allocations: 260.5 kB / 0.5781 GB, free: 4.168 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003776/0.6595, allocations: 2.524 MB / 0.5805 GB, free: 2.098 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02841/0.6879, allocations: 14.26 MB / 0.5944 GB, free: 8.164 MB / 426.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.07387/0.7618, allocations: 63.14 MB / 0.6561 GB, free: 15.6 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01982/0.7817, allocations: 7.339 MB / 0.6633 GB, free: 8.117 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004469/0.7862, allocations: 3.75 MB / 0.6669 GB, free: 4.371 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02206/0.8083, allocations: 16.37 MB / 0.6829 GB, free: 3.582 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.13e-05/0.8083, allocations: 60.22 kB / 0.683 GB, free: 3.516 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=253): time 5.551e-06/0.8084, allocations: 0 / 0.683 GB, free: 3.516 MB / 0.4948 GB Notification: Performance of matching and sorting (n=269): time 0.2186/1.027, allocations: 27.12 MB / 0.7095 GB, free: 196.5 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0007957/1.028, allocations: 1.609 MB / 0.711 GB, free: 194.9 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00631/1.034, allocations: 5.76 MB / 0.7167 GB, free: 192.8 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002275/1.034, allocations: 67.44 kB / 0.7167 GB, free: 192.8 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00183/1.036, allocations: 4.777 MB / 0.7214 GB, free: 188.9 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006552/1.037, allocations: 1.05 MB / 0.7224 GB, free: 188 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003383/1.037, allocations: 177.9 kB / 0.7226 GB, free: 187.9 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002858/1.037, allocations: 0.6813 MB / 0.7232 GB, free: 187.3 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003462/1.041, allocations: 3.269 MB / 0.7264 GB, free: 184.1 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005528/1.046, allocations: 8.627 MB / 0.7349 GB, free: 172.9 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009886/1.056, allocations: 12.9 MB / 0.7475 GB, free: 157.5 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.451e-05/1.056, allocations: 52 kB / 0.7475 GB, free: 157.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1158) (initialization): time 0.01903/1.076, allocations: 13.58 MB / 0.7608 GB, free: 143.7 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001117/1.076, allocations: 92.34 kB / 0.7609 GB, free: 143.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009117/1.085, allocations: 5.712 MB / 0.7664 GB, free: 137.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005569/1.09, allocations: 2.126 MB / 0.7685 GB, free: 135.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005951/1.096, allocations: 2.079 MB / 0.7706 GB, free: 133.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01134/1.108, allocations: 14.11 MB / 0.7843 GB, free: 118.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005939/1.114, allocations: 0.5766 MB / 0.7849 GB, free: 118.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001029/1.115, allocations: 0.5234 MB / 0.7854 GB, free: 117.6 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 862 * Number of states: 0 () * Number of discrete variables: 62 (sensorConstraintRelative.arrow.arrowLine.twoHeadedArrow,sensorConstraintRelative.arrow.headAtOrigin,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 (1094): * Single equations (assignments): 1078 * 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.004436/1.119, allocations: 3.197 MB / 0.7885 GB, free: 114.4 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000765/1.12, allocations: 0.509 MB / 0.789 GB, free: 113.9 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009866/1.13, allocations: 6.433 MB / 0.7953 GB, free: 107.4 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008191/1.138, allocations: 5.536 MB / 0.8007 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.007791/1.146, allocations: 5.369 MB / 0.806 GB, free: 96.27 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-05/1.146, allocations: 15.95 kB / 0.806 GB, free: 96.25 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02283/1.169, allocations: 16.77 MB / 0.8223 GB, free: 79.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.788e-05/1.169, allocations: 8 kB / 0.8224 GB, free: 79.34 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002026/1.171, allocations: 491.2 kB / 0.8228 GB, free: 78.86 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004855/1.176, allocations: 1.846 MB / 0.8246 GB, free: 76.99 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002211/1.176, allocations: 75.86 kB / 0.8247 GB, free: 76.92 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00946/1.185, allocations: 9.774 MB / 0.8342 GB, free: 66.75 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000669/1.186, allocations: 1.467 MB / 0.8357 GB, free: 65.14 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01287/1.199, allocations: 9.535 MB / 0.845 GB, free: 55.43 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001377/1.2, allocations: 0.5606 MB / 0.8455 GB, free: 54.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001117/1.201, allocations: 55.98 kB / 0.8456 GB, free: 54.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002704/1.204, allocations: 215.7 kB / 0.8458 GB, free: 54.57 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005845/1.205, allocations: 185.5 kB / 0.846 GB, free: 54.39 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002107/1.205, allocations: 81.62 kB / 0.8461 GB, free: 54.31 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005501/1.211, allocations: 3.569 MB / 0.8495 GB, free: 50.74 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.51e-07/1.211, allocations: 0 / 0.8495 GB, free: 50.74 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007167/1.218, allocations: 1.666 MB / 0.8512 GB, free: 49.09 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (223): * Single equations (assignments): 213 * 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.0131/1.231, allocations: 10.22 MB / 0.8611 GB, free: 38.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01217/1.243, allocations: 8.832 MB / 0.8698 GB, free: 29.79 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.377e-06/1.243, allocations: 8.312 kB / 0.8698 GB, free: 29.78 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004421/1.247, allocations: 3.332 MB / 0.873 GB, free: 26.34 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00972/1.257, allocations: 0.7959 MB / 0.8738 GB, free: 25.57 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2273/1.485, allocations: 59.1 MB / 0.9315 GB, free: 164.7 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004436/1.489, allocations: 4.794 MB / 0.9362 GB, free: 163 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003223/1.492, allocations: 3.161 MB / 0.9393 GB, free: 160.1 MB / 0.4948 GB Notification: Performance of SimCode: time 6.81e-07/1.492, allocations: 0 / 0.9393 GB, free: 160.1 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.54/13.04, allocations: 315.9 MB / 1.248 GB, free: 41.67 MB / 0.4948 GB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_SphericalConstraint_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_SphericalConstraint.fmu > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe 2>&1)