Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_Modelica_Mechanics_MultiBody_Examples_Constraints_RevoluteConstraint",fmuType="me",version="2.0",platforms={"static"}) [: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.001448/0.001448, allocations: 184.2 kB / 8.479 MB, free: 1.766 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.137/1.137, allocations: 205.2 MB / 214.1 MB, free: 5.137 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001224/0.001224, allocations: 87.27 kB / 262.1 MB, free: 5.188 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1662/0.1675, allocations: 52.97 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06617/0.2337, allocations: 47.57 MB / 362.6 MB, free: 9.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2481/0.4818, allocations: 112.9 MB / 475.5 MB, free: 12.3 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000223/0.4821, allocations: 90.27 kB / 475.6 MB, free: 12.25 MB / 330.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.4713/0.9534, allocations: 131.2 MB / 0.5925 GB, free: 72.5 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.9534, allocations: 9.469 kB / 0.5925 GB, free: 72.5 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01125/0.9647, allocations: 2.313 MB / 0.5948 GB, free: 72.01 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01704/0.9817, allocations: 7.591 MB / 0.6022 GB, free: 71.11 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003388/0.9821, allocations: 232.8 kB / 0.6024 GB, free: 71.11 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003078/0.9852, allocations: 428.9 kB / 0.6028 GB, free: 71.1 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01609/1.001, allocations: 10.54 MB / 0.6131 GB, free: 71.07 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02316/1.025, allocations: 15.06 MB / 0.6278 GB, free: 64.86 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000264/1.025, allocations: 82.69 kB / 0.6279 GB, free: 64.85 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000991/1.026, allocations: 40.12 kB / 0.6279 GB, free: 64.85 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002099/1.028, allocations: 1.615 MB / 0.6295 GB, free: 64.58 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0732/1.101, allocations: 74.51 MB / 0.7023 GB, free: 14.75 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006278/1.107, allocations: 4.755 MB / 0.7069 GB, free: 10.25 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005051/1.113, allocations: 3.927 MB / 0.7108 GB, free: 6.641 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1477/1.26, allocations: 11.59 MB / 0.7221 GB, free: 122.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.03e-05/1.26, allocations: 66.34 kB / 0.7221 GB, free: 122.5 MB / 426.7 MB Notification: Performance of pre-optimization done (n=275): time 6.362e-06/1.26, allocations: 0 / 0.7221 GB, free: 122.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=358): time 0.09659/1.357, allocations: 41.23 MB / 0.7624 GB, free: 118.3 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/1.357, allocations: 163.5 kB / 0.7626 GB, free: 118.1 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005855/1.363, allocations: 4.548 MB / 0.767 GB, free: 117.4 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006795/1.364, allocations: 25.7 kB / 0.767 GB, free: 117.3 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001683/1.365, allocations: 4.412 MB / 0.7713 GB, free: 114.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001341/1.367, allocations: 1.291 MB / 0.7726 GB, free: 113.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004813/1.367, allocations: 0 / 0.7726 GB, free: 113.1 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004066/1.368, allocations: 0.7099 MB / 0.7733 GB, free: 112.6 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0048/1.372, allocations: 4.104 MB / 0.7773 GB, free: 111.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006586/1.379, allocations: 9.45 MB / 0.7865 GB, free: 102.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008245/1.387, allocations: 6.208 MB / 0.7926 GB, free: 100.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001172/1.387, allocations: 54.38 kB / 0.7926 GB, free: 100.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=1234) (initialization): time 0.03885/1.426, allocations: 17.21 MB / 0.8095 GB, free: 91.81 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/1.426, allocations: 8.031 kB / 0.8095 GB, free: 91.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003234/1.427, allocations: 190.3 kB / 0.8096 GB, free: 91.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01853/1.445, allocations: 5.119 MB / 0.8146 GB, free: 88.17 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007504/1.453, allocations: 2.069 MB / 0.8167 GB, free: 86.37 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04246/1.495, allocations: 33.25 MB / 0.8491 GB, free: 56.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009206/1.505, allocations: 329.8 kB / 0.8494 GB, free: 56.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002332/1.507, allocations: 0.5863 MB / 0.85 GB, free: 56.07 MB / 426.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,(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.002963/1.51, allocations: 0.5815 MB / 0.8506 GB, free: 55.49 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001273/1.511, allocations: 0.5013 MB / 0.8511 GB, free: 54.98 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02303/1.534, allocations: 10.38 MB / 0.8612 GB, free: 45.37 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.539e-05/1.534, allocations: 47.91 kB / 0.8613 GB, free: 45.32 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.02043/1.555, allocations: 9.43 MB / 0.8705 GB, free: 35.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.345e-05/1.555, allocations: 19.94 kB / 0.8705 GB, free: 35.78 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1721/1.727, allocations: 22.42 MB / 0.8924 GB, free: 106.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.343e-05/1.727, allocations: 10.5 kB / 0.8924 GB, free: 106.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002936/1.73, allocations: 452.8 kB / 0.8928 GB, free: 106.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0136/1.744, allocations: 3.558 MB / 0.8963 GB, free: 106.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007269/1.744, allocations: 18.17 kB / 0.8963 GB, free: 106.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03256/1.777, allocations: 24.15 MB / 0.9199 GB, free: 101.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01477/1.792, allocations: 10.67 MB / 0.9303 GB, free: 95.62 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02672/1.819, allocations: 15.18 MB / 0.9451 GB, free: 89.82 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03195/1.851, allocations: 20.07 MB / 0.9647 GB, free: 81.77 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003068/1.854, allocations: 1.125 MB / 0.9658 GB, free: 81.15 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001084/1.855, allocations: 11.09 kB / 0.9658 GB, free: 81.14 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003269/1.858, allocations: 118 kB / 0.966 GB, free: 81.14 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000511/1.859, allocations: 175.9 kB / 0.9661 GB, free: 81.11 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000343/1.859, allocations: 94.14 kB / 0.9662 GB, free: 81.09 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.004217/1.863, allocations: 3.069 MB / 0.9692 GB, free: 80 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009103/1.872, allocations: 1.772 MB / 0.9709 GB, free: 78.39 MB / 426.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.001066/1.873, allocations: 224.4 kB / 0.9712 GB, free: 78.23 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01374/1.887, allocations: 10.31 MB / 0.9812 GB, free: 69.28 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.017e-05/1.887, allocations: 4 kB / 0.9812 GB, free: 69.28 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004979/1.892, allocations: 3.983 MB / 0.9851 GB, free: 65.65 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003547/1.896, allocations: 0.624 MB / 0.9857 GB, free: 65.14 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02496/1.921, allocations: 13.81 MB / 0.9992 GB, free: 52.72 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007591/1.928, allocations: 5.5 MB / 1.005 GB, free: 48.58 MB / 426.7 MB Notification: Performance of SimCode: time 9.72e-07/1.928, allocations: 3.938 kB / 1.005 GB, free: 48.58 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Constraints_RevoluteConstraint_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Constraints_RevoluteConstraint.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe 2>&1)