Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.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.GearConstraint2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",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.00187/0.00187, allocations: 191.4 kB / 7.802 MB, free: 2.5 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.509/1.509, allocations: 205.2 MB / 213.4 MB, free: 13.92 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.0009617/0.0009614, allocations: 87.16 kB / 261.4 MB, free: 13.56 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.187/0.187, allocations: 43.49 MB / 352.8 MB, free: 1.973 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2076/0.3947, allocations: 64.97 MB / 417.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.32/0.7146, allocations: 58.84 MB / 476.7 MB, free: 5.184 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1501/0.8648, allocations: 108.7 MB / 0.5717 GB, free: 6.16 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002469/0.8651, allocations: 87.88 kB / 0.5717 GB, free: 6.074 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: 5460 * Number of variables: 5460 Notification: Performance of Generate backend data structure: time 1.394/2.259, allocations: 290.1 MB / 0.8551 GB, free: 46.24 MB / 0.4949 GB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/2.259, allocations: 9.438 kB / 0.8551 GB, free: 46.24 MB / 0.4949 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07251/2.332, allocations: 16.87 MB / 0.8716 GB, free: 45.23 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04406/2.376, allocations: 15.04 MB / 0.8862 GB, free: 43.71 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00131/2.377, allocations: 478.8 kB / 0.8867 GB, free: 43.71 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0109/2.388, allocations: 0.8585 MB / 0.8875 GB, free: 43.69 MB / 0.4949 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05325/2.441, allocations: 24.86 MB / 0.9118 GB, free: 43.62 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09301/2.535, allocations: 33.61 MB / 0.9446 GB, free: 36.38 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001322/2.536, allocations: 135.7 kB / 0.9448 GB, free: 36.36 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009522/2.546, allocations: 62.38 kB / 0.9448 GB, free: 36.36 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006968/2.553, allocations: 3.963 MB / 0.9487 GB, free: 35.59 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4635/3.016, allocations: 138.1 MB / 1.084 GB, free: 71.45 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01612/3.032, allocations: 11.38 MB / 1.095 GB, free: 70.79 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0129/3.045, allocations: 9.971 MB / 1.104 GB, free: 70.73 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06976/3.115, allocations: 35.76 MB / 1.139 GB, free: 66.16 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001355/3.115, allocations: 104.6 kB / 1.139 GB, free: 66.11 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=747): time 2.431e-05/3.115, allocations: 3.938 kB / 1.139 GB, free: 66.11 MB / 0.5418 GB Notification: Performance of matching and sorting (n=819): time 0.1651/3.28, allocations: 69.18 MB / 1.207 GB, free: 40.75 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/3.28, allocations: 306.8 kB / 1.207 GB, free: 40.39 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02029/3.301, allocations: 8.831 MB / 1.216 GB, free: 32.68 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.0016/3.302, allocations: 29.7 kB / 1.216 GB, free: 32.64 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.005723/3.308, allocations: 9.276 MB / 1.225 GB, free: 24.34 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.004098/3.312, allocations: 2.88 MB / 1.228 GB, free: 21.74 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00324/3.316, allocations: 0 / 1.228 GB, free: 21.74 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0025/3.318, allocations: 1.146 MB / 1.229 GB, free: 20.82 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01356/3.332, allocations: 8.12 MB / 1.237 GB, free: 13.51 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2697/3.601, allocations: 18.36 MB / 1.255 GB, free: 108.9 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01767/3.619, allocations: 12.38 MB / 1.267 GB, free: 108.7 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003107/3.619, allocations: 106.8 kB / 1.267 GB, free: 108.7 MB / 0.5418 GB Notification: Performance of matching and sorting (n=2530) (initialization): time 0.05212/3.672, allocations: 26.27 MB / 1.293 GB, free: 107.5 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/3.672, allocations: 7.344 kB / 1.293 GB, free: 107.5 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005513/3.672, allocations: 358.1 kB / 1.293 GB, free: 107.5 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006924/3.679, allocations: 2.332 MB / 1.295 GB, free: 107.5 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01822/3.697, allocations: 4.392 MB / 1.3 GB, free: 107.1 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01683/3.714, allocations: 12.88 MB / 1.312 GB, free: 104.4 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01667/3.731, allocations: 0.6087 MB / 1.313 GB, free: 104.4 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004952/3.736, allocations: 1.063 MB / 1.314 GB, free: 104.4 MB / 0.5418 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1643 * Number of states: 0 () * Number of discrete variables: 93 (torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedFrame3.color_x[3],fixedFrame3.color_x[2],fixedFrame3.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],gc2.fixedTranslation2.color[3],gc2.fixedTranslation2.color[2],gc2.fixedTranslation2.color[1],gc2.fixedTranslation1.color[3],gc2.fixedTranslation1.color[2],gc2.fixedTranslation1.color[1],gc2.actuatedRevolute_b.cylinderColor[3],gc2.actuatedRevolute_b.cylinderColor[2],gc2.actuatedRevolute_b.cylinderColor[1],gc2.actuatedRevolute_a.cylinderColor[3],gc2.actuatedRevolute_a.cylinderColor[2],gc2.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],gc1.fixedTranslation2.color[3],gc1.fixedTranslation2.color[2],gc1.fixedTranslation2.color[1],gc1.fixedTranslation1.color[3],gc1.fixedTranslation1.color[2],gc1.fixedTranslation1.color[1],gc1.actuatedRevolute_b.cylinderColor[3],gc1.actuatedRevolute_b.cylinderColor[2],gc1.actuatedRevolute_b.cylinderColor[1],gc1.actuatedRevolute_a.cylinderColor[3],gc1.actuatedRevolute_a.cylinderColor[2],gc1.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2334): * Single equations (assignments): 2317 * Array equations: 15 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,77.8%) 36,(3,77.8%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006026/3.742, allocations: 1.018 MB / 1.315 GB, free: 103.9 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002399/3.744, allocations: 0.9874 MB / 1.316 GB, free: 103.9 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02578/3.77, allocations: 15.35 MB / 1.331 GB, free: 103.6 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002256/3.77, allocations: 143.2 kB / 1.331 GB, free: 103.6 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.493e-05/3.771, allocations: 15.23 kB / 1.331 GB, free: 103.6 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001385/3.771, allocations: 32.95 kB / 1.331 GB, free: 103.6 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06464/3.835, allocations: 31.41 MB / 1.362 GB, free: 97.45 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.922e-05/3.835, allocations: 1.438 kB / 1.362 GB, free: 97.45 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008131/3.844, allocations: 1.243 MB / 1.363 GB, free: 97.36 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006566/3.85, allocations: 1.718 MB / 1.364 GB, free: 96.99 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001726/3.852, allocations: 17.03 kB / 1.364 GB, free: 96.99 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01613/3.868, allocations: 11.68 MB / 1.376 GB, free: 90.99 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/3.868, allocations: 8.531 kB / 1.376 GB, free: 90.99 MB / 0.5418 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04555/3.914, allocations: 25.14 MB / 1.4 GB, free: 74.56 MB / 0.5418 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.3182/4.232, allocations: 36.09 MB / 1.436 GB, free: 109.8 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007834/4.24, allocations: 2.22 MB / 1.438 GB, free: 109.7 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003772/4.244, allocations: 0 / 1.438 GB, free: 109.7 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007435/4.251, allocations: 281.9 kB / 1.438 GB, free: 109.7 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001714/4.253, allocations: 339.3 kB / 1.438 GB, free: 109.7 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006959/4.254, allocations: 183 kB / 1.439 GB, free: 109.7 MB / 0.5418 GB Notification: Performance of sort global known variables: time 0.01329/4.267, allocations: 5.921 MB / 1.444 GB, free: 109.4 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.02256/4.289, allocations: 2.964 MB / 1.447 GB, free: 109.4 MB / 0.5418 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (gc1.actuatedRevolute_b.phi,gc1.actuatedRevolute_b.w,gc2.actuatedRevolute_b.phi,gc2.actuatedRevolute_b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (645): * Single equations (assignments): 628 * Array equations: 15 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 32,(1,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001803/4.291, allocations: 191.7 kB / 1.448 GB, free: 109.3 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.0331/4.324, allocations: 19.27 MB / 1.466 GB, free: 109 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 1.297e-05/4.324, allocations: 1.344 kB / 1.466 GB, free: 109 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.01341/4.338, allocations: 7.38 MB / 1.474 GB, free: 108.8 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007581/4.345, allocations: 0.9057 MB / 1.474 GB, free: 108.7 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08235/4.428, allocations: 29.52 MB / 1.503 GB, free: 104 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02466/4.453, allocations: 11.4 MB / 1.514 GB, free: 102.9 MB / 0.5418 GB Notification: Performance of SimCode: time 6.51e-07/4.453, allocations: 0 / 1.514 GB, free: 102.9 MB / 0.5418 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe 2>&1)