Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.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.Parts.Rotor1D.GearConstraint3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",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.002119/0.002119, allocations: 204.2 kB / 8.535 MB, free: 464 kB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.216/1.216, allocations: 225.5 MB / 234.4 MB, free: 9.453 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001007/0.001007, allocations: 101.6 kB / 286.3 MB, free: 5.824 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1733/0.1733, allocations: 45.16 MB / 383.3 MB, free: 4.863 MB / 322.8 MB Notification: Performance of FrontEnd - loaded program: time 0.1634/0.3368, allocations: 69.37 MB / 452.7 MB, free: 48.2 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08234/0.4191, allocations: 63.24 MB / 0.5039 GB, free: 0.8945 MB / 338.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2963/0.7154, allocations: 109 MB / 0.6103 GB, free: 10.65 MB / 434.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002205/0.7157, allocations: 83.94 kB / 0.6104 GB, free: 10.57 MB / 434.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2149 * Number of variables: 2149 Notification: Performance of Generate backend data structure: time 0.4746/1.19, allocations: 135.4 MB / 0.7426 GB, free: 106.4 MB / 0.5027 GB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/1.19, allocations: 11.39 kB / 0.7426 GB, free: 106.4 MB / 0.5027 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03324/1.224, allocations: 9.056 MB / 0.7514 GB, free: 105.9 MB / 0.5027 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01566/1.239, allocations: 7.738 MB / 0.759 GB, free: 104.6 MB / 0.5027 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001497/1.239, allocations: 198.8 kB / 0.7592 GB, free: 104.6 MB / 0.5027 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001205/1.241, allocations: 374.2 kB / 0.7595 GB, free: 104.6 MB / 0.5027 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0144/1.255, allocations: 10.06 MB / 0.7694 GB, free: 101.1 MB / 0.5027 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01902/1.274, allocations: 14.15 MB / 0.7832 GB, free: 93.91 MB / 0.5027 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002134/1.274, allocations: 84.61 kB / 0.7833 GB, free: 93.86 MB / 0.5027 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007244/1.275, allocations: 35.78 kB / 0.7833 GB, free: 93.86 MB / 0.5027 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002059/1.277, allocations: 1.562 MB / 0.7848 GB, free: 93.06 MB / 0.5027 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06081/1.338, allocations: 68.4 MB / 0.8516 GB, free: 24.75 MB / 0.5027 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006159/1.344, allocations: 6.769 MB / 0.8582 GB, free: 17.84 MB / 0.5027 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004675/1.349, allocations: 5.514 MB / 0.8636 GB, free: 12.32 MB / 0.5027 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02451/1.373, allocations: 18.84 MB / 0.882 GB, free: 9.133 MB / 0.5183 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.027e-05/1.373, allocations: 68.56 kB / 0.8821 GB, free: 9.055 MB / 0.5183 GB Notification: Performance of pre-optimization done (n=289): time 6.082e-06/1.373, allocations: 3.938 kB / 0.8821 GB, free: 9.055 MB / 0.5183 GB Notification: Performance of matching and sorting (n=363): time 0.224/1.597, allocations: 41.2 MB / 0.9223 GB, free: 185.1 MB / 0.5339 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.45e-05/1.598, allocations: 323.2 kB / 0.9226 GB, free: 184.8 MB / 0.5339 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005084/1.603, allocations: 4.277 MB / 0.9268 GB, free: 184.4 MB / 0.5339 GB Notification: Performance of collectPreVariables (initialization): time 0.0004523/1.603, allocations: 25.7 kB / 0.9268 GB, free: 184.4 MB / 0.5339 GB Notification: Performance of collectInitialEqns (initialization): time 0.001426/1.605, allocations: 3.832 MB / 0.9306 GB, free: 182.3 MB / 0.5339 GB Notification: Performance of collectInitialBindings (initialization): time 0.001058/1.606, allocations: 1.283 MB / 0.9318 GB, free: 181.5 MB / 0.5339 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004566/1.606, allocations: 0 / 0.9318 GB, free: 181.5 MB / 0.5339 GB Notification: Performance of setup shared object (initialization): time 0.0003123/1.606, allocations: 0.6569 MB / 0.9325 GB, free: 181.1 MB / 0.5339 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00509/1.612, allocations: 4.379 MB / 0.9368 GB, free: 181.1 MB / 0.5339 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006481/1.618, allocations: 8.763 MB / 0.9453 GB, free: 175.4 MB / 0.5339 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006802/1.625, allocations: 6.153 MB / 0.9513 GB, free: 173.4 MB / 0.5339 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.096e-05/1.625, allocations: 43.5 kB / 0.9514 GB, free: 173.4 MB / 0.5339 GB Notification: Performance of matching and sorting (n=1073) (initialization): time 0.02751/1.652, allocations: 16.09 MB / 0.9671 GB, free: 168.8 MB / 0.5339 GB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/1.652, allocations: 3.812 kB / 0.9671 GB, free: 168.8 MB / 0.5339 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001136/1.653, allocations: 155.3 kB / 0.9672 GB, free: 168.8 MB / 0.5339 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01336/1.666, allocations: 4.417 MB / 0.9715 GB, free: 168 MB / 0.5339 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00695/1.673, allocations: 1.899 MB / 0.9734 GB, free: 167.8 MB / 0.5339 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03153/1.704, allocations: 22.91 MB / 0.9958 GB, free: 155.7 MB / 0.5339 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006814/1.711, allocations: 341.7 kB / 0.9961 GB, free: 155.4 MB / 0.5339 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008359/1.712, allocations: 487.7 kB / 0.9966 GB, free: 155 MB / 0.5339 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 700 * Number of states: 0 () * Number of discrete variables: 59 (torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],bodyBox3.color[3],bodyBox3.color[2],bodyBox3.color[1],bodyBox3.body.sphereColor[3],bodyBox3.body.sphereColor[2],bodyBox3.body.sphereColor[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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],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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (970): * Single equations (assignments): 964 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 16,(14,42.9%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00115/1.713, allocations: 0.5 MB / 0.997 GB, free: 154.5 MB / 0.5339 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007338/1.714, allocations: 0.4937 MB / 0.9975 GB, free: 154 MB / 0.5339 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02159/1.736, allocations: 11.61 MB / 1.009 GB, free: 144.9 MB / 0.5339 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-05/1.736, allocations: 38.06 kB / 1.009 GB, free: 144.8 MB / 0.5339 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.742e-05/1.736, allocations: 16 kB / 1.009 GB, free: 144.8 MB / 0.5339 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.763e-05/1.736, allocations: 17.39 kB / 1.009 GB, free: 144.8 MB / 0.5339 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03319/1.769, allocations: 20.02 MB / 1.028 GB, free: 128.9 MB / 0.5339 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.635e-05/1.769, allocations: 9.438 kB / 1.028 GB, free: 128.9 MB / 0.5339 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003557/1.773, allocations: 0.5742 MB / 1.029 GB, free: 128.4 MB / 0.5339 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01365/1.786, allocations: 4.191 MB / 1.033 GB, free: 125.5 MB / 0.5339 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005419/1.787, allocations: 6.531 kB / 1.033 GB, free: 125.5 MB / 0.5339 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02905/1.816, allocations: 22.4 MB / 1.055 GB, free: 103.9 MB / 0.5339 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/1.816, allocations: 0 / 1.055 GB, free: 103.9 MB / 0.5339 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02668/1.843, allocations: 17.74 MB / 1.072 GB, free: 86.13 MB / 0.5339 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03212/1.875, allocations: 24.11 MB / 1.096 GB, free: 61.94 MB / 0.5339 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001123/1.876, allocations: 0.5027 MB / 1.096 GB, free: 61.41 MB / 0.5339 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009813/1.877, allocations: 8 kB / 1.096 GB, free: 61.41 MB / 0.5339 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003004/1.88, allocations: 179.7 kB / 1.097 GB, free: 61.23 MB / 0.5339 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000633/1.881, allocations: 174.1 kB / 1.097 GB, free: 61.06 MB / 0.5339 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000447/1.881, allocations: 91.98 kB / 1.097 GB, free: 60.97 MB / 0.5339 GB Notification: Performance of sort global known variables: time 0.00362/1.885, allocations: 2.936 MB / 1.1 GB, free: 58.05 MB / 0.5339 GB Notification: Performance of remove unused functions: time 0.006827/1.891, allocations: 1.569 MB / 1.101 GB, free: 56.49 MB / 0.5339 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (gearConstraint.actuatedRevolute_a.phi,gearConstraint.actuatedRevolute_a.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (273): * Single equations (assignments): 267 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(14,42.9%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000578/1.892, allocations: 165.2 kB / 1.101 GB, free: 56.33 MB / 0.5339 GB Notification: Performance of simCode: created initialization part: time 0.01514/1.907, allocations: 11.14 MB / 1.112 GB, free: 45.18 MB / 0.5339 GB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/1.907, allocations: 4 kB / 1.112 GB, free: 45.18 MB / 0.5339 GB Notification: Performance of simCode: created simulation system equations: time 0.008768/1.916, allocations: 5.274 MB / 1.117 GB, free: 39.88 MB / 0.5339 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002836/1.919, allocations: 0.5439 MB / 1.118 GB, free: 39.35 MB / 0.5339 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0223/1.941, allocations: 14.28 MB / 1.132 GB, free: 25 MB / 0.5339 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1422/2.083, allocations: 5.282 MB / 1.137 GB, free: 176.7 MB / 0.5339 GB Notification: Performance of SimCode: time 1.823e-06/2.083, allocations: 2.75 kB / 1.137 GB, free: 176.7 MB / 0.5339 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe 2>&1)