Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_GearConstraint",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 4.0.0+maint.om/package.mo): time 0.0009677/0.0009677, allocations: 182.7 kB / 8.524 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.181/1.181, allocations: 221.4 MB / 230.3 MB, free: 7.73 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009398/0.0009398, allocations: 84.69 kB / 281.2 MB, free: 5.465 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1626/0.1626, allocations: 44.15 MB / 376.1 MB, free: 3.242 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1731/0.3357, allocations: 68.03 MB / 444.1 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09303/0.4288, allocations: 61.91 MB / 0.4942 GB, free: 1.547 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2598/0.6886, allocations: 110.8 MB / 0.6023 GB, free: 1.953 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001985/0.6889, allocations: 76.62 kB / 0.6024 GB, free: 1.879 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: 3026 * Number of variables: 3026 Notification: Performance of Generate backend data structure: time 0.554/1.243, allocations: 164.7 MB / 0.7632 GB, free: 96.54 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/1.243, allocations: 15.53 kB / 0.7632 GB, free: 96.53 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03816/1.281, allocations: 9.017 MB / 0.772 GB, free: 95.64 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02113/1.302, allocations: 8.083 MB / 0.7799 GB, free: 92.51 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004328/1.303, allocations: 263.8 kB / 0.7802 GB, free: 92.51 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003171/1.306, allocations: 477.4 kB / 0.7806 GB, free: 92.5 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01984/1.326, allocations: 13.11 MB / 0.7934 GB, free: 83.05 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02336/1.349, allocations: 18.7 MB / 0.8117 GB, free: 62.94 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002287/1.349, allocations: 83.27 kB / 0.8118 GB, free: 62.86 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001024/1.35, allocations: 44 kB / 0.8118 GB, free: 62.82 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001826/1.352, allocations: 2.185 MB / 0.814 GB, free: 60.63 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07718/1.43, allocations: 80.84 MB / 0.8929 GB, free: 10.14 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007775/1.437, allocations: 6.33 MB / 0.8991 GB, free: 3.68 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.2447/1.682, allocations: 5.121 MB / 0.9041 GB, free: 177.6 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01976/1.702, allocations: 14.37 MB / 0.9181 GB, free: 175.8 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.038e-05/1.702, allocations: 69.77 kB / 0.9182 GB, free: 175.8 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=401): time 7.304e-06/1.702, allocations: 0 / 0.9182 GB, free: 175.8 MB / 0.5262 GB Notification: Performance of matching and sorting (n=466): time 0.06428/1.766, allocations: 38.17 MB / 0.9555 GB, free: 167.3 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.07e-05/1.766, allocations: 231.9 kB / 0.9557 GB, free: 167.1 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006064/1.772, allocations: 5.303 MB / 0.9609 GB, free: 165.1 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.000409/1.773, allocations: 25.7 kB / 0.9609 GB, free: 165.1 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.001936/1.775, allocations: 5.396 MB / 0.9662 GB, free: 161 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001131/1.776, allocations: 1.652 MB / 0.9678 GB, free: 159.7 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000476/1.776, allocations: 0 / 0.9678 GB, free: 159.7 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0004281/1.777, allocations: 0.8119 MB / 0.9686 GB, free: 159.2 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005364/1.782, allocations: 4.909 MB / 0.9734 GB, free: 157.5 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007772/1.79, allocations: 11.27 MB / 0.9844 GB, free: 147.3 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009896/1.8, allocations: 7.519 MB / 0.9917 GB, free: 144.6 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001444/1.8, allocations: 64 kB / 0.9918 GB, free: 144.5 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1528) (initialization): time 0.02351/1.824, allocations: 16.15 MB / 1.008 GB, free: 131 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/1.824, allocations: 7.141 kB / 1.008 GB, free: 131 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001744/1.824, allocations: 224 kB / 1.008 GB, free: 130.7 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004114/1.828, allocations: 1.652 MB / 1.009 GB, free: 129.4 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008288/1.836, allocations: 2.607 MB / 1.012 GB, free: 127.1 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0122/1.848, allocations: 12.9 MB / 1.025 GB, free: 115 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008022/1.856, allocations: 381.8 kB / 1.025 GB, free: 114.6 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001148/1.858, allocations: 0.6586 MB / 1.026 GB, free: 114 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1028 * Number of states: 0 () * Number of discrete variables: 53 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[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],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1404): * Single equations (assignments): 1391 * Array equations: 9 * 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: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002018/1.86, allocations: 0.6624 MB / 1.026 GB, free: 113.3 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00129/1.861, allocations: 0.5782 MB / 1.027 GB, free: 112.8 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02054/1.882, allocations: 9.114 MB / 1.036 GB, free: 105.1 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001583/1.882, allocations: 78.56 kB / 1.036 GB, free: 105 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.473e-05/1.882, allocations: 14.34 kB / 1.036 GB, free: 105 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.904e-05/1.882, allocations: 21.56 kB / 1.036 GB, free: 105 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0327/1.915, allocations: 18.54 MB / 1.054 GB, free: 89.46 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.726e-05/1.915, allocations: 4 kB / 1.054 GB, free: 89.46 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003508/1.918, allocations: 0.6625 MB / 1.055 GB, free: 88.9 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003762/1.922, allocations: 1.275 MB / 1.056 GB, free: 87.95 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003449/1.922, allocations: 19.56 kB / 1.056 GB, free: 87.94 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01128/1.934, allocations: 11.78 MB / 1.067 GB, free: 76.76 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.655e-06/1.934, allocations: 11.94 kB / 1.067 GB, free: 76.75 MB / 0.5262 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01759/1.951, allocations: 16.06 MB / 1.083 GB, free: 61.97 MB / 0.5262 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02357/1.975, allocations: 22.17 MB / 1.105 GB, free: 41.09 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001311/1.976, allocations: 0.595 MB / 1.105 GB, free: 40.47 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009567/1.977, allocations: 11.91 kB / 1.105 GB, free: 40.46 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002768/1.98, allocations: 147.8 kB / 1.105 GB, free: 40.31 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005335/1.98, allocations: 210.2 kB / 1.106 GB, free: 40.11 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000337/1.981, allocations: 116 kB / 1.106 GB, free: 39.99 MB / 0.5262 GB Notification: Performance of sort global known variables: time 0.00449/1.985, allocations: 3.541 MB / 1.109 GB, free: 36.45 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.008271/1.994, allocations: 1.727 MB / 1.111 GB, free: 34.73 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (351): * Single equations (assignments): 338 * Array equations: 9 * 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: 4 {(1,100.0%) 39,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006508/1.994, allocations: 177.4 kB / 1.111 GB, free: 34.55 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.01387/2.008, allocations: 11.79 MB / 1.122 GB, free: 22.77 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 4.91e-06/2.008, allocations: 0 / 1.122 GB, free: 22.77 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.149/2.157, allocations: 4.647 MB / 1.127 GB, free: 168.8 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002704/2.16, allocations: 0.5337 MB / 1.128 GB, free: 168.8 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02676/2.187, allocations: 16.99 MB / 1.144 GB, free: 165.9 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008365/2.195, allocations: 6.636 MB / 1.151 GB, free: 165 MB / 0.5262 GB Notification: Performance of SimCode: time 9.42e-07/2.195, allocations: 0 / 1.151 GB, free: 165 MB / 0.5262 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_GearConstraint.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1)