Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001639/0.001639, allocations: 204.4 kB / 8.543 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.238/1.238, allocations: 225.5 MB / 234.4 MB, free: 3.402 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009641/0.0009641, allocations: 90.73 kB / 286.3 MB, free: 5.215 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1756/0.1756, allocations: 45.15 MB / 383.3 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1904/0.3661, allocations: 69.38 MB / 452.7 MB, free: 76.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08007/0.4462, allocations: 63.23 MB / 0.5039 GB, free: 12.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2874/0.7336, allocations: 111.7 MB / 0.6129 GB, free: 7.688 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001949/0.7338, allocations: 73.22 kB / 0.613 GB, free: 7.652 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.5726/1.306, allocations: 166.9 MB / 0.776 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/1.306, allocations: 10.44 kB / 0.776 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03766/1.344, allocations: 9.049 MB / 0.7848 GB, free: 101.7 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01786/1.362, allocations: 7.424 MB / 0.7921 GB, free: 100.8 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002752/1.362, allocations: 261.9 kB / 0.7923 GB, free: 100.8 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002564/1.365, allocations: 481.7 kB / 0.7928 GB, free: 100.8 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01847/1.383, allocations: 13.11 MB / 0.8056 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02469/1.408, allocations: 18.69 MB / 0.8238 GB, free: 96.82 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000228/1.408, allocations: 84.69 kB / 0.8239 GB, free: 96.82 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009726/1.409, allocations: 42.47 kB / 0.824 GB, free: 96.82 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001815/1.411, allocations: 2.175 MB / 0.8261 GB, free: 96.8 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07937/1.491, allocations: 80.85 MB / 0.905 GB, free: 35.16 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006776/1.497, allocations: 6.339 MB / 0.9112 GB, free: 29.21 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005272/1.503, allocations: 5.115 MB / 0.9162 GB, free: 24.47 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02043/1.523, allocations: 14.36 MB / 0.9303 GB, free: 12.12 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.48e-05/1.523, allocations: 68.86 kB / 0.9303 GB, free: 12.05 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=401): time 6.783e-06/1.523, allocations: 0 / 0.9303 GB, free: 12.05 MB / 0.5261 GB Notification: Performance of matching and sorting (n=466): time 0.3357/1.859, allocations: 38.27 MB / 0.9677 GB, free: 165.6 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.866e-05/1.859, allocations: 225.9 kB / 0.9679 GB, free: 165.4 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006553/1.866, allocations: 5.303 MB / 0.9731 GB, free: 164.9 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.0006346/1.866, allocations: 25.7 kB / 0.9731 GB, free: 164.8 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.002067/1.868, allocations: 5.388 MB / 0.9784 GB, free: 161.9 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.001468/1.87, allocations: 1.663 MB / 0.98 GB, free: 160.8 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005131/1.87, allocations: 0 / 0.98 GB, free: 160.8 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0004741/1.871, allocations: 0.8058 MB / 0.9808 GB, free: 160.5 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00642/1.877, allocations: 4.909 MB / 0.9856 GB, free: 160.5 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008374/1.886, allocations: 11.28 MB / 0.9966 GB, free: 152.3 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00901/1.895, allocations: 7.509 MB / 1.004 GB, free: 152.3 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001167/1.895, allocations: 70 kB / 1.004 GB, free: 152.3 MB / 0.5418 GB Notification: Performance of matching and sorting (n=1528) (initialization): time 0.0255/1.92, allocations: 16.15 MB / 1.02 GB, free: 151.3 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/1.92, allocations: 3.438 kB / 1.02 GB, free: 151.3 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002117/1.921, allocations: 230.4 kB / 1.02 GB, free: 151.3 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00418/1.925, allocations: 1.663 MB / 1.022 GB, free: 151.3 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00893/1.934, allocations: 2.597 MB / 1.024 GB, free: 151.1 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01295/1.947, allocations: 12.9 MB / 1.037 GB, free: 144.4 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008376/1.955, allocations: 371.6 kB / 1.037 GB, free: 144.4 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001834/1.957, allocations: 0.659 MB / 1.038 GB, free: 144.3 MB / 0.5418 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.001631/1.959, allocations: 0.6736 MB / 1.038 GB, free: 143.7 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009732/1.96, allocations: 0.5765 MB / 1.039 GB, free: 143.4 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0133/1.973, allocations: 9.098 MB / 1.048 GB, free: 140.2 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001036/1.973, allocations: 80.06 kB / 1.048 GB, free: 140.2 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.918e-05/1.973, allocations: 12.7 kB / 1.048 GB, free: 140.2 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-05/1.973, allocations: 20.97 kB / 1.048 GB, free: 140.2 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02939/2.002, allocations: 18.54 MB / 1.066 GB, free: 133.6 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.399e-05/2.003, allocations: 7.812 kB / 1.066 GB, free: 133.6 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003792/2.006, allocations: 0.6587 MB / 1.067 GB, free: 133.6 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003927/2.01, allocations: 1.283 MB / 1.068 GB, free: 133.2 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005375/2.011, allocations: 19.62 kB / 1.068 GB, free: 133.2 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01197/2.023, allocations: 11.78 MB / 1.079 GB, free: 123.8 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.094e-06/2.023, allocations: 11.91 kB / 1.08 GB, free: 123.8 MB / 0.5418 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01871/2.042, allocations: 16.07 MB / 1.095 GB, free: 109 MB / 0.5418 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02366/2.065, allocations: 22.17 MB / 1.117 GB, free: 88.73 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001449/2.067, allocations: 0.596 MB / 1.117 GB, free: 88.12 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001131/2.068, allocations: 11.05 kB / 1.117 GB, free: 88.11 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002911/2.071, allocations: 145.6 kB / 1.118 GB, free: 88.03 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005627/2.071, allocations: 210.4 kB / 1.118 GB, free: 87.9 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004036/2.072, allocations: 113.9 kB / 1.118 GB, free: 87.79 MB / 0.5418 GB Notification: Performance of sort global known variables: time 0.004853/2.077, allocations: 3.545 MB / 1.121 GB, free: 84.72 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.009112/2.086, allocations: 1.744 MB / 1.123 GB, free: 82.98 MB / 0.5418 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.0005783/2.086, allocations: 175.4 kB / 1.123 GB, free: 82.83 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.01351/2.1, allocations: 11.79 MB / 1.135 GB, free: 72.05 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/2.1, allocations: 0 / 1.135 GB, free: 72.05 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.005497/2.105, allocations: 4.638 MB / 1.139 GB, free: 67.77 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002887/2.108, allocations: 0.5348 MB / 1.14 GB, free: 67.31 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02811/2.136, allocations: 16.99 MB / 1.156 GB, free: 51.94 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00858/2.145, allocations: 6.635 MB / 1.163 GB, free: 46.92 MB / 0.5418 GB Notification: Performance of SimCode: time 8.72e-07/2.145, allocations: 0 / 1.163 GB, free: 46.92 MB / 0.5418 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_GearConstraint.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1)