Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.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) 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(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001383/0.001383, allocations: 173.9 kB / 8.471 MB, free: 1.863 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.316/1.316, allocations: 205.2 MB / 214.1 MB, free: 1.887 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008731/0.0008728, allocations: 83.42 kB / 262.1 MB, free: 1.844 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2141/0.215, allocations: 52.97 MB / 315.1 MB, free: 22.96 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.329, allocations: 47.57 MB / 362.6 MB, free: 7.328 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2803/0.6093, allocations: 98.02 MB / 460.7 MB, free: 13.73 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001984/0.6095, allocations: 87.08 kB / 460.7 MB, free: 13.69 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1846 * Number of variables: 1846 Notification: Performance of Generate backend data structure: time 0.4477/1.057, allocations: 108.6 MB / 0.556 GB, free: 84.96 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/1.057, allocations: 10.19 kB / 0.5561 GB, free: 84.96 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02688/1.084, allocations: 6.569 MB / 0.5625 GB, free: 84.59 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01802/1.102, allocations: 6.897 MB / 0.5692 GB, free: 83.78 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002764/1.103, allocations: 175.7 kB / 0.5694 GB, free: 83.78 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002195/1.105, allocations: 327.5 kB / 0.5697 GB, free: 83.77 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01373/1.119, allocations: 7.8 MB / 0.5773 GB, free: 83.74 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02179/1.14, allocations: 11.56 MB / 0.5886 GB, free: 78.21 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004581/1.141, allocations: 80.05 kB / 0.5887 GB, free: 78.2 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001922/1.143, allocations: 34.69 kB / 0.5887 GB, free: 78.2 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001736/1.145, allocations: 1.21 MB / 0.5899 GB, free: 77.99 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06087/1.205, allocations: 57.3 MB / 0.6458 GB, free: 30.11 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004409/1.21, allocations: 3.599 MB / 0.6493 GB, free: 26.66 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00374/1.214, allocations: 2.563 MB / 0.6519 GB, free: 24.29 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01399/1.228, allocations: 7.989 MB / 0.6597 GB, free: 17.27 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.656e-05/1.228, allocations: 53 kB / 0.6597 GB, free: 17.21 MB / 410.7 MB Notification: Performance of pre-optimization done (n=192): time 4.468e-06/1.228, allocations: 0 / 0.6597 GB, free: 17.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=218): time 0.04025/1.268, allocations: 18.07 MB / 0.6773 GB, free: 15.6 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/1.268, allocations: 209.2 kB / 0.6775 GB, free: 15.36 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008479/1.277, allocations: 3.739 MB / 0.6812 GB, free: 11.6 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006008/1.277, allocations: 25.7 kB / 0.6812 GB, free: 11.57 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00318/1.281, allocations: 3.469 MB / 0.6846 GB, free: 8.047 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001295/1.282, allocations: 0.8019 MB / 0.6854 GB, free: 7.234 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006705/1.283, allocations: 0 / 0.6854 GB, free: 7.234 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006433/1.283, allocations: 0.5952 MB / 0.686 GB, free: 6.633 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003954/1.287, allocations: 2.184 MB / 0.6881 GB, free: 4.445 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1343/1.421, allocations: 6.268 MB / 0.6942 GB, free: 131.7 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005083/1.427, allocations: 3.704 MB / 0.6978 GB, free: 131.7 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.545e-05/1.427, allocations: 44.2 kB / 0.6979 GB, free: 131.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01467/1.441, allocations: 8.175 MB / 0.7059 GB, free: 131.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/1.441, allocations: 5.219 kB / 0.7059 GB, free: 131.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001467/1.442, allocations: 146.8 kB / 0.706 GB, free: 131.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002493/1.444, allocations: 0.9157 MB / 0.7069 GB, free: 131.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005681/1.45, allocations: 1.553 MB / 0.7084 GB, free: 131.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007723/1.458, allocations: 6.901 MB / 0.7152 GB, free: 128.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005142/1.463, allocations: 212.4 kB / 0.7154 GB, free: 128.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001291/1.464, allocations: 412.9 kB / 0.7158 GB, free: 128.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 668 * Number of states: 0 () * Number of discrete variables: 45 (fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],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 (828): * Single equations (assignments): 823 * 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.001686/1.466, allocations: 482 kB / 0.7162 GB, free: 128.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008807/1.467, allocations: 402.5 kB / 0.7166 GB, free: 128.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006355/1.473, allocations: 3.427 MB / 0.72 GB, free: 128.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.173e-05/1.473, allocations: 20.41 kB / 0.72 GB, free: 128.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.831e-05/1.473, allocations: 6.875 kB / 0.72 GB, free: 128.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.221e-05/1.473, allocations: 11.27 kB / 0.72 GB, free: 128.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01791/1.491, allocations: 8.211 MB / 0.728 GB, free: 127.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.772e-05/1.491, allocations: 0 / 0.728 GB, free: 127.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001842/1.493, allocations: 330.1 kB / 0.7283 GB, free: 127.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002314/1.495, allocations: 0.6681 MB / 0.729 GB, free: 127.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002797/1.496, allocations: 10.47 kB / 0.729 GB, free: 127.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006903/1.502, allocations: 6.044 MB / 0.7349 GB, free: 124.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/1.503, allocations: 0 / 0.7349 GB, free: 124.8 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009214/1.512, allocations: 6.254 MB / 0.741 GB, free: 122.4 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0104/1.522, allocations: 8.775 MB / 0.7496 GB, free: 118.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001741/1.524, allocations: 0.7048 MB / 0.7503 GB, free: 118.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009969/1.525, allocations: 0 / 0.7503 GB, free: 118.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002086/1.527, allocations: 58.27 kB / 0.7503 GB, free: 118.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002865/1.527, allocations: 97.05 kB / 0.7504 GB, free: 118.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001641/1.528, allocations: 59.69 kB / 0.7505 GB, free: 118.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.004874/1.532, allocations: 2.549 MB / 0.7529 GB, free: 117.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008276/1.541, allocations: 1.015 MB / 0.7539 GB, free: 117.1 MB / 426.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 (169): * Single equations (assignments): 164 * 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.0006757/1.541, allocations: 143.8 kB / 0.7541 GB, free: 117 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01003/1.552, allocations: 5.457 MB / 0.7594 GB, free: 115.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/1.552, allocations: 0 / 0.7594 GB, free: 115.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003055/1.555, allocations: 1.871 MB / 0.7612 GB, free: 114 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002778/1.557, allocations: 436.5 kB / 0.7617 GB, free: 113.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02116/1.579, allocations: 9.369 MB / 0.7708 GB, free: 105.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008519/1.587, allocations: 4.427 MB / 0.7751 GB, free: 102 MB / 426.7 MB Notification: Performance of SimCode: time 1.193e-06/1.587, allocations: 0 / 0.7751 GB, free: 102 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1)