Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.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.GearConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",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.001496/0.001497, allocations: 199.5 kB / 8.539 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 225.5 MB / 234.4 MB, free: 3.406 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009103/0.0009103, allocations: 92.48 kB / 286.3 MB, free: 5.164 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1726/0.1726, allocations: 45.14 MB / 383.3 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1859/0.3586, allocations: 69.37 MB / 452.7 MB, free: 76.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08037/0.4389, allocations: 63.24 MB / 0.5039 GB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2654/0.7043, allocations: 110 MB / 0.6113 GB, free: 9.133 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000226/0.7046, allocations: 86.53 kB / 0.6114 GB, free: 9.09 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: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.2787/0.9833, allocations: 108.2 MB / 0.7171 GB, free: 5.031 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.9834, allocations: 12 kB / 0.7171 GB, free: 5.02 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02787/1.011, allocations: 6.564 MB / 0.7235 GB, free: 14.44 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01467/1.026, allocations: 5.899 MB / 0.7292 GB, free: 8.477 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001692/1.026, allocations: 168 kB / 0.7294 GB, free: 8.312 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009769/1.027, allocations: 311.8 kB / 0.7297 GB, free: 8.008 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01157/1.039, allocations: 7.462 MB / 0.737 GB, free: 0.5391 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01527/1.054, allocations: 11.14 MB / 0.7479 GB, free: 4.258 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001825/1.054, allocations: 75.25 kB / 0.7479 GB, free: 4.184 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000561/1.055, allocations: 32 kB / 0.748 GB, free: 4.152 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001365/1.056, allocations: 1.14 MB / 0.7491 GB, free: 3.008 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1789/1.235, allocations: 55.81 MB / 0.8036 GB, free: 149.7 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003446/1.239, allocations: 3.429 MB / 0.8069 GB, free: 149.1 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002223/1.241, allocations: 2.399 MB / 0.8093 GB, free: 149 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009408/1.25, allocations: 7.561 MB / 0.8167 GB, free: 146.9 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.515e-05/1.25, allocations: 51 kB / 0.8167 GB, free: 146.9 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=171): time 4.118e-06/1.25, allocations: 0 / 0.8167 GB, free: 146.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=198): time 0.03288/1.283, allocations: 17.67 MB / 0.834 GB, free: 140.1 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.14e-05/1.283, allocations: 201.8 kB / 0.8342 GB, free: 139.9 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004266/1.288, allocations: 3.632 MB / 0.8377 GB, free: 138.6 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001781/1.288, allocations: 25.7 kB / 0.8377 GB, free: 138.6 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001178/1.289, allocations: 3.341 MB / 0.841 GB, free: 136.2 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005074/1.289, allocations: 0.7456 MB / 0.8417 GB, free: 135.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002254/1.29, allocations: 0 / 0.8417 GB, free: 135.7 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002506/1.29, allocations: 0.5777 MB / 0.8423 GB, free: 135.3 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00235/1.292, allocations: 2.023 MB / 0.8443 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003464/1.296, allocations: 5.968 MB / 0.8501 GB, free: 128.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003636/1.299, allocations: 3.485 MB / 0.8535 GB, free: 127.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.994e-05/1.299, allocations: 42.72 kB / 0.8535 GB, free: 127.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=847) (initialization): time 0.01183/1.311, allocations: 7.729 MB / 0.8611 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/1.311, allocations: 9.125 kB / 0.8611 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001385/1.312, allocations: 141.5 kB / 0.8612 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002652/1.314, allocations: 0.9131 MB / 0.8621 GB, free: 124.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004188/1.318, allocations: 1.47 MB / 0.8636 GB, free: 123.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007018/1.325, allocations: 6.872 MB / 0.8703 GB, free: 116.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004044/1.329, allocations: 197.9 kB / 0.8705 GB, free: 116.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004378/1.33, allocations: 398.4 kB / 0.8708 GB, free: 116.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 645 * Number of states: 0 () * Number of discrete variables: 47 (fixed.color[3],fixed.color[2],fixed.color[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],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[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],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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (785): * Single equations (assignments): 780 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005981/1.331, allocations: 476.5 kB / 0.8713 GB, free: 115.7 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004468/1.331, allocations: 383 kB / 0.8717 GB, free: 115.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005178/1.336, allocations: 3.078 MB / 0.8747 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-05/1.336, allocations: 16 kB / 0.8747 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/1.336, allocations: 8 kB / 0.8747 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.563e-05/1.336, allocations: 9.703 kB / 0.8747 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0119/1.348, allocations: 7.59 MB / 0.8821 GB, free: 106.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.704e-06/1.348, allocations: 0 / 0.8821 GB, free: 106.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001616/1.35, allocations: 292.8 kB / 0.8824 GB, free: 106.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002349/1.352, allocations: 0.6679 MB / 0.883 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000149/1.352, allocations: 8 kB / 0.883 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006528/1.359, allocations: 6.043 MB / 0.8889 GB, free: 100.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/1.359, allocations: 3.938 kB / 0.8889 GB, free: 100.2 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007377/1.366, allocations: 5.706 MB / 0.8945 GB, free: 95.07 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009011/1.375, allocations: 8.011 MB / 0.9023 GB, free: 87.86 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007464/1.376, allocations: 418.9 kB / 0.9027 GB, free: 87.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005377/1.377, allocations: 4 kB / 0.9027 GB, free: 87.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001499/1.378, allocations: 58.05 kB / 0.9028 GB, free: 87.39 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002334/1.378, allocations: 89.3 kB / 0.9029 GB, free: 87.34 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001556/1.379, allocations: 55.38 kB / 0.9029 GB, free: 87.29 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.003084/1.382, allocations: 2.471 MB / 0.9054 GB, free: 85.13 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005725/1.387, allocations: 0.9758 MB / 0.9063 GB, free: 84.16 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 143 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004051/1.388, allocations: 157 kB / 0.9065 GB, free: 84.02 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.006372/1.394, allocations: 5.044 MB / 0.9114 GB, free: 79.42 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/1.394, allocations: 0 / 0.9114 GB, free: 79.42 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002288/1.396, allocations: 1.694 MB / 0.913 GB, free: 77.87 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00221/1.399, allocations: 437.7 kB / 0.9135 GB, free: 77.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01443/1.413, allocations: 8.867 MB / 0.9221 GB, free: 69.54 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004601/1.418, allocations: 4.267 MB / 0.9263 GB, free: 66.27 MB / 0.5261 GB Notification: Performance of SimCode: time 6.11e-07/1.418, allocations: 4 kB / 0.9263 GB, free: 66.27 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1)