Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001128/0.001128, allocations: 189.5 kB / 7.803 MB, free: 2.488 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.28/1.28, allocations: 205.2 MB / 213.4 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009874/0.0009873, allocations: 87.39 kB / 261.4 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1943/0.1943, allocations: 43.5 MB / 352.9 MB, free: 1.953 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2171/0.4115, allocations: 64.96 MB / 417.8 MB, free: 40.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3107/0.7222, allocations: 58.85 MB / 476.7 MB, free: 5.199 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1546/0.8769, allocations: 107 MB / 0.57 GB, free: 7.848 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003502/0.8773, allocations: 87.94 kB / 0.5701 GB, free: 7.762 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: 2235 * Number of variables: 2235 Notification: Performance of Generate backend data structure: time 0.5783/1.456, allocations: 134.3 MB / 0.7013 GB, free: 97.56 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/1.456, allocations: 9 kB / 0.7013 GB, free: 97.56 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03765/1.493, allocations: 9.02 MB / 0.7101 GB, free: 92.54 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02595/1.519, allocations: 9.116 MB / 0.719 GB, free: 86.04 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005104/1.52, allocations: 208 kB / 0.7192 GB, free: 85.84 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003807/1.524, allocations: 387.8 kB / 0.7196 GB, free: 85.46 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01965/1.543, allocations: 10.4 MB / 0.7297 GB, free: 75.06 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03297/1.576, allocations: 14.59 MB / 0.744 GB, free: 59.25 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006435/1.577, allocations: 87.17 kB / 0.744 GB, free: 59.16 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003517/1.581, allocations: 39.91 kB / 0.7441 GB, free: 59.12 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002455/1.583, allocations: 1.63 MB / 0.7457 GB, free: 57.49 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09101/1.674, allocations: 69.89 MB / 0.8139 GB, free: 2.129 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009637/1.684, allocations: 6.954 MB / 0.8207 GB, free: 11.03 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008054/1.692, allocations: 5.678 MB / 0.8263 GB, free: 5.336 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.235/1.927, allocations: 19.48 MB / 0.8453 GB, free: 169.6 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.402e-05/1.927, allocations: 70.92 kB / 0.8454 GB, free: 169.5 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=310): time 5.691e-06/1.927, allocations: 2.844 kB / 0.8454 GB, free: 169.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=384): time 0.09312/2.02, allocations: 42.37 MB / 0.8867 GB, free: 159.2 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/2.02, allocations: 328.3 kB / 0.887 GB, free: 158.8 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007741/2.028, allocations: 4.406 MB / 0.8914 GB, free: 157.3 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001592/2.03, allocations: 29.61 kB / 0.8914 GB, free: 157.3 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002387/2.032, allocations: 3.962 MB / 0.8952 GB, free: 154.4 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002178/2.034, allocations: 1.349 MB / 0.8966 GB, free: 153.4 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006412/2.035, allocations: 1.969 kB / 0.8966 GB, free: 153.4 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004678/2.036, allocations: 0.666 MB / 0.8972 GB, free: 152.9 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006722/2.042, allocations: 4.551 MB / 0.9017 GB, free: 151.2 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008446/2.051, allocations: 9.082 MB / 0.9105 GB, free: 141.8 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008345/2.059, allocations: 6.385 MB / 0.9168 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.677e-05/2.059, allocations: 48 kB / 0.9168 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1117) (initialization): time 0.03261/2.092, allocations: 16.56 MB / 0.933 GB, free: 123.1 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.098e-05/2.092, allocations: 7.938 kB / 0.933 GB, free: 123.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002247/2.092, allocations: 160 kB / 0.9331 GB, free: 122.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01357/2.106, allocations: 4.43 MB / 0.9375 GB, free: 119.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008058/2.114, allocations: 1.988 MB / 0.9394 GB, free: 118.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03065/2.145, allocations: 22.89 MB / 0.9618 GB, free: 97.92 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009196/2.154, allocations: 352.1 kB / 0.9621 GB, free: 97.65 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002301/2.156, allocations: 0.4896 MB / 0.9626 GB, free: 97.18 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 723 * Number of states: 0 () * Number of discrete variables: 57 (torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],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 (1014): * Single equations (assignments): 1008 * 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.001749/2.158, allocations: 0.5181 MB / 0.9631 GB, free: 96.66 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001547/2.159, allocations: 0.513 MB / 0.9636 GB, free: 96.14 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02173/2.181, allocations: 11.97 MB / 0.9753 GB, free: 84.85 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.156e-05/2.181, allocations: 36 kB / 0.9753 GB, free: 84.82 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.486e-05/2.181, allocations: 16 kB / 0.9753 GB, free: 84.8 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.544e-05/2.181, allocations: 19.94 kB / 0.9753 GB, free: 84.78 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0387/2.22, allocations: 20.7 MB / 0.9955 GB, free: 64.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.253e-05/2.22, allocations: 4 kB / 0.9956 GB, free: 64.08 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004148/2.224, allocations: 0.6124 MB / 0.9962 GB, free: 63.47 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01371/2.238, allocations: 4.187 MB / 1 GB, free: 59.27 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001407/2.24, allocations: 11.98 kB / 1 GB, free: 59.25 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02959/2.269, allocations: 22.42 MB / 1.022 GB, free: 36.51 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/2.269, allocations: 4 kB / 1.022 GB, free: 36.5 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2374/2.507, allocations: 18.32 MB / 1.04 GB, free: 153.9 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03798/2.545, allocations: 24.95 MB / 1.064 GB, free: 151.4 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00393/2.549, allocations: 1.312 MB / 1.066 GB, free: 151 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002013/2.551, allocations: 4.5 kB / 1.066 GB, free: 151 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003956/2.555, allocations: 189.4 kB / 1.066 GB, free: 151 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006695/2.555, allocations: 184.4 kB / 1.066 GB, free: 151 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000396/2.556, allocations: 96.78 kB / 1.066 GB, free: 150.9 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.004318/2.56, allocations: 3.032 MB / 1.069 GB, free: 149.9 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01053/2.571, allocations: 1.609 MB / 1.071 GB, free: 149.9 MB / 0.4948 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 (295): * Single equations (assignments): 289 * 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.0009059/2.571, allocations: 156.1 kB / 1.071 GB, free: 149.8 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01919/2.591, allocations: 11.54 MB / 1.082 GB, free: 146 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/2.591, allocations: 2.312 kB / 1.082 GB, free: 146 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009861/2.601, allocations: 5.452 MB / 1.087 GB, free: 143.9 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005001/2.606, allocations: 0.5471 MB / 1.088 GB, free: 143.7 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04115/2.647, allocations: 14.79 MB / 1.102 GB, free: 138.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01098/2.658, allocations: 5.455 MB / 1.108 GB, free: 137.1 MB / 0.4948 GB Notification: Performance of SimCode: time 1.042e-06/2.658, allocations: 0 / 1.108 GB, free: 137.1 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe 2>&1)