Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.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: translateModel(Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bodyOfConstraint.body.w_a.1.|bodyOfConstraint.body.w_a.2.|bodyOfConstraint.body.w_a.3.|bodyOfJoint.body.w_a.2.|joint.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bodyOfConstraint.body.w_a.1.|bodyOfConstraint.body.w_a.2.|bodyOfConstraint.body.w_a.3.|bodyOfJoint.body.w_a.2.|joint.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009716/0.0009717, allocations: 197.2 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.224/1.224, allocations: 226.6 MB / 244.3 MB, free: 8.312 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000845/0.000845, allocations: 96.94 kB / 296.4 MB, free: 7.023 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002215/0.0002216, allocations: 8 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1823/0.1825, allocations: 51.29 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint): time 0.0576/0.2402, allocations: 77.39 MB / 484.9 MB, free: 14.23 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.03011/0.2703, allocations: 16.45 MB / 0.4896 GB, free: 13.75 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01086/0.2812, allocations: 390.9 kB / 0.49 GB, free: 13.37 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009394/0.2907, allocations: 3.639 MB / 0.4935 GB, free: 9.715 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.2174/0.5081, allocations: 10.52 MB / 0.5038 GB, free: 4.133 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004744/0.5129, allocations: 1.018 MB / 0.5048 GB, free: 4.121 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008622/0.5215, allocations: 7.786 MB / 0.5124 GB, free: 4.09 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01299/0.5346, allocations: 9.504 MB / 0.5217 GB, free: 3.18 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003506/0.5381, allocations: 2.114 MB / 0.5237 GB, free: 3.176 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00471/0.5428, allocations: 2.964 MB / 0.5266 GB, free: 3.168 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001529/0.5444, allocations: 224.4 kB / 0.5268 GB, free: 3.168 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003368/0.5478, allocations: 1.272 MB / 0.5281 GB, free: 3.156 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003129/0.5509, allocations: 2.759 MB / 0.5308 GB, free: 3.156 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001607/0.5525, allocations: 1.331 MB / 0.5321 GB, free: 3.121 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01369/0.5662, allocations: 9.884 MB / 0.5417 GB, free: 0 / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.5663, allocations: 128 / 0.5417 GB, free: 0 / 378.7 MB Notification: Performance of FrontEnd: time 2.215e-06/0.5663, allocations: 64 / 0.5417 GB, free: 0 / 378.7 MB Notification: Performance of Transformations before backend: time 0.0005415/0.5668, allocations: 0 / 0.5417 GB, free: 0 / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2341 * Number of variables: 2341 Notification: Performance of Generate backend data structure: time 0.01763/0.5845, allocations: 6.918 MB / 0.5485 GB, free: 12 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.5845, allocations: 10.12 kB / 0.5485 GB, free: 12 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008277/0.5928, allocations: 2.305 MB / 0.5507 GB, free: 9.996 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007851/0.6007, allocations: 3.907 MB / 0.5546 GB, free: 7.211 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003036/0.601, allocations: 432.7 kB / 0.555 GB, free: 6.977 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001782/0.6028, allocations: 0.5645 MB / 0.5555 GB, free: 6.605 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02971/0.6325, allocations: 16.51 MB / 0.5716 GB, free: 9.93 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000196/0.6328, allocations: 53.03 kB / 0.5717 GB, free: 9.902 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008492/0.6336, allocations: 271.6 kB / 0.572 GB, free: 9.824 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003737/0.6374, allocations: 2.571 MB / 0.5745 GB, free: 7.711 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02847/0.6659, allocations: 14.09 MB / 0.5882 GB, free: 13.93 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.07552/0.7414, allocations: 62.36 MB / 0.6491 GB, free: 5.312 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01982/0.7613, allocations: 7.625 MB / 0.6566 GB, free: 13.55 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005254/0.7666, allocations: 3.919 MB / 0.6604 GB, free: 9.633 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02333/0.7899, allocations: 16.59 MB / 0.6766 GB, free: 8.602 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.284e-05/0.79, allocations: 63.75 kB / 0.6767 GB, free: 8.535 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=265): time 5.23e-06/0.79, allocations: 2.188 kB / 0.6767 GB, free: 8.535 MB / 0.4948 GB Notification: Performance of matching and sorting (n=316): time 0.2657/1.056, allocations: 39.48 MB / 0.7152 GB, free: 193.1 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01378/1.07, allocations: 11.64 MB / 0.7266 GB, free: 182.1 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005487/1.075, allocations: 5.603 MB / 0.7321 GB, free: 176.5 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005428/1.076, allocations: 69.7 kB / 0.7321 GB, free: 176.4 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001677/1.077, allocations: 4.661 MB / 0.7367 GB, free: 171.8 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008206/1.078, allocations: 1.185 MB / 0.7378 GB, free: 170.6 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003604/1.079, allocations: 179.5 kB / 0.738 GB, free: 170.4 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002777/1.079, allocations: 0.6862 MB / 0.7387 GB, free: 169.7 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004054/1.083, allocations: 3.914 MB / 0.7425 GB, free: 165.8 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005434/1.088, allocations: 9.073 MB / 0.7514 GB, free: 154.3 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005628/1.094, allocations: 5.816 MB / 0.757 GB, free: 148.5 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.107e-05/1.094, allocations: 52 kB / 0.7571 GB, free: 148.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1168) (initialization): time 0.02589/1.12, allocations: 16.69 MB / 0.7734 GB, free: 131.6 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.694e-05/1.12, allocations: 87.95 kB / 0.7735 GB, free: 131.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001217/1.12, allocations: 180 kB / 0.7736 GB, free: 131.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0119/1.132, allocations: 4.232 MB / 0.7778 GB, free: 127.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005761/1.138, allocations: 2.038 MB / 0.7798 GB, free: 125.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02981/1.168, allocations: 30.4 MB / 0.8095 GB, free: 93.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006665/1.174, allocations: 0.5305 MB / 0.81 GB, free: 93.29 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007427/1.175, allocations: 0.5486 MB / 0.8105 GB, free: 92.75 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 826 * 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.cylinderColor[3],joint.cylinderColor[2],joint.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1061): * Single equations (assignments): 1048 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(3,100.0%) 25,(2,100.0%) 11,(2,100.0%) 13,(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {2 11} Notification: Performance of prepare postOptimizeDAE: time 0.004087/1.179, allocations: 3.181 MB / 0.8136 GB, free: 89.55 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007262/1.18, allocations: 0.5128 MB / 0.8141 GB, free: 89.04 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01601/1.196, allocations: 9.257 MB / 0.8232 GB, free: 79.64 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.857e-05/1.196, allocations: 47.98 kB / 0.8232 GB, free: 79.59 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.01407/1.21, allocations: 7.858 MB / 0.8309 GB, free: 71.6 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.764e-05/1.21, allocations: 11.95 kB / 0.8309 GB, free: 71.59 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03198/1.242, allocations: 21.36 MB / 0.8517 GB, free: 50.15 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.861e-05/1.242, allocations: 7.984 kB / 0.8517 GB, free: 50.14 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002412/1.245, allocations: 487.2 kB / 0.8522 GB, free: 49.67 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009648/1.254, allocations: 3.031 MB / 0.8552 GB, free: 46.62 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005559/1.255, allocations: 64.92 kB / 0.8552 GB, free: 46.56 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02437/1.279, allocations: 21.59 MB / 0.8763 GB, free: 24.43 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01067/1.29, allocations: 8.867 MB / 0.885 GB, free: 15.29 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1984/1.488, allocations: 12.91 MB / 0.8976 GB, free: 176.1 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001542/1.49, allocations: 0.5521 MB / 0.8981 GB, free: 176 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007386/1.491, allocations: 53.2 kB / 0.8982 GB, free: 176 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002682/1.493, allocations: 211.3 kB / 0.8984 GB, free: 176 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008728/1.494, allocations: 214.4 kB / 0.8986 GB, free: 176 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002521/1.495, allocations: 81.67 kB / 0.8987 GB, free: 176 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005409/1.5, allocations: 3.483 MB / 0.9021 GB, free: 175.9 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.5e-07/1.5, allocations: 0 / 0.9021 GB, free: 175.9 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007015/1.507, allocations: 1.9 MB / 0.9039 GB, free: 175.9 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 ($STATESET2.x,$STATESET1.x,joint.phi,joint.w) * 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 (219): * Single equations (assignments): 211 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 11,(3,100.0%) 22,(3,100.0%) 13} * Non-linear torn systems: 1 {3 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006454/1.508, allocations: 251.7 kB / 0.9042 GB, free: 175.8 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01287/1.52, allocations: 10.13 MB / 0.9141 GB, free: 173.5 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.056e-06/1.521, allocations: 0 / 0.9141 GB, free: 173.5 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004886/1.525, allocations: 3.814 MB / 0.9178 GB, free: 171.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004794/1.53, allocations: 0.7921 MB / 0.9186 GB, free: 171.5 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02575/1.556, allocations: 18.95 MB / 0.9371 GB, free: 161.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004492/1.561, allocations: 4.845 MB / 0.9418 GB, free: 157.8 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001862/1.562, allocations: 420.5 kB / 0.9422 GB, free: 157.4 MB / 0.4948 GB Notification: Performance of SimCode: time 1.753e-06/1.562, allocations: 0 / 0.9422 GB, free: 157.4 MB / 0.4948 GB Notification: Performance of Templates: time 0.3936/1.956, allocations: 254.8 MB / 1.191 GB, free: 84.09 MB / 0.4948 GB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe 2>&1)