Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.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.BevelGear1D,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",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.001073/0.001073, allocations: 208.7 kB / 8.541 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.257/1.257, allocations: 225.5 MB / 234.4 MB, free: 3.473 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008565/0.0008565, allocations: 95.86 kB / 286.3 MB, free: 5.145 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1147/0.1155, allocations: 56.9 MB / 343.2 MB, free: 8.691 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.2208, allocations: 51.47 MB / 394.7 MB, free: 5.16 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2776/0.4985, allocations: 102.6 MB / 497.3 MB, free: 6.812 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002311/0.4988, allocations: 91.23 kB / 497.4 MB, free: 6.77 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: 1750 * Number of variables: 1750 Notification: Performance of Generate backend data structure: time 0.5046/1.003, allocations: 101.1 MB / 0.5845 GB, free: 55.04 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/1.003, allocations: 7.188 kB / 0.5845 GB, free: 55.04 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01829/1.022, allocations: 4.104 MB / 0.5885 GB, free: 54.71 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01267/1.034, allocations: 4.605 MB / 0.593 GB, free: 54.07 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002386/1.035, allocations: 161.7 kB / 0.5932 GB, free: 54.07 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002549/1.037, allocations: 296.4 kB / 0.5935 GB, free: 54.07 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01518/1.052, allocations: 7.845 MB / 0.6011 GB, free: 54.04 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02516/1.078, allocations: 11.54 MB / 0.6124 GB, free: 51.16 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003982/1.078, allocations: 63.38 kB / 0.6125 GB, free: 51.15 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002088/1.08, allocations: 34.56 kB / 0.6125 GB, free: 51.15 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001849/1.082, allocations: 1.149 MB / 0.6136 GB, free: 51.14 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07651/1.159, allocations: 54.62 MB / 0.667 GB, free: 35.11 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006907/1.166, allocations: 4.874 MB / 0.6717 GB, free: 32.9 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004929/1.171, allocations: 3.552 MB / 0.6752 GB, free: 31.51 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01988/1.19, allocations: 9.874 MB / 0.6848 GB, free: 26.47 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.354e-05/1.191, allocations: 60.27 kB / 0.6849 GB, free: 26.41 MB / 458.7 MB Notification: Performance of pre-optimization done (n=208): time 7.264e-06/1.191, allocations: 0 / 0.6849 GB, free: 26.41 MB / 458.7 MB Notification: Performance of matching and sorting (n=247): time 0.06126/1.252, allocations: 25.72 MB / 0.71 GB, free: 16.86 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.682e-05/1.252, allocations: 203 kB / 0.7102 GB, free: 16.64 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005105/1.257, allocations: 3.363 MB / 0.7135 GB, free: 14.4 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005834/1.258, allocations: 25.7 kB / 0.7135 GB, free: 14.37 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001489/1.259, allocations: 3.251 MB / 0.7167 GB, free: 11.44 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009689/1.26, allocations: 0.9131 MB / 0.7176 GB, free: 10.62 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003464/1.261, allocations: 0 / 0.7176 GB, free: 10.62 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003425/1.261, allocations: 0.5971 MB / 0.7182 GB, free: 10.1 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003871/1.265, allocations: 3.406 MB / 0.7215 GB, free: 7.094 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0061/1.271, allocations: 7.364 MB / 0.7287 GB, free: 14.25 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007359/1.278, allocations: 4.955 MB / 0.7335 GB, free: 10.02 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.571e-05/1.278, allocations: 44 kB / 0.7336 GB, free: 9.98 MB / 474.7 MB Notification: Performance of matching and sorting (n=900) (initialization): time 0.02244/1.301, allocations: 11.82 MB / 0.7451 GB, free: 48 kB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/1.301, allocations: 4.219 kB / 0.7451 GB, free: 44 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007306/1.302, allocations: 195.1 kB / 0.7453 GB, free: 0 / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1592/1.461, allocations: 2.198 MB / 0.7474 GB, free: 138 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00635/1.467, allocations: 1.637 MB / 0.749 GB, free: 138 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0165/1.484, allocations: 13.92 MB / 0.7626 GB, free: 134.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006657/1.49, allocations: 265.5 kB / 0.7629 GB, free: 134.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001453/1.492, allocations: 445.7 kB / 0.7633 GB, free: 134.4 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 643 * Number of states: 0 () * Number of discrete variables: 36 (sensor2.torqueColor[3],sensor2.torqueColor[2],sensor2.torqueColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],inertia2.cylinderColor[3],inertia2.cylinderColor[2],inertia2.cylinderColor[1],inertia1.cylinderColor[3],inertia1.cylinderColor[2],inertia1.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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (827): * Single equations (assignments): 821 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 15,(4,100.0%) 21,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001184/1.493, allocations: 455.1 kB / 0.7637 GB, free: 134.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008011/1.494, allocations: 373.1 kB / 0.7641 GB, free: 134.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01197/1.506, allocations: 7.424 MB / 0.7714 GB, free: 134.1 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.177e-05/1.506, allocations: 27.56 kB / 0.7714 GB, free: 134.1 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.033e-05/1.506, allocations: 11.62 kB / 0.7714 GB, free: 134.1 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.923e-05/1.506, allocations: 11.58 kB / 0.7714 GB, free: 134.1 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02551/1.532, allocations: 13.64 MB / 0.7847 GB, free: 133.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-05/1.532, allocations: 3.875 kB / 0.7847 GB, free: 133.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002586/1.534, allocations: 399.4 kB / 0.7851 GB, free: 133.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005709/1.54, allocations: 1.93 MB / 0.787 GB, free: 133.3 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005615/1.541, allocations: 7.828 kB / 0.787 GB, free: 133.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01525/1.556, allocations: 12.82 MB / 0.7995 GB, free: 126.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.882e-06/1.556, allocations: 0 / 0.7995 GB, free: 126.7 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02265/1.579, allocations: 11.84 MB / 0.8111 GB, free: 122.3 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02384/1.602, allocations: 16.42 MB / 0.8271 GB, free: 115.7 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001122/1.604, allocations: 409.3 kB / 0.8275 GB, free: 115.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001006/1.605, allocations: 3.25 kB / 0.8275 GB, free: 115.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002374/1.607, allocations: 112.5 kB / 0.8276 GB, free: 115.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004386/1.607, allocations: 116 kB / 0.8277 GB, free: 115.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003065/1.608, allocations: 61.67 kB / 0.8278 GB, free: 115.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.003553/1.611, allocations: 2.27 MB / 0.83 GB, free: 114.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007339/1.619, allocations: 1.201 MB / 0.8312 GB, free: 114.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.phi,inertia1.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (190): * Single equations (assignments): 184 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(4,100.0%) 18,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006527/1.619, allocations: 170.9 kB / 0.8313 GB, free: 114.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01226/1.632, allocations: 8.357 MB / 0.8395 GB, free: 111.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/1.632, allocations: 3.375 kB / 0.8395 GB, free: 111.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005285/1.637, allocations: 3.528 MB / 0.8429 GB, free: 110.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002528/1.639, allocations: 360.7 kB / 0.8433 GB, free: 110.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02059/1.66, allocations: 10.18 MB / 0.8532 GB, free: 103.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005398/1.666, allocations: 4.176 MB / 0.8573 GB, free: 100.3 MB / 474.7 MB Notification: Performance of SimCode: time 1.152e-06/1.666, allocations: 0 / 0.8573 GB, free: 100.3 MB / 474.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1)