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: 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_3.2.3_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_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001571/0.00157, allocations: 179.5 kB / 8.157 MB, free: 2.203 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.826/1.826, allocations: 205.2 MB / 213.8 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.001858/0.001858, allocations: 98.09 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.187e-06/9.267e-06, allocations: 0 / 314.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.2427, allocations: 47.55 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1791/0.4219, allocations: 112.9 MB / 474.7 MB, free: 5.121 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000407/0.4224, allocations: 87.94 kB / 474.8 MB, free: 5.035 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.7338/1.156, allocations: 124 MB / 0.5848 GB, free: 57.48 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005654/1.157, allocations: 146.7 kB / 0.5849 GB, free: 57.34 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: 2390 * Number of variables: 2390 Notification: Performance of Generate backend data structure: time 0.03681/1.194, allocations: 7.031 MB / 0.5918 GB, free: 50.25 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/1.194, allocations: 8.031 kB / 0.5918 GB, free: 50.25 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02045/1.214, allocations: 2.319 MB / 0.594 GB, free: 47.91 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03011/1.244, allocations: 7.587 MB / 0.6014 GB, free: 40.31 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004683/1.245, allocations: 228 kB / 0.6017 GB, free: 40.09 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003811/1.249, allocations: 423.8 kB / 0.6021 GB, free: 39.68 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0284/1.277, allocations: 10.54 MB / 0.6124 GB, free: 29.14 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04189/1.319, allocations: 15.07 MB / 0.6271 GB, free: 12.77 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004822/1.32, allocations: 79.33 kB / 0.6271 GB, free: 12.7 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003616/1.323, allocations: 43.94 kB / 0.6272 GB, free: 12.65 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003871/1.327, allocations: 1.61 MB / 0.6288 GB, free: 11.04 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2861/1.613, allocations: 74.37 MB / 0.7014 GB, free: 69.4 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009213/1.623, allocations: 4.75 MB / 0.706 GB, free: 68.74 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007814/1.631, allocations: 3.931 MB / 0.7099 GB, free: 68.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03052/1.661, allocations: 11.46 MB / 0.7211 GB, free: 65.94 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.814e-05/1.661, allocations: 60.44 kB / 0.7211 GB, free: 65.9 MB / 410.7 MB Notification: Performance of pre-optimization done (n=275): time 7.134e-06/1.661, allocations: 0 / 0.7211 GB, free: 65.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=358): time 0.2202/1.881, allocations: 41.22 MB / 0.7614 GB, free: 53.62 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/1.882, allocations: 170.1 kB / 0.7615 GB, free: 53.46 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01747/1.899, allocations: 4.547 MB / 0.766 GB, free: 51.83 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001642/1.901, allocations: 31.39 kB / 0.766 GB, free: 51.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004976/1.906, allocations: 4.29 MB / 0.7702 GB, free: 48.45 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003855/1.91, allocations: 1.292 MB / 0.7715 GB, free: 47.48 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00249/1.912, allocations: 0 / 0.7715 GB, free: 47.48 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.001875/1.914, allocations: 0.7165 MB / 0.7722 GB, free: 47 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01535/1.93, allocations: 4.108 MB / 0.7762 GB, free: 44.46 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02204/1.952, allocations: 9.442 MB / 0.7854 GB, free: 33.18 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02185/1.974, allocations: 6.199 MB / 0.7914 GB, free: 28.06 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003451/1.974, allocations: 56 kB / 0.7915 GB, free: 28.01 MB / 410.7 MB Notification: Performance of matching and sorting (n=1234) (initialization): time 0.07732/2.051, allocations: 17.07 MB / 0.8082 GB, free: 14.39 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/2.052, allocations: 4 kB / 0.8082 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003021/2.052, allocations: 192 kB / 0.8083 GB, free: 14.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03769/2.09, allocations: 5.137 MB / 0.8134 GB, free: 10.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0145/2.104, allocations: 2.065 MB / 0.8154 GB, free: 8.945 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.254/2.358, allocations: 33.9 MB / 0.8485 GB, free: 94.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01267/2.371, allocations: 322.8 kB / 0.8488 GB, free: 94.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002946/2.374, allocations: 0.5901 MB / 0.8494 GB, free: 94.05 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 868 * 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 (1100): * Single equations (assignments): 1089 * 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,(1,100.0%) 14,(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.00323/2.377, allocations: 0.5121 MB / 0.8499 GB, free: 94.02 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001849/2.379, allocations: 0.5094 MB / 0.8504 GB, free: 94.02 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04699/2.426, allocations: 10.37 MB / 0.8605 GB, free: 93.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002001/2.426, allocations: 48.09 kB / 0.8605 GB, free: 93.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.04087/2.467, allocations: 9.439 MB / 0.8698 GB, free: 91.71 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001075/2.467, allocations: 19.28 kB / 0.8698 GB, free: 91.71 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08372/2.551, allocations: 22.42 MB / 0.8917 GB, free: 83.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.384e-05/2.551, allocations: 5.812 kB / 0.8917 GB, free: 83.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005564/2.557, allocations: 454 kB / 0.8921 GB, free: 83.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02668/2.584, allocations: 3.554 MB / 0.8956 GB, free: 82.72 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001007/2.585, allocations: 20.36 kB / 0.8956 GB, free: 82.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05827/2.643, allocations: 24.15 MB / 0.9192 GB, free: 68.09 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02658/2.67, allocations: 10.67 MB / 0.9296 GB, free: 58.38 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04913/2.719, allocations: 15.19 MB / 0.9444 GB, free: 45.28 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004134/2.723, allocations: 1.121 MB / 0.9455 GB, free: 44.25 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001389/2.724, allocations: 11.03 kB / 0.9456 GB, free: 44.24 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006097/2.73, allocations: 126.5 kB / 0.9457 GB, free: 44.17 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007236/2.731, allocations: 173.7 kB / 0.9458 GB, free: 44.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004959/2.732, allocations: 95.14 kB / 0.9459 GB, free: 43.98 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.006365/2.738, allocations: 3.069 MB / 0.9489 GB, free: 41.32 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01386/2.752, allocations: 1.759 MB / 0.9506 GB, free: 39.58 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (225): * Single equations (assignments): 217 * 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.001874/2.754, allocations: 227.8 kB / 0.9509 GB, free: 39.43 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02521/2.779, allocations: 10.31 MB / 0.9609 GB, free: 29.99 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.442e-05/2.779, allocations: 0 / 0.9609 GB, free: 29.99 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1821/2.961, allocations: 3.972 MB / 0.9648 GB, free: 94.66 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006809/2.968, allocations: 0.6203 MB / 0.9654 GB, free: 94.64 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04833/3.017, allocations: 14.56 MB / 0.9796 GB, free: 91.96 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01756/3.034, allocations: 5.58 MB / 0.9851 GB, free: 91.1 MB / 410.7 MB Notification: Performance of SimCode: time 1.343e-06/3.034, allocations: 2.781 kB / 0.9851 GB, free: 91.1 MB / 410.7 MB Notification: Performance of Templates: time 0.5858/3.62, allocations: 256.2 MB / 1.235 GB, free: 14.66 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.makefile (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 & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe 2>&1)