Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.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.RevoluteConstraint,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_RevoluteConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_RevoluteConstraint",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.002434/0.002434, allocations: 182.4 kB / 13.66 MB, free: 1.664 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.12/2.12, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001156/0.001155, allocations: 86.61 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.2e-05/3.217e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1115, allocations: 47.57 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5009/0.6125, allocations: 113.6 MB / 482.8 MB, free: 12.03 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002914/0.6128, allocations: 95.67 kB / 482.9 MB, free: 11.98 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8269/1.44, allocations: 128.7 MB / 0.5973 GB, free: 86.32 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.164e-06/1.44, allocations: 0 / 0.5973 GB, free: 86.32 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004933/1.44, allocations: 145.3 kB / 0.5974 GB, free: 86.31 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2390 * Number of variables: 2390 Notification: Performance of Generate backend data structure: time 0.03501/1.475, allocations: 7.142 MB / 0.6044 GB, free: 79.24 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.358e-05/1.475, allocations: 11.97 kB / 0.6044 GB, free: 79.23 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005766/1.481, allocations: 1.214 MB / 0.6056 GB, free: 78.04 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02191/1.503, allocations: 2.775 MB / 0.6083 GB, free: 75.25 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02773/1.531, allocations: 7.535 MB / 0.6157 GB, free: 67.73 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006999/1.532, allocations: 0.5234 MB / 0.6162 GB, free: 67.24 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004012/1.536, allocations: 0.7 MB / 0.6169 GB, free: 66.57 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05712/1.593, allocations: 17.38 MB / 0.6338 GB, free: 47.92 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004794/1.593, allocations: 79.28 kB / 0.6339 GB, free: 47.84 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003238/1.597, allocations: 339.8 kB / 0.6342 GB, free: 47.51 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00365/1.6, allocations: 1.519 MB / 0.6357 GB, free: 45.99 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04851/1.649, allocations: 14.55 MB / 0.6499 GB, free: 31.42 MB / 410.7 MB Warning: The model contains alias variables with conflicting start and/or 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.4693/2.118, allocations: 73.77 MB / 0.722 GB, free: 46.64 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0404/2.159, allocations: 7.816 MB / 0.7296 GB, free: 45.95 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007781/2.167, allocations: 3.983 MB / 0.7335 GB, free: 45.91 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04099/2.208, allocations: 16.71 MB / 0.7498 GB, free: 42.18 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.755e-05/2.208, allocations: 61.38 kB / 0.7498 GB, free: 42.14 MB / 426.7 MB Notification: Performance of pre-optimization done (n=275): time 7.584e-06/2.208, allocations: 0 / 0.7498 GB, free: 42.14 MB / 426.7 MB Notification: Performance of matching and sorting (n=349): time 0.2015/2.409, allocations: 39.2 MB / 0.7881 GB, free: 31.19 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0359/2.445, allocations: 14.85 MB / 0.8026 GB, free: 20.74 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01238/2.458, allocations: 5.052 MB / 0.8076 GB, free: 16.29 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001044/2.459, allocations: 77.45 kB / 0.8076 GB, free: 16.21 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004019/2.463, allocations: 4.614 MB / 0.8121 GB, free: 12.03 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002323/2.465, allocations: 1.31 MB / 0.8134 GB, free: 10.88 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001539/2.467, allocations: 180 kB / 0.8136 GB, free: 10.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008031/2.468, allocations: 0.7003 MB / 0.8143 GB, free: 10.1 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01019/2.478, allocations: 4.054 MB / 0.8182 GB, free: 6.457 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01505/2.493, allocations: 9.282 MB / 0.8273 GB, free: 11.38 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0163/2.509, allocations: 6.081 MB / 0.8332 GB, free: 6.297 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002204/2.51, allocations: 52 kB / 0.8333 GB, free: 6.246 MB / 442.7 MB Notification: Performance of matching and sorting (n=1198) (initialization): time 0.07072/2.58, allocations: 17.68 MB / 0.8506 GB, free: 5.961 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001873/2.581, allocations: 85.25 kB / 0.8506 GB, free: 5.879 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003243/2.581, allocations: 184 kB / 0.8508 GB, free: 5.699 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03208/2.613, allocations: 4.987 MB / 0.8557 GB, free: 0.7266 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01421/2.627, allocations: 2.02 MB / 0.8577 GB, free: 14.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5224/3.15, allocations: 37.03 MB / 0.8938 GB, free: 119.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02146/3.171, allocations: 0.5467 MB / 0.8944 GB, free: 119.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003694/3.175, allocations: 0.5601 MB / 0.8949 GB, free: 119.3 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 841 * 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.cylinderColor[3],joint.cylinderColor[2],joint.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1064): * Single equations (assignments): 1053 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(3,100.0%) 38,(2,100.0%) 23,(3,77.8%) 12,(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.005617/3.181, allocations: 0.7991 MB / 0.8957 GB, free: 119.1 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003163/3.184, allocations: 0.5369 MB / 0.8962 GB, free: 119.1 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06225/3.246, allocations: 10.47 MB / 0.9064 GB, free: 117.2 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000168/3.247, allocations: 45.03 kB / 0.9065 GB, free: 117.2 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.05434/3.301, allocations: 9.547 MB / 0.9158 GB, free: 114.1 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001206/3.301, allocations: 13.27 kB / 0.9158 GB, free: 114.1 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1168/3.418, allocations: 23.61 MB / 0.9389 GB, free: 105.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.369e-05/3.418, allocations: 6.031 kB / 0.9389 GB, free: 105.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006826/3.425, allocations: 474.9 kB / 0.9393 GB, free: 105.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03284/3.458, allocations: 3.696 MB / 0.9429 GB, free: 104.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001486/3.459, allocations: 63.45 kB / 0.943 GB, free: 104.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09857/3.558, allocations: 27.3 MB / 0.9697 GB, free: 84.85 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0315/3.59, allocations: 12.12 MB / 0.9815 GB, free: 73.98 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04671/3.636, allocations: 15.19 MB / 0.9963 GB, free: 59.91 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004873/3.641, allocations: 1.159 MB / 0.9975 GB, free: 58.73 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002158/3.643, allocations: 63.44 kB / 0.9975 GB, free: 58.68 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007062/3.651, allocations: 223.7 kB / 0.9977 GB, free: 58.46 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001829/3.652, allocations: 247 kB / 0.998 GB, free: 58.22 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007436/3.653, allocations: 97.86 kB / 0.9981 GB, free: 58.13 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.009767/3.663, allocations: 3.518 MB / 1.001 GB, free: 54.6 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.062e-06/3.663, allocations: 3 kB / 1.001 GB, free: 54.6 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01427/3.677, allocations: 2.054 MB / 1.004 GB, free: 52.57 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 ($STATESET2.x,$STATESET1.x,joint.phi,joint.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (216): * Single equations (assignments): 208 * 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%) 35,(3,100.0%) 25} * Non-linear torn systems: 1 {3 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.04751/3.725, allocations: 16.98 MB / 1.02 GB, free: 35.48 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02465/3.75, allocations: 10.74 MB / 1.031 GB, free: 24.91 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.44e-05/3.75, allocations: 2.828 kB / 1.031 GB, free: 24.91 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01026/3.76, allocations: 4.215 MB / 1.035 GB, free: 20.64 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006977/3.767, allocations: 0.7566 MB / 1.035 GB, free: 19.93 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3914/4.158, allocations: 16.79 MB / 1.052 GB, free: 123.3 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01359/4.172, allocations: 5.164 MB / 1.057 GB, free: 122.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01565/4.188, allocations: 3.246 MB / 1.06 GB, free: 122.4 MB / 474.7 MB Notification: Performance of SimCode: time 1.994e-06/4.188, allocations: 0.5625 kB / 1.06 GB, free: 122.4 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.802/10.99, allocations: 288.3 MB / 1.342 GB, free: 30.95 MB / 474.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_RevoluteConstraint_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_RevoluteConstraint.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe 2>&1)