Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001389/0.001388, allocations: 170.4 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.328/1.328, allocations: 170.6 MB / 183.8 MB, free: 11.43 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001582/0.001582, allocations: 102.8 kB / 223.2 MB, free: 4.051 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.304e-05/3.325e-05, allocations: 4 kB / 268.9 MB, free: 20.93 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07656/0.07661, allocations: 38.77 MB / 307.6 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.284/0.3606, allocations: 70.98 MB / 378.6 MB, free: 5.297 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002387/0.3609, allocations: 71.97 kB / 378.7 MB, free: 5.262 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0279/0.3888, allocations: 9.931 MB / 388.6 MB, free: 12.87 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3889, allocations: 0 / 388.6 MB, free: 12.87 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.572e-05/0.3889, allocations: 4 kB / 388.6 MB, free: 12.86 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001029/0.3899, allocations: 0.5939 MB / 389.2 MB, free: 12.25 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.39, allocations: 8.031 kB / 389.2 MB, free: 12.24 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002994/0.3903, allocations: 59.5 kB / 389.3 MB, free: 12.18 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003961/0.3907, allocations: 287.1 kB / 389.5 MB, free: 11.89 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001306/0.3908, allocations: 90.12 kB / 389.6 MB, free: 11.8 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.035e-05/0.3909, allocations: 38.08 kB / 389.7 MB, free: 11.77 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006053/0.3915, allocations: 383.4 kB / 390 MB, free: 11.49 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.3916, allocations: 0 / 390 MB, free: 11.49 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.042e-05/0.3916, allocations: 17.81 kB / 390.1 MB, free: 11.48 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.3916, allocations: 8 kB / 390.1 MB, free: 11.47 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006623/0.3923, allocations: 419.6 kB / 390.5 MB, free: 11.17 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001352/0.3937, allocations: 0.9002 MB / 391.4 MB, free: 10.41 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005929/0.3943, allocations: 356.4 kB / 391.7 MB, free: 10.16 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002813/0.3946, allocations: 196.5 kB / 391.9 MB, free: 10.04 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.507e-05/0.3946, allocations: 4.438 kB / 391.9 MB, free: 10.04 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.273e-05/0.3946, allocations: 42.81 kB / 392 MB, free: 9.992 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 1.673e-06/0.3947, allocations: 0 / 392 MB, free: 9.992 MB / 282.7 MB Notification: Performance of matching and sorting (n=55): time 0.002493/0.3972, allocations: 1.537 MB / 393.5 MB, free: 8.703 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.27e-05/0.3972, allocations: 89.67 kB / 393.6 MB, free: 8.598 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002282/0.3975, allocations: 213 kB / 393.8 MB, free: 8.414 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.609e-05/0.3975, allocations: 41.33 kB / 393.8 MB, free: 8.375 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.443e-05/0.3976, allocations: 132.5 kB / 394 MB, free: 8.262 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/0.3977, allocations: 184.3 kB / 394.1 MB, free: 8.105 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.399e-05/0.3978, allocations: 11.62 kB / 394.2 MB, free: 8.102 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.3979, allocations: 338.3 kB / 394.5 MB, free: 7.773 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002657/0.3982, allocations: 166.6 kB / 394.7 MB, free: 7.668 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002833/0.3985, allocations: 213.2 kB / 394.9 MB, free: 7.523 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002562/0.3988, allocations: 161.1 kB / 395 MB, free: 7.414 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.3988, allocations: 4 kB / 395 MB, free: 7.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.000851/0.3996, allocations: 0.5497 MB / 395.6 MB, free: 7.012 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.3997, allocations: 7.938 kB / 395.6 MB, free: 7.004 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.3997, allocations: 0 / 395.6 MB, free: 7.004 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006584/0.4003, allocations: 241.1 kB / 395.8 MB, free: 6.82 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003063/0.4007, allocations: 79.62 kB / 395.9 MB, free: 6.746 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003588/0.4043, allocations: 2.678 MB / 398.6 MB, free: 4.504 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003172/0.4046, allocations: 39.16 kB / 398.6 MB, free: 4.473 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.567e-05/0.4047, allocations: 27.3 kB / 398.6 MB, free: 4.449 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 25} Notification: Performance of prepare postOptimizeDAE: time 0.0001399/0.4048, allocations: 130.8 kB / 398.8 MB, free: 4.332 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.553e-05/0.4049, allocations: 31.62 kB / 398.8 MB, free: 4.301 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000112/0.405, allocations: 50.39 kB / 398.8 MB, free: 4.281 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.405, allocations: 4 kB / 398.8 MB, free: 4.277 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.405, allocations: 0 / 398.8 MB, free: 4.277 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.405, allocations: 3.984 kB / 398.9 MB, free: 4.273 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001757/0.4068, allocations: 1.193 MB / 400 MB, free: 3.328 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.4068, allocations: 4 kB / 400 MB, free: 3.324 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003269/0.4072, allocations: 71.61 kB / 400.1 MB, free: 3.258 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005704/0.4077, allocations: 227.1 kB / 400.3 MB, free: 3.082 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.587e-05/0.4078, allocations: 10.88 kB / 400.4 MB, free: 3.078 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003169/0.411, allocations: 2.578 MB / 402.9 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.411, allocations: 0 / 402.9 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001248/0.4122, allocations: 0.8713 MB / 403.8 MB, free: 252 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001967/0.4124, allocations: 150.9 kB / 403.9 MB, free: 100 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.393e-05/0.4125, allocations: 12.88 kB / 404 MB, free: 96 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003024/0.4128, allocations: 38.47 kB / 404 MB, free: 64 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002053/0.413, allocations: 78.41 kB / 404.1 MB, free: 15.99 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.182e-05/0.4131, allocations: 21.88 kB / 404.1 MB, free: 15.98 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001796/0.4133, allocations: 171.4 kB / 404.3 MB, free: 15.84 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.4133, allocations: 0 / 404.3 MB, free: 15.84 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006746/0.414, allocations: 164.9 kB / 404.4 MB, free: 15.7 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002634/0.4142, allocations: 142.3 kB / 404.6 MB, free: 15.56 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001042/0.4153, allocations: 0.635 MB / 405.2 MB, free: 15.07 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.4153, allocations: 0 / 405.2 MB, free: 15.07 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006109/0.4159, allocations: 442 kB / 405.6 MB, free: 14.73 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003106/0.4162, allocations: 39.27 kB / 405.7 MB, free: 14.71 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001173/0.4174, allocations: 0.6134 MB / 406.3 MB, free: 14.17 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004644/0.4179, allocations: 0.8049 MB / 407.1 MB, free: 13.34 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002352/0.4181, allocations: 62.94 kB / 407.1 MB, free: 13.28 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000129/0.4183, allocations: 46.91 kB / 407.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of SimCode: time 5.21e-07/0.4183, allocations: 0 / 407.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of Templates: time 0.01204/0.4303, allocations: 6.81 MB / 414 MB, free: 6.434 MB / 298.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1)