Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.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) 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(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_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.001189/0.001189, allocations: 203.9 kB / 8.541 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.209/1.209, allocations: 225.5 MB / 234.4 MB, free: 3.469 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009279/0.0009279, allocations: 90.66 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1113/0.1122, allocations: 56.9 MB / 343.2 MB, free: 8.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09275/0.205, allocations: 51.47 MB / 394.7 MB, free: 5.16 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2887/0.4938, allocations: 99.32 MB / 494 MB, free: 10.35 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002346/0.4941, allocations: 86.95 kB / 494.1 MB, free: 10.3 MB / 362.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.4551/0.9491, allocations: 108 MB / 0.588 GB, free: 70.72 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.9492, allocations: 7.531 kB / 0.5881 GB, free: 70.72 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02799/0.9772, allocations: 6.566 MB / 0.5945 GB, free: 70.36 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01734/0.9946, allocations: 5.834 MB / 0.6002 GB, free: 69.64 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003165/0.995, allocations: 171.1 kB / 0.6003 GB, free: 69.64 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002776/0.9978, allocations: 313.2 kB / 0.6006 GB, free: 69.64 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01488/1.013, allocations: 7.457 MB / 0.6079 GB, free: 69.61 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02503/1.038, allocations: 11.13 MB / 0.6188 GB, free: 66.58 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004596/1.038, allocations: 74.28 kB / 0.6188 GB, free: 66.58 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002121/1.04, allocations: 36.19 kB / 0.6189 GB, free: 66.57 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001727/1.042, allocations: 1.139 MB / 0.62 GB, free: 66.57 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07208/1.114, allocations: 55.8 MB / 0.6745 GB, free: 25.77 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005121/1.119, allocations: 3.423 MB / 0.6778 GB, free: 23.95 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003613/1.123, allocations: 2.406 MB / 0.6802 GB, free: 22.88 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01526/1.138, allocations: 7.571 MB / 0.6876 GB, free: 18.62 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.355e-05/1.139, allocations: 46.16 kB / 0.6876 GB, free: 18.58 MB / 442.7 MB Notification: Performance of pre-optimization done (n=171): time 9.969e-06/1.139, allocations: 3.562 kB / 0.6876 GB, free: 18.58 MB / 442.7 MB Notification: Performance of matching and sorting (n=198): time 0.04391/1.182, allocations: 17.67 MB / 0.7049 GB, free: 10.93 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.727e-05/1.183, allocations: 201 kB / 0.7051 GB, free: 10.71 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008046/1.191, allocations: 3.626 MB / 0.7086 GB, free: 9.32 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004145/1.191, allocations: 25.7 kB / 0.7086 GB, free: 9.289 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002192/1.193, allocations: 3.342 MB / 0.7119 GB, free: 6.742 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001232/1.195, allocations: 0.7389 MB / 0.7126 GB, free: 6.199 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008252/1.195, allocations: 4 kB / 0.7126 GB, free: 6.195 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000426/1.196, allocations: 0.5826 MB / 0.7132 GB, free: 5.773 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0033/1.199, allocations: 2.022 MB / 0.7152 GB, free: 5.074 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005319/1.205, allocations: 5.972 MB / 0.721 GB, free: 14.84 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007235/1.212, allocations: 3.475 MB / 0.7244 GB, free: 12.84 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002127/1.212, allocations: 44 kB / 0.7244 GB, free: 12.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=847) (initialization): time 0.02004/1.232, allocations: 7.744 MB / 0.732 GB, free: 6.043 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.052e-05/1.232, allocations: 4 kB / 0.732 GB, free: 6.039 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002456/1.232, allocations: 140.1 kB / 0.7321 GB, free: 5.902 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003114/1.236, allocations: 0.9112 MB / 0.733 GB, free: 5.172 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006015/1.242, allocations: 1.474 MB / 0.7345 GB, free: 3.871 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1935/1.435, allocations: 6.956 MB / 0.7413 GB, free: 119.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004271/1.439, allocations: 195.9 kB / 0.7414 GB, free: 119.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006212/1.44, allocations: 399.3 kB / 0.7418 GB, free: 119.9 MB / 458.7 MB 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.0008298/1.441, allocations: 467 kB / 0.7423 GB, free: 119.8 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005997/1.442, allocations: 388.2 kB / 0.7426 GB, free: 119.8 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005185/1.447, allocations: 3.074 MB / 0.7456 GB, free: 119.7 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-05/1.447, allocations: 21.09 kB / 0.7457 GB, free: 119.7 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.335e-05/1.447, allocations: 6.188 kB / 0.7457 GB, free: 119.7 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.966e-05/1.447, allocations: 15.22 kB / 0.7457 GB, free: 119.7 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01317/1.46, allocations: 7.584 MB / 0.7531 GB, free: 119.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-05/1.46, allocations: 0 / 0.7531 GB, free: 119.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00165/1.462, allocations: 290.4 kB / 0.7534 GB, free: 119.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002342/1.464, allocations: 0.6633 MB / 0.754 GB, free: 119.2 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002132/1.464, allocations: 13.61 kB / 0.754 GB, free: 119.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006744/1.471, allocations: 6.042 MB / 0.7599 GB, free: 116.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/1.471, allocations: 0 / 0.7599 GB, free: 116.8 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007843/1.479, allocations: 5.705 MB / 0.7655 GB, free: 116.2 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009012/1.488, allocations: 8.005 MB / 0.7733 GB, free: 115.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000992/1.489, allocations: 419.6 kB / 0.7737 GB, free: 114.9 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000597/1.49, allocations: 1.875 kB / 0.7737 GB, free: 114.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00152/1.491, allocations: 52.75 kB / 0.7738 GB, free: 114.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002407/1.491, allocations: 86.75 kB / 0.7738 GB, free: 114.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001482/1.492, allocations: 53.33 kB / 0.7739 GB, free: 114.9 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.003582/1.495, allocations: 2.474 MB / 0.7763 GB, free: 114.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005759/1.501, allocations: 0.9767 MB / 0.7773 GB, free: 114.7 MB / 458.7 MB 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.0004807/1.502, allocations: 154.8 kB / 0.7774 GB, free: 114.7 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007018/1.509, allocations: 5.053 MB / 0.7824 GB, free: 113.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.84e-06/1.509, allocations: 2.156 kB / 0.7824 GB, free: 113.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002285/1.511, allocations: 1.694 MB / 0.784 GB, free: 112.8 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002274/1.513, allocations: 442.7 kB / 0.7844 GB, free: 112.7 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01454/1.528, allocations: 8.87 MB / 0.7931 GB, free: 109.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005617/1.533, allocations: 4.258 MB / 0.7973 GB, free: 108.2 MB / 458.7 MB Notification: Performance of SimCode: time 8.52e-07/1.533, allocations: 0 / 0.7973 GB, free: 108.2 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1)