Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001527/0.001527, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002726/0.002726, allocations: 192.7 kB / 16.13 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.956/1.956, allocations: 205.1 MB / 222 MB, free: 4.73 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 47.94 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3653/0.3672, allocations: 46.62 MB / 324.7 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.01089/0.3782, allocations: 8.001 MB / 332.7 MB, free: 11.6 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005033/0.3832, allocations: 2.653 MB / 335.3 MB, free: 9.391 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00116/0.3844, allocations: 23.62 kB / 335.4 MB, free: 9.387 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001711/0.3862, allocations: 0.4959 MB / 335.9 MB, free: 8.949 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001431/0.3877, allocations: 397.2 kB / 336.2 MB, free: 8.559 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005086/0.3882, allocations: 235.7 kB / 336.5 MB, free: 8.328 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001423/0.3896, allocations: 1.381 MB / 337.9 MB, free: 6.941 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006768/0.3903, allocations: 0.5044 MB / 338.4 MB, free: 6.414 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006033/0.3909, allocations: 0.4938 MB / 338.9 MB, free: 5.918 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005436/0.3915, allocations: 0.5638 MB / 339.4 MB, free: 5.352 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000184/0.3917, allocations: 84 kB / 339.5 MB, free: 5.27 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002986/0.392, allocations: 123.9 kB / 339.6 MB, free: 5.148 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001756/0.3922, allocations: 234.9 kB / 339.8 MB, free: 4.918 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005279/0.3927, allocations: 0.6024 MB / 340.4 MB, free: 4.312 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001378/0.3941, allocations: 1.662 MB / 342.1 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3941, allocations: 0 / 342.1 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd: time 8.11e-07/0.3941, allocations: 0 / 342.1 MB, free: 2.645 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.334e-05/0.3941, allocations: 0 / 342.1 MB, free: 2.645 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.00241/0.3965, allocations: 1.445 MB / 343.6 MB, free: 1.145 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/0.3966, allocations: 12.03 kB / 343.6 MB, free: 1.133 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006856/0.3973, allocations: 191.3 kB / 343.8 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00116/0.3985, allocations: 0.73 MB / 344.5 MB, free: 176 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.831e-05/0.3985, allocations: 74 kB / 344.6 MB, free: 100 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001452/0.3987, allocations: 99.91 kB / 344.7 MB, free: 0 / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001575/0.4003, allocations: 0.9346 MB / 345.6 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.851e-05/0.4003, allocations: 0 / 345.6 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.088e-05/0.4004, allocations: 48 kB / 345.6 MB, free: 14.99 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.06e-05/0.4004, allocations: 24 kB / 345.7 MB, free: 14.97 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001173/0.4016, allocations: 0.6363 MB / 346.3 MB, free: 14.33 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004825/0.4064, allocations: 3.922 MB / 350.2 MB, free: 10.18 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006755/0.4071, allocations: 453.1 kB / 350.7 MB, free: 9.715 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005261/0.4077, allocations: 265.2 kB / 350.9 MB, free: 9.453 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.456e-05/0.4077, allocations: 4.328 kB / 350.9 MB, free: 9.449 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.214e-05/0.4078, allocations: 38.89 kB / 351 MB, free: 9.402 MB / 286.1 MB Notification: Performance of pre-optimization done (n=40): time 1.513e-06/0.4078, allocations: 0 / 351 MB, free: 9.402 MB / 286.1 MB Notification: Performance of matching and sorting (n=44): time 0.002553/0.4103, allocations: 1.399 MB / 352.4 MB, free: 7.926 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.176e-05/0.4104, allocations: 81.11 kB / 352.4 MB, free: 7.828 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001095/0.4115, allocations: 0.8214 MB / 353.3 MB, free: 6.992 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.031e-05/0.4115, allocations: 33.7 kB / 353.3 MB, free: 6.953 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004185/0.412, allocations: 0.5564 MB / 353.9 MB, free: 6.387 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001094/0.4121, allocations: 157.7 kB / 354 MB, free: 6.23 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001749/0.4123, allocations: 134.6 kB / 354.1 MB, free: 6.09 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.4124, allocations: 334 kB / 354.5 MB, free: 5.758 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000319/0.4127, allocations: 161.9 kB / 354.6 MB, free: 5.602 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005068/0.4132, allocations: 460 kB / 355.1 MB, free: 5.02 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008658/0.4141, allocations: 0.6622 MB / 355.7 MB, free: 4.223 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.4141, allocations: 0 / 355.7 MB, free: 4.223 MB / 286.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.00125/0.4154, allocations: 0.7704 MB / 356.5 MB, free: 3.441 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/0.4154, allocations: 8.625 kB / 356.5 MB, free: 3.434 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.281e-05/0.4154, allocations: 12 kB / 356.5 MB, free: 3.422 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002641/0.4157, allocations: 89.86 kB / 356.6 MB, free: 3.328 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004684/0.4162, allocations: 151.7 kB / 356.8 MB, free: 3.18 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002307/0.4185, allocations: 2.876 MB / 359.6 MB, free: 40 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005264/0.419, allocations: 35.98 kB / 359.7 MB, free: 4 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.744e-05/0.4191, allocations: 32.08 kB / 359.7 MB, free: 15.97 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003883/0.4195, allocations: 261.6 kB / 360 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001208/0.4196, allocations: 86.97 kB / 360 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008744/0.4205, allocations: 491.5 kB / 360.5 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.4205, allocations: 11.98 kB / 360.5 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.4205, allocations: 0 / 360.5 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.4205, allocations: 3.938 kB / 360.5 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002023/0.4226, allocations: 1.442 MB / 362 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.4226, allocations: 0 / 362 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002934/0.4229, allocations: 76.12 kB / 362.1 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001903/0.4231, allocations: 69.67 kB / 362.1 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.574e-05/0.4231, allocations: 8 kB / 362.1 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002124/0.4252, allocations: 2.856 MB / 365 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.4253, allocations: 4.031 kB / 365 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001156/0.4264, allocations: 0.7574 MB / 365.7 MB, free: 9.496 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002572/0.4267, allocations: 200 kB / 365.9 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.618e-05/0.4268, allocations: 11.94 kB / 366 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004017/0.4272, allocations: 27.98 kB / 366 MB, free: 9.242 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.134e-05/0.4273, allocations: 39.89 kB / 366 MB, free: 9.203 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.145e-05/0.4273, allocations: 11.94 kB / 366 MB, free: 9.191 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007752/0.4281, allocations: 0.5654 MB / 366.6 MB, free: 8.633 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4281, allocations: 0 / 366.6 MB, free: 8.633 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008496/0.429, allocations: 204 kB / 366.8 MB, free: 8.434 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002298/0.4292, allocations: 127.1 kB / 366.9 MB, free: 8.297 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001132/0.4304, allocations: 0.687 MB / 367.6 MB, free: 7.586 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4304, allocations: 0 / 367.6 MB, free: 7.586 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006282/0.431, allocations: 441.7 kB / 368 MB, free: 7.129 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.4321, allocations: 203.4 kB / 368.2 MB, free: 6.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003048/0.4352, allocations: 2.142 MB / 370.4 MB, free: 4.738 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000671/0.4359, allocations: 1.013 MB / 371.4 MB, free: 3.695 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004544/0.4363, allocations: 103.3 kB / 371.5 MB, free: 3.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001273/0.4365, allocations: 55.42 kB / 371.5 MB, free: 3.539 MB / 302.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4365, allocations: 0 / 371.5 MB, free: 3.539 MB / 302.1 MB Notification: Performance of Templates: time 0.02095/0.4574, allocations: 10.02 MB / 381.6 MB, free: 9.508 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1)