Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.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) 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(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009228/0.0009262, allocations: 184.3 kB / 8.138 MB, free: 2.223 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.08/1.08, allocations: 221.4 MB / 229.9 MB, free: 3.078 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.0008739/0.000874, allocations: 99.94 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09314/0.09404, allocations: 55.82 MB / 336.6 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1825/0.2765, allocations: 50.39 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09678/0.3733, allocations: 98.67 MB / 485.7 MB, free: 4.074 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002122/0.3736, allocations: 92.69 kB / 485.8 MB, free: 3.984 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.3642/0.7378, allocations: 105.8 MB / 0.5777 GB, free: 30.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.7378, allocations: 8 kB / 0.5777 GB, free: 30.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02364/0.7615, allocations: 6.524 MB / 0.5841 GB, free: 24.22 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01437/0.7759, allocations: 6.488 MB / 0.5904 GB, free: 17.67 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002253/0.7761, allocations: 172 kB / 0.5906 GB, free: 17.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001872/0.778, allocations: 311.8 kB / 0.5909 GB, free: 17.2 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01152/0.7895, allocations: 7.462 MB / 0.5982 GB, free: 9.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01628/0.8059, allocations: 11.14 MB / 0.6091 GB, free: 13.45 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001908/0.8061, allocations: 75.25 kB / 0.6091 GB, free: 13.38 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006225/0.8067, allocations: 32 kB / 0.6092 GB, free: 13.34 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001328/0.808, allocations: 1.14 MB / 0.6103 GB, free: 12.2 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1745/0.9825, allocations: 55.79 MB / 0.6648 GB, free: 88.44 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0032/0.9858, allocations: 3.423 MB / 0.6681 GB, free: 87.79 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002132/0.9879, allocations: 2.405 MB / 0.6705 GB, free: 87.76 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00891/0.9968, allocations: 7.563 MB / 0.6778 GB, free: 85.89 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/0.9969, allocations: 54 kB / 0.6779 GB, free: 85.85 MB / 426.7 MB Notification: Performance of pre-optimization done (n=171): time 4.048e-06/0.9969, allocations: 0 / 0.6779 GB, free: 85.85 MB / 426.7 MB Notification: Performance of matching and sorting (n=198): time 0.02977/1.027, allocations: 17.68 MB / 0.6952 GB, free: 82.64 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.539e-05/1.027, allocations: 199.1 kB / 0.6953 GB, free: 82.42 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004539/1.031, allocations: 3.627 MB / 0.6989 GB, free: 82.04 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002133/1.032, allocations: 25.7 kB / 0.6989 GB, free: 82.01 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001525/1.033, allocations: 3.34 MB / 0.7022 GB, free: 80.03 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005827/1.034, allocations: 0.744 MB / 0.7029 GB, free: 79.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002076/1.034, allocations: 0 / 0.7029 GB, free: 79.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002523/1.034, allocations: 0.5773 MB / 0.7035 GB, free: 79.28 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002116/1.036, allocations: 2.026 MB / 0.7054 GB, free: 79.27 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003543/1.04, allocations: 5.971 MB / 0.7113 GB, free: 74.12 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003552/1.043, allocations: 3.486 MB / 0.7147 GB, free: 74.09 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.161e-05/1.043, allocations: 43.72 kB / 0.7147 GB, free: 74.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=847) (initialization): time 0.01046/1.054, allocations: 7.729 MB / 0.7223 GB, free: 72.37 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/1.054, allocations: 4.531 kB / 0.7223 GB, free: 72.37 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001705/1.054, allocations: 141.7 kB / 0.7224 GB, free: 72.37 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002506/1.057, allocations: 0.9089 MB / 0.7233 GB, free: 72.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004405/1.061, allocations: 1.478 MB / 0.7247 GB, free: 72.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007204/1.068, allocations: 6.871 MB / 0.7314 GB, free: 67.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004511/1.073, allocations: 205.8 kB / 0.7316 GB, free: 67.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007819/1.074, allocations: 396.8 kB / 0.732 GB, free: 67.66 MB / 426.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.0009245/1.075, allocations: 468.8 kB / 0.7325 GB, free: 67.28 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005364/1.075, allocations: 384 kB / 0.7328 GB, free: 67.07 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004805/1.08, allocations: 3.084 MB / 0.7358 GB, free: 66 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.834e-05/1.08, allocations: 17.59 kB / 0.7359 GB, free: 66 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.293e-05/1.08, allocations: 8.969 kB / 0.7359 GB, free: 66 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.48e-05/1.08, allocations: 7.547 kB / 0.7359 GB, free: 66 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01159/1.092, allocations: 7.573 MB / 0.7433 GB, free: 62.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.398e-06/1.092, allocations: 3.062 kB / 0.7433 GB, free: 62.03 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001381/1.093, allocations: 291.2 kB / 0.7436 GB, free: 61.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002038/1.095, allocations: 0.6645 MB / 0.7442 GB, free: 61.32 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001352/1.095, allocations: 4 kB / 0.7442 GB, free: 61.31 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005658/1.101, allocations: 6.05 MB / 0.7501 GB, free: 55.63 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/1.101, allocations: 4 kB / 0.7501 GB, free: 55.63 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006459/1.107, allocations: 5.709 MB / 0.7557 GB, free: 50.54 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008403/1.116, allocations: 8.014 MB / 0.7635 GB, free: 43.34 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008973/1.117, allocations: 422.5 kB / 0.7639 GB, free: 42.91 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000463/1.117, allocations: 0 / 0.7639 GB, free: 42.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00132/1.118, allocations: 46.11 kB / 0.764 GB, free: 42.88 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002195/1.119, allocations: 95.66 kB / 0.7641 GB, free: 42.83 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001216/1.119, allocations: 51.47 kB / 0.7641 GB, free: 42.79 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003134/1.122, allocations: 2.477 MB / 0.7665 GB, free: 40.62 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004975/1.127, allocations: 0.9654 MB / 0.7675 GB, free: 39.66 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 (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.000346/1.127, allocations: 155.4 kB / 0.7676 GB, free: 39.51 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006068/1.133, allocations: 5.045 MB / 0.7725 GB, free: 34.94 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/1.133, allocations: 0.5938 kB / 0.7725 GB, free: 34.94 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002089/1.136, allocations: 1.693 MB / 0.7742 GB, free: 33.39 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002046/1.138, allocations: 455.8 kB / 0.7746 GB, free: 33.02 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01475/1.152, allocations: 8.861 MB / 0.7833 GB, free: 25.14 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004398/1.157, allocations: 4.255 MB / 0.7874 GB, free: 21.89 MB / 426.7 MB Notification: Performance of SimCode: time 1.202e-06/1.157, allocations: 0 / 0.7874 GB, free: 21.89 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1)