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.009905/0.009905, allocations: 165.6 kB / 15.11 MB, free: 5.973 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.179/1.179, allocations: 170.8 MB / 186.6 MB, free: 1.027 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.001437/0.001437, allocations: 107.3 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003084/0.0003083, allocations: 8 kB / 274.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2197/0.22, allocations: 38.77 MB / 312.9 MB, free: 38.84 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09933/0.3194, allocations: 71.06 MB / 384 MB, free: 3.449 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000284/0.3198, allocations: 75.95 kB / 384 MB, free: 3.375 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0296/0.3494, allocations: 9.942 MB / 394 MB, free: 9.418 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.878e-06/0.3495, allocations: 0 / 394 MB, free: 9.418 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.687e-05/0.3495, allocations: 8 kB / 394 MB, free: 9.41 MB / 298.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.001652/0.3512, allocations: 0.6198 MB / 394.6 MB, free: 8.742 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.322e-05/0.3512, allocations: 16.02 kB / 394.6 MB, free: 8.727 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004665/0.3517, allocations: 55.45 kB / 394.7 MB, free: 8.672 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006253/0.3524, allocations: 287 kB / 394.9 MB, free: 8.352 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001689/0.3526, allocations: 96 kB / 395 MB, free: 8.246 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.371e-05/0.3527, allocations: 39.84 kB / 395.1 MB, free: 8.207 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008596/0.3535, allocations: 404.9 kB / 395.5 MB, free: 7.801 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.062e-05/0.3536, allocations: 0 / 395.5 MB, free: 7.801 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.299e-05/0.3536, allocations: 16 kB / 395.5 MB, free: 7.785 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.54e-05/0.3536, allocations: 12 kB / 395.5 MB, free: 7.773 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001002/0.3546, allocations: 474.2 kB / 396 MB, free: 7.309 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00163/0.3563, allocations: 0.9072 MB / 396.9 MB, free: 6.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008293/0.3571, allocations: 384.4 kB / 397.2 MB, free: 5.957 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.269e-05/0.3572, allocations: 4.438 kB / 397.3 MB, free: 5.953 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.131e-05/0.3572, allocations: 38.98 kB / 397.3 MB, free: 5.906 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.205e-06/0.3572, allocations: 0 / 397.3 MB, free: 5.906 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.005135/0.3624, allocations: 2.156 MB / 399.4 MB, free: 3.641 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.255e-05/0.3625, allocations: 81.67 kB / 399.5 MB, free: 3.543 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003371/0.3628, allocations: 215.2 kB / 399.7 MB, free: 3.324 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.139e-05/0.3629, allocations: 37.7 kB / 399.8 MB, free: 3.281 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.363, allocations: 140.5 kB / 399.9 MB, free: 3.141 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001641/0.3632, allocations: 189.4 kB / 400.1 MB, free: 2.953 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.836e-05/0.3632, allocations: 8 kB / 400.1 MB, free: 2.945 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.3633, allocations: 338.8 kB / 400.4 MB, free: 2.605 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004465/0.3638, allocations: 197 kB / 400.6 MB, free: 2.41 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004793/0.3643, allocations: 240.6 kB / 400.9 MB, free: 2.168 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004308/0.3647, allocations: 186.2 kB / 401 MB, free: 1.988 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.3647, allocations: 4 kB / 401 MB, free: 1.984 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001249/0.366, allocations: 0.6173 MB / 401.7 MB, free: 1.355 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.366, allocations: 6.188 kB / 401.7 MB, free: 1.352 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.366, allocations: 0 / 401.7 MB, free: 1.352 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007921/0.3668, allocations: 251.5 kB / 401.9 MB, free: 1.105 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003292/0.3672, allocations: 71.89 kB / 402 MB, free: 1.035 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00407/0.3713, allocations: 2.749 MB / 404.7 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004384/0.3717, allocations: 35.97 kB / 404.8 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.678e-05/0.3719, allocations: 19.94 kB / 404.8 MB, free: 14.1 MB / 314.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 () * Number of clocked 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.0003614/0.3722, allocations: 167.3 kB / 405 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001283/0.3724, allocations: 31.62 kB / 405 MB, free: 13.9 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001447/0.3725, allocations: 55.3 kB / 405 MB, free: 13.85 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.3725, allocations: 4 kB / 405 MB, free: 13.84 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.3726, allocations: 0 / 405 MB, free: 13.84 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.3726, allocations: 3.984 kB / 405 MB, free: 13.84 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002539/0.3751, allocations: 1.256 MB / 406.3 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.3751, allocations: 0 / 406.3 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000361/0.3755, allocations: 71.88 kB / 406.4 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007509/0.3763, allocations: 220.8 kB / 406.6 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.95e-05/0.3763, allocations: 19.94 kB / 406.6 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004119/0.3805, allocations: 2.656 MB / 409.3 MB, free: 9.414 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3805, allocations: 4.031 kB / 409.3 MB, free: 9.41 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001939/0.3825, allocations: 0.9511 MB / 410.2 MB, free: 8.434 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002502/0.3827, allocations: 156.7 kB / 410.4 MB, free: 8.262 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001122/0.3829, allocations: 16.06 kB / 410.4 MB, free: 8.246 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003778/0.3832, allocations: 39.91 kB / 410.4 MB, free: 8.207 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001832/0.3834, allocations: 80.23 kB / 410.5 MB, free: 8.129 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.641e-05/0.3835, allocations: 19.98 kB / 410.5 MB, free: 8.109 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002289/0.3837, allocations: 173.6 kB / 410.7 MB, free: 7.941 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3837, allocations: 0 / 410.7 MB, free: 7.941 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007641/0.3845, allocations: 171.9 kB / 410.9 MB, free: 7.773 MB / 314.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) * Number of clocked states: 0 () * 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.0003522/0.3849, allocations: 139.2 kB / 411 MB, free: 7.629 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001635/0.3865, allocations: 0.6955 MB / 411.7 MB, free: 6.914 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.3865, allocations: 0 / 411.7 MB, free: 6.914 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000891/0.3874, allocations: 479.7 kB / 412.2 MB, free: 6.438 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003701/0.3878, allocations: 32.14 kB / 412.2 MB, free: 6.41 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001814/0.3896, allocations: 0.9333 MB / 413.1 MB, free: 5.449 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004656/0.3901, allocations: 0.8087 MB / 413.9 MB, free: 4.617 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002613/0.3904, allocations: 66.95 kB / 414 MB, free: 4.551 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001244/0.3905, allocations: 35.34 kB / 414 MB, free: 4.516 MB / 314.7 MB Notification: Performance of SimCode: time 4.61e-07/0.3905, allocations: 0 / 414 MB, free: 4.516 MB / 314.7 MB Notification: Performance of Templates: time 0.182/0.5726, allocations: 6.805 MB / 420.8 MB, free: 90.58 MB / 314.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)