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.001556/0.001556, allocations: 183.1 kB / 16.4 MB, free: 5.75 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.205/2.205, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001138/0.001138, allocations: 101.2 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004033/0.0004033, allocations: 8 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3334/0.3338, allocations: 47.58 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint): time 0.09956/0.4334, allocations: 73.72 MB / 448.4 MB, free: 6.934 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.05086/0.4843, allocations: 17.29 MB / 465.6 MB, free: 5.59 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01652/0.5009, allocations: 394.9 kB / 466 MB, free: 5.203 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01415/0.5151, allocations: 3.717 MB / 469.8 MB, free: 1.469 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04203/0.5572, allocations: 10.34 MB / 480.1 MB, free: 7.105 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007523/0.5648, allocations: 1.182 MB / 481.3 MB, free: 5.922 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.01009/0.5749, allocations: 3.718 MB / 485 MB, free: 2.199 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02093/0.5959, allocations: 9.505 MB / 494.5 MB, free: 8.605 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004846/0.6008, allocations: 1.76 MB / 496.3 MB, free: 6.84 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004913/0.6057, allocations: 2.063 MB / 498.3 MB, free: 4.77 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00155/0.6073, allocations: 232 kB / 498.5 MB, free: 4.543 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004591/0.612, allocations: 1.248 MB / 499.8 MB, free: 3.293 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006647/0.6187, allocations: 2.615 MB / 0.4906 GB, free: 0.6719 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.3744/0.9931, allocations: 1.359 MB / 0.492 GB, free: 11.69 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01271/1.006, allocations: 9.555 MB / 0.5013 GB, free: 11.08 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/1.006, allocations: 0 / 0.5013 GB, free: 11.08 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.447e-06/1.006, allocations: 0 / 0.5013 GB, free: 11.08 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004732/1.006, allocations: 1.75 kB / 0.5013 GB, free: 11.08 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: 2390 * Number of variables: 2390 Notification: Performance of Generate backend data structure: time 0.02705/1.034, allocations: 7.181 MB / 0.5083 GB, free: 8.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.04e-05/1.034, allocations: 13.47 kB / 0.5083 GB, free: 8.25 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00471/1.038, allocations: 1.15 MB / 0.5094 GB, free: 8.152 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01728/1.056, allocations: 2.63 MB / 0.512 GB, free: 7.691 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01427/1.07, allocations: 4.543 MB / 0.5164 GB, free: 6.793 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005337/1.071, allocations: 434.8 kB / 0.5169 GB, free: 6.781 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003356/1.074, allocations: 0.5832 MB / 0.5174 GB, free: 6.77 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05236/1.126, allocations: 17.04 MB / 0.5341 GB, free: 1.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004324/1.127, allocations: 64.41 kB / 0.5341 GB, free: 1.422 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002757/1.13, allocations: 271 kB / 0.5344 GB, free: 1.418 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007238/1.137, allocations: 2.632 MB / 0.537 GB, free: 0.875 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05025/1.187, allocations: 14.66 MB / 0.5513 GB, free: 9.719 MB / 394.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.1424/1.33, allocations: 63.48 MB / 0.6133 GB, free: 5.707 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06374/1.393, allocations: 7.863 MB / 0.621 GB, free: 15.33 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05292/1.446, allocations: 16.93 MB / 0.6375 GB, free: 2.531 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.259e-05/1.447, allocations: 66.44 kB / 0.6376 GB, free: 2.48 MB / 458.7 MB Notification: Performance of pre-optimization done (n=274): time 7.804e-06/1.447, allocations: 0 / 0.6376 GB, free: 2.48 MB / 458.7 MB Notification: Performance of matching and sorting (n=340): time 0.5276/1.974, allocations: 43.74 MB / 0.6803 GB, free: 198.7 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.04145/2.016, allocations: 17.04 MB / 0.6969 GB, free: 189.3 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01429/2.03, allocations: 5.986 MB / 0.7028 GB, free: 187.3 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001089/2.031, allocations: 78.27 kB / 0.7028 GB, free: 187.2 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004034/2.035, allocations: 4.592 MB / 0.7073 GB, free: 183.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002314/2.038, allocations: 1.262 MB / 0.7085 GB, free: 182.7 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001385/2.039, allocations: 182.7 kB / 0.7087 GB, free: 182.6 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0007071/2.04, allocations: 0.7022 MB / 0.7094 GB, free: 182.1 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01077/2.05, allocations: 4.067 MB / 0.7134 GB, free: 180.7 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01409/2.065, allocations: 9.28 MB / 0.7224 GB, free: 171.1 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01392/2.079, allocations: 6.023 MB / 0.7283 GB, free: 165.4 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001573/2.079, allocations: 58.39 kB / 0.7284 GB, free: 165.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=1197) (initialization): time 0.06058/2.139, allocations: 17.3 MB / 0.7453 GB, free: 148 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001309/2.14, allocations: 88.22 kB / 0.7454 GB, free: 147.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002516/2.14, allocations: 187.9 kB / 0.7455 GB, free: 147.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02733/2.167, allocations: 4.591 MB / 0.75 GB, free: 143.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01228/2.18, allocations: 2.027 MB / 0.752 GB, free: 141.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0703/2.25, allocations: 35.05 MB / 0.7862 GB, free: 105.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01258/2.263, allocations: 0.5474 MB / 0.7868 GB, free: 104.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002241/2.265, allocations: 0.5597 MB / 0.7873 GB, free: 104 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 839 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1066): * Single equations (assignments): 1053 * 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%) 33,(2,100.0%) 19,(2,100.0%) 13,(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {2 19} Notification: Performance of prepare postOptimizeDAE: time 0.009557/2.274, allocations: 3.273 MB / 0.7905 GB, free: 100.7 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001755/2.276, allocations: 0.5322 MB / 0.791 GB, free: 100.2 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03646/2.313, allocations: 9.92 MB / 0.8007 GB, free: 90.13 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001033/2.313, allocations: 44.48 kB / 0.8008 GB, free: 90.09 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.03187/2.345, allocations: 8.488 MB / 0.809 GB, free: 81.47 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001014/2.345, allocations: 19.94 kB / 0.8091 GB, free: 81.45 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07069/2.416, allocations: 22.72 MB / 0.8313 GB, free: 58.57 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.138e-05/2.416, allocations: 11.98 kB / 0.8313 GB, free: 58.56 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004716/2.42, allocations: 475.2 kB / 0.8317 GB, free: 58.09 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01952/2.44, allocations: 3.291 MB / 0.8349 GB, free: 54.79 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009638/2.441, allocations: 59.98 kB / 0.835 GB, free: 54.73 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05422/2.495, allocations: 25.22 MB / 0.8596 GB, free: 28.99 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0244/2.52, allocations: 11.02 MB / 0.8704 GB, free: 17.68 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3525/2.872, allocations: 14.71 MB / 0.8847 GB, free: 175 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004764/2.877, allocations: 1.14 MB / 0.8859 GB, free: 174.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002261/2.879, allocations: 56.84 kB / 0.8859 GB, free: 174.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00708/2.886, allocations: 218.5 kB / 0.8861 GB, free: 174.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001907/2.888, allocations: 237.8 kB / 0.8863 GB, free: 174.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008505/2.889, allocations: 93.72 kB / 0.8864 GB, free: 174.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01094/2.9, allocations: 3.764 MB / 0.8901 GB, free: 174.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.42e-07/2.9, allocations: 3.125 kB / 0.8901 GB, free: 174.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01567/2.916, allocations: 2.015 MB / 0.8921 GB, free: 174.7 MB / 490.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (220): * Single equations (assignments): 212 * 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%) 30,(3,100.0%) 21} * Non-linear torn systems: 1 {3 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.05031/2.966, allocations: 16.51 MB / 0.9082 GB, free: 169 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02641/2.993, allocations: 10.67 MB / 0.9186 GB, free: 164.6 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.286e-05/2.993, allocations: 0 / 0.9186 GB, free: 164.6 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01075/3.004, allocations: 4.153 MB / 0.9227 GB, free: 162.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007433/3.011, allocations: 0.7548 MB / 0.9234 GB, free: 162.4 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3907/3.402, allocations: 160.4 MB / 1.08 GB, free: 153.9 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01203/3.414, allocations: 5.143 MB / 1.085 GB, free: 153 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008387/3.422, allocations: 3.233 MB / 1.088 GB, free: 153 MB / 490.7 MB Notification: Performance of SimCode: time 1.523e-06/3.422, allocations: 0 / 1.088 GB, free: 153 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.556/9.979, allocations: 285.3 MB / 1.367 GB, free: 55.38 MB / 490.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)