Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.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.Parts.Rotor1D.GearConstraint3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 182.3 kB / 8.52 MB, free: 1.832 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.155/1.155, allocations: 221.4 MB / 230.3 MB, free: 7.652 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.0009067/0.0009067, allocations: 94.78 kB / 281.2 MB, free: 5.445 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.1581/0.1581, allocations: 44.14 MB / 376.1 MB, free: 3.223 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1623/0.3204, allocations: 68.03 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08733/0.4077, allocations: 61.91 MB / 0.4942 GB, free: 1.539 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2519/0.6597, allocations: 108.1 MB / 0.5998 GB, free: 4.547 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002078/0.6599, allocations: 84.44 kB / 0.5998 GB, free: 4.469 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: 2149 * Number of variables: 2149 Notification: Performance of Generate backend data structure: time 0.4717/1.132, allocations: 131.6 MB / 0.7284 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.178e-05/1.132, allocations: 13.72 kB / 0.7284 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03191/1.164, allocations: 8.98 MB / 0.7372 GB, free: 100 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01713/1.181, allocations: 8.514 MB / 0.7455 GB, free: 99.03 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002047/1.181, allocations: 199.2 kB / 0.7457 GB, free: 99.03 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001782/1.183, allocations: 378.4 kB / 0.746 GB, free: 99.02 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01291/1.196, allocations: 10.06 MB / 0.7559 GB, free: 98.55 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01597/1.212, allocations: 14.16 MB / 0.7697 GB, free: 91.46 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001998/1.212, allocations: 89.97 kB / 0.7698 GB, free: 91.45 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007044/1.213, allocations: 36.78 kB / 0.7698 GB, free: 91.45 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002018/1.215, allocations: 1.562 MB / 0.7713 GB, free: 91.19 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06326/1.278, allocations: 68.41 MB / 0.8381 GB, free: 33.39 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006124/1.284, allocations: 6.757 MB / 0.8447 GB, free: 26.68 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004664/1.289, allocations: 5.511 MB / 0.8501 GB, free: 21.16 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02304/1.312, allocations: 18.85 MB / 0.8685 GB, free: 1.98 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.966e-05/1.312, allocations: 62.25 kB / 0.8686 GB, free: 1.91 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=289): time 5.2e-06/1.312, allocations: 0 / 0.8686 GB, free: 1.91 MB / 0.4948 GB Notification: Performance of matching and sorting (n=363): time 0.2198/1.532, allocations: 41.19 MB / 0.9088 GB, free: 179.5 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.316e-05/1.532, allocations: 319.7 kB / 0.9091 GB, free: 179.2 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004951/1.537, allocations: 4.281 MB / 0.9133 GB, free: 178.9 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004662/1.537, allocations: 25.7 kB / 0.9133 GB, free: 178.9 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0014/1.539, allocations: 3.835 MB / 0.9171 GB, free: 177.5 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009536/1.54, allocations: 1.28 MB / 0.9183 GB, free: 176.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004391/1.54, allocations: 0 / 0.9183 GB, free: 176.7 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002986/1.54, allocations: 0.6549 MB / 0.919 GB, free: 176.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00489/1.545, allocations: 4.385 MB / 0.9232 GB, free: 176.4 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006167/1.551, allocations: 8.76 MB / 0.9318 GB, free: 170.8 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006736/1.558, allocations: 6.159 MB / 0.9378 GB, free: 170.7 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.176e-05/1.558, allocations: 47.88 kB / 0.9379 GB, free: 170.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1073) (initialization): time 0.02695/1.585, allocations: 16.09 MB / 0.9536 GB, free: 167.2 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/1.585, allocations: 3.531 kB / 0.9536 GB, free: 167.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001021/1.585, allocations: 154.4 kB / 0.9537 GB, free: 167.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01295/1.598, allocations: 4.426 MB / 0.958 GB, free: 166.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006402/1.605, allocations: 1.9 MB / 0.9599 GB, free: 166.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0298/1.634, allocations: 22.9 MB / 0.9823 GB, free: 155.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006348/1.641, allocations: 343.9 kB / 0.9826 GB, free: 155.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001022/1.642, allocations: 489.7 kB / 0.983 GB, free: 155.3 MB / 0.5261 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.001368/1.643, allocations: 0.5049 MB / 0.9835 GB, free: 154.9 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009798/1.644, allocations: 0.4955 MB / 0.984 GB, free: 154.6 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02199/1.666, allocations: 11.61 MB / 0.9954 GB, free: 146.9 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.461e-05/1.666, allocations: 32 kB / 0.9954 GB, free: 146.9 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.654e-05/1.666, allocations: 19.94 kB / 0.9954 GB, free: 146.9 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-05/1.666, allocations: 15.75 kB / 0.9954 GB, free: 146.9 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03329/1.7, allocations: 20.03 MB / 1.015 GB, free: 130.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/1.7, allocations: 4 kB / 1.015 GB, free: 130.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00328/1.703, allocations: 0.5723 MB / 1.016 GB, free: 130.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01306/1.716, allocations: 4.19 MB / 1.02 GB, free: 127.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004141/1.716, allocations: 7.797 kB / 1.02 GB, free: 127.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02937/1.746, allocations: 22.4 MB / 1.042 GB, free: 108 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/1.746, allocations: 0 / 1.042 GB, free: 108 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02653/1.772, allocations: 17.73 MB / 1.059 GB, free: 90.84 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03152/1.804, allocations: 24.1 MB / 1.082 GB, free: 66.67 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001029/1.805, allocations: 0.5103 MB / 1.083 GB, free: 66.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001141/1.806, allocations: 3.984 kB / 1.083 GB, free: 66.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00316/1.809, allocations: 179.7 kB / 1.083 GB, free: 65.96 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005987/1.81, allocations: 170.2 kB / 1.083 GB, free: 65.79 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003763/1.81, allocations: 91.98 kB / 1.083 GB, free: 65.7 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.004028/1.814, allocations: 2.939 MB / 1.086 GB, free: 62.78 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006964/1.821, allocations: 1.564 MB / 1.088 GB, free: 61.22 MB / 0.5261 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.0006049/1.822, allocations: 160.7 kB / 1.088 GB, free: 61.06 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01525/1.837, allocations: 11.14 MB / 1.099 GB, free: 49.91 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/1.837, allocations: 0 / 1.099 GB, free: 49.91 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008536/1.846, allocations: 5.28 MB / 1.104 GB, free: 44.6 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002641/1.848, allocations: 0.5527 MB / 1.104 GB, free: 44.07 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02373/1.872, allocations: 14.27 MB / 1.118 GB, free: 29.73 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006966/1.879, allocations: 5.296 MB / 1.124 GB, free: 24.44 MB / 0.5261 GB Notification: Performance of SimCode: time 4.91e-07/1.879, allocations: 0 / 1.124 GB, free: 24.44 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe 2>&1)