Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.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.GearConstraint2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 177.2 kB / 8.516 MB, free: 1.852 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.185/1.185, allocations: 221.4 MB / 230.3 MB, free: 7.754 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.000949/0.000949, allocations: 80.73 kB / 281.2 MB, free: 5.512 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.1599/0.1599, allocations: 44.15 MB / 376.1 MB, free: 3.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1678/0.3277, allocations: 68.03 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08696/0.4147, allocations: 61.91 MB / 0.4942 GB, free: 1.516 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2566/0.6713, allocations: 109.8 MB / 0.6014 GB, free: 2.824 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002049/0.6716, allocations: 88.44 kB / 0.6015 GB, free: 2.742 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: 5288 * Number of variables: 5288 Notification: Performance of Generate backend data structure: time 0.8123/1.484, allocations: 285 MB / 0.8798 GB, free: 11.41 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/1.484, allocations: 11.94 kB / 0.8798 GB, free: 11.39 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3378/1.822, allocations: 16.78 MB / 0.8962 GB, free: 98.92 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03054/1.852, allocations: 14.2 MB / 0.9101 GB, free: 98.35 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005371/1.853, allocations: 462.1 kB / 0.9105 GB, free: 98.35 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005485/1.858, allocations: 0.8372 MB / 0.9113 GB, free: 98.34 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.036/1.894, allocations: 24.18 MB / 0.935 GB, free: 98.27 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05181/1.946, allocations: 32.73 MB / 0.9669 GB, free: 92.21 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004491/1.947, allocations: 130.8 kB / 0.967 GB, free: 92.2 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002715/1.95, allocations: 59.97 kB / 0.9671 GB, free: 92.2 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003404/1.953, allocations: 3.838 MB / 0.9708 GB, free: 91.58 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3128/2.266, allocations: 135 MB / 1.103 GB, free: 51.66 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01224/2.278, allocations: 10.99 MB / 1.113 GB, free: 51.01 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01085/2.289, allocations: 9.652 MB / 1.123 GB, free: 50.95 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04797/2.337, allocations: 34.6 MB / 1.157 GB, free: 46.44 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.29e-05/2.337, allocations: 101.8 kB / 1.157 GB, free: 46.39 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=705): time 9.317e-06/2.337, allocations: 0 / 1.157 GB, free: 46.39 MB / 0.5262 GB Notification: Performance of matching and sorting (n=776): time 0.1213/2.458, allocations: 65.5 MB / 1.221 GB, free: 26.57 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.386e-05/2.458, allocations: 300.2 kB / 1.221 GB, free: 26.22 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01085/2.469, allocations: 8.624 MB / 1.229 GB, free: 18.74 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.001055/2.47, allocations: 25.7 kB / 1.229 GB, free: 18.71 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.004102/2.474, allocations: 9.007 MB / 1.238 GB, free: 10.64 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.003159/2.478, allocations: 2.751 MB / 1.241 GB, free: 8.164 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008852/2.479, allocations: 0 / 1.241 GB, free: 8.164 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.00107/2.48, allocations: 1.114 MB / 1.242 GB, free: 7.27 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01119/2.491, allocations: 7.777 MB / 1.25 GB, free: 272 kB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04982/2.541, allocations: 20.46 MB / 1.27 GB, free: 1.898 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01716/2.558, allocations: 11.94 MB / 1.281 GB, free: 8.293 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001755/2.558, allocations: 103.9 kB / 1.281 GB, free: 8.191 MB / 0.5574 GB Notification: Performance of matching and sorting (n=2441) (initialization): time 0.04777/2.606, allocations: 25.46 MB / 1.306 GB, free: 3.312 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/2.606, allocations: 8 kB / 1.306 GB, free: 3.305 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004467/2.606, allocations: 348 kB / 1.307 GB, free: 2.965 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007102/2.613, allocations: 2.312 MB / 1.309 GB, free: 1.133 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.176/2.79, allocations: 4.234 MB / 1.313 GB, free: 134 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.016/2.806, allocations: 12.84 MB / 1.325 GB, free: 131.5 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01334/2.819, allocations: 0.587 MB / 1.326 GB, free: 131.5 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002883/2.822, allocations: 1.028 MB / 1.327 GB, free: 131.5 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1597 * Number of states: 0 () * Number of discrete variables: 97 (torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[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],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 (2245): * Single equations (assignments): 2228 * 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.002619/2.824, allocations: 0.9918 MB / 1.328 GB, free: 131.4 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001619/2.826, allocations: 0.9605 MB / 1.329 GB, free: 131.4 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02206/2.848, allocations: 14.61 MB / 1.343 GB, free: 131 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001805/2.848, allocations: 137.8 kB / 1.343 GB, free: 131 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.305e-05/2.848, allocations: 11.75 kB / 1.343 GB, free: 131 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.216e-05/2.848, allocations: 35.36 kB / 1.343 GB, free: 131 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04767/2.896, allocations: 30.05 MB / 1.373 GB, free: 129.9 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-05/2.896, allocations: 0 / 1.373 GB, free: 129.9 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006467/2.903, allocations: 1.161 MB / 1.374 GB, free: 129.9 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006003/2.909, allocations: 1.718 MB / 1.376 GB, free: 129.9 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008362/2.91, allocations: 11.67 kB / 1.376 GB, free: 129.9 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01444/2.924, allocations: 11.7 MB / 1.387 GB, free: 127.3 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/2.924, allocations: 6 kB / 1.387 GB, free: 127.3 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02947/2.954, allocations: 23.95 MB / 1.41 GB, free: 119.4 MB / 0.573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03926/2.993, allocations: 33.66 MB / 1.443 GB, free: 105.8 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00226/2.995, allocations: 0.9234 MB / 1.444 GB, free: 104.9 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002058/2.997, allocations: 0 / 1.444 GB, free: 104.9 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004718/3.002, allocations: 266 kB / 1.444 GB, free: 104.8 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009072/3.003, allocations: 315.8 kB / 1.445 GB, free: 104.6 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005809/3.003, allocations: 174.2 kB / 1.445 GB, free: 104.4 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.007906/3.011, allocations: 5.774 MB / 1.451 GB, free: 99.44 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01436/3.026, allocations: 2.854 MB / 1.453 GB, free: 96.59 MB / 0.573 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 (600): * Single equations (assignments): 583 * 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.0008286/3.027, allocations: 193.5 kB / 1.453 GB, free: 96.47 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02347/3.05, allocations: 18.43 MB / 1.471 GB, free: 80.45 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/3.05, allocations: 0 / 1.471 GB, free: 80.45 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.009127/3.059, allocations: 7.02 MB / 1.478 GB, free: 74.05 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004563/3.064, allocations: 0.9126 MB / 1.479 GB, free: 73.27 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04802/3.112, allocations: 28.46 MB / 1.507 GB, free: 47.82 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1786/3.29, allocations: 11.07 MB / 1.518 GB, free: 135.6 MB / 0.573 GB Notification: Performance of SimCode: time 9.52e-07/3.291, allocations: 0 / 1.518 GB, free: 135.6 MB / 0.573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe 2>&1)