Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001066/0.001065, allocations: 89.66 kB / 15.36 MB, free: 0.7383 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.007296/0.007297, allocations: 172.5 kB / 16.26 MB, free: 6.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.187/2.187, allocations: 205.4 MB / 222.4 MB, free: 5.57 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.000552/0.0005519, allocations: 12.42 kB / 279.5 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.3299, allocations: 47.58 MB / 327 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.009229/0.3391, allocations: 7.523 MB / 334.6 MB, free: 11.44 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006561/0.3458, allocations: 2.621 MB / 337.2 MB, free: 9.215 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001638/0.3474, allocations: 23.94 kB / 337.2 MB, free: 9.191 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00232/0.3498, allocations: 0.4902 MB / 337.7 MB, free: 8.699 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003131/0.3529, allocations: 409.1 kB / 338.1 MB, free: 8.297 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009328/0.3539, allocations: 219.8 kB / 338.3 MB, free: 8.082 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.00298/0.3569, allocations: 1.389 MB / 339.7 MB, free: 6.688 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009587/0.3579, allocations: 0.4928 MB / 340.2 MB, free: 6.172 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001087/0.359, allocations: 473.6 kB / 340.6 MB, free: 5.707 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007199/0.3597, allocations: 0.513 MB / 341.2 MB, free: 5.191 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001321/0.3599, allocations: 64 kB / 341.2 MB, free: 5.129 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003811/0.3602, allocations: 99.98 kB / 341.3 MB, free: 5.031 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001868/0.3604, allocations: 206.9 kB / 341.5 MB, free: 4.828 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006819/0.3611, allocations: 0.6001 MB / 342.1 MB, free: 4.219 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00205/0.3632, allocations: 1.607 MB / 343.7 MB, free: 2.605 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.929e-06/0.3632, allocations: 0 / 343.7 MB, free: 2.605 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.3632, allocations: 7.938 kB / 343.7 MB, free: 2.598 MB / 270.1 MB Notification: Performance of Transformations before backend: time 3.68e-05/0.3633, allocations: 0 / 343.7 MB, free: 2.598 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.003054/0.3663, allocations: 1.258 MB / 345 MB, free: 1.285 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.722e-05/0.3664, allocations: 8.031 kB / 345 MB, free: 1.277 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007482/0.3672, allocations: 187.4 kB / 345.2 MB, free: 1.094 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001393/0.3686, allocations: 0.7377 MB / 345.9 MB, free: 320 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.697e-05/0.3687, allocations: 74 kB / 346 MB, free: 244 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001653/0.3688, allocations: 96 kB / 346.1 MB, free: 148 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001932/0.3708, allocations: 0.9347 MB / 347 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.623e-05/0.3708, allocations: 11.89 kB / 347 MB, free: 15.17 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.823e-05/0.3709, allocations: 43.98 kB / 347.1 MB, free: 15.12 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.457e-05/0.3709, allocations: 24 kB / 347.1 MB, free: 15.1 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00131/0.3723, allocations: 0.6403 MB / 347.7 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006253/0.3785, allocations: 3.953 MB / 351.7 MB, free: 10.29 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007558/0.3793, allocations: 432.7 kB / 352.1 MB, free: 9.836 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005842/0.3799, allocations: 273.3 kB / 352.4 MB, free: 9.566 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.584e-05/0.38, allocations: 4.328 kB / 352.4 MB, free: 9.562 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.265e-05/0.38, allocations: 34.89 kB / 352.4 MB, free: 9.52 MB / 286.1 MB Notification: Performance of pre-optimization done (n=40): time 3.517e-06/0.38, allocations: 0 / 352.4 MB, free: 9.52 MB / 286.1 MB Notification: Performance of matching and sorting (n=44): time 0.003628/0.3837, allocations: 1.419 MB / 353.8 MB, free: 8.023 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.707e-05/0.3838, allocations: 85.11 kB / 353.9 MB, free: 7.922 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001368/0.3852, allocations: 0.8214 MB / 354.7 MB, free: 7.09 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.445e-05/0.3852, allocations: 37.64 kB / 354.8 MB, free: 7.047 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005603/0.3858, allocations: 0.5564 MB / 355.3 MB, free: 6.48 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001273/0.386, allocations: 165.7 kB / 355.5 MB, free: 6.316 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.803e-05/0.386, allocations: 61.69 kB / 355.6 MB, free: 6.25 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.3862, allocations: 334 kB / 355.9 MB, free: 5.918 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000342/0.3865, allocations: 165.9 kB / 356.1 MB, free: 5.754 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00054/0.3871, allocations: 472 kB / 356.5 MB, free: 5.16 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009455/0.3881, allocations: 0.6661 MB / 357.2 MB, free: 4.359 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.3881, allocations: 4 kB / 357.2 MB, free: 4.355 MB / 286.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001575/0.3897, allocations: 0.7784 MB / 358 MB, free: 3.566 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.471e-05/0.3897, allocations: 8 kB / 358 MB, free: 3.559 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.461e-05/0.3897, allocations: 12 kB / 358 MB, free: 3.547 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003826/0.3901, allocations: 93.81 kB / 358.1 MB, free: 3.449 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005509/0.3907, allocations: 155.7 kB / 358.2 MB, free: 3.297 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003148/0.3938, allocations: 2.872 MB / 361.1 MB, free: 164 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008492/0.3947, allocations: 39.89 kB / 361.1 MB, free: 124 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.511e-05/0.3948, allocations: 31.94 kB / 361.2 MB, free: 92 kB / 286.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.000637/0.3954, allocations: 269.7 kB / 361.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001501/0.3956, allocations: 86.97 kB / 361.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009866/0.3966, allocations: 0.4917 MB / 362 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.3966, allocations: 4 kB / 362 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.3966, allocations: 4 kB / 362 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.3966, allocations: 7.922 kB / 362 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002395/0.399, allocations: 1.45 MB / 363.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.405e-06/0.399, allocations: 4 kB / 363.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003212/0.3994, allocations: 72.12 kB / 363.5 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002233/0.3996, allocations: 73.67 kB / 363.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.671e-05/0.3996, allocations: 8 kB / 363.6 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002566/0.4022, allocations: 2.856 MB / 366.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.4022, allocations: 0 / 366.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001495/0.4037, allocations: 0.7848 MB / 367.3 MB, free: 9.559 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004974/0.4043, allocations: 196.1 kB / 367.5 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.4044, allocations: 19.94 kB / 367.5 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004613/0.4048, allocations: 35.97 kB / 367.5 MB, free: 9.293 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000146/0.405, allocations: 27.91 kB / 367.5 MB, free: 9.266 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.446e-05/0.405, allocations: 15.98 kB / 367.6 MB, free: 9.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009746/0.406, allocations: 0.5654 MB / 368.1 MB, free: 8.691 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.406, allocations: 0 / 368.1 MB, free: 8.691 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001103/0.4071, allocations: 208 kB / 368.3 MB, free: 8.488 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.000288/0.4074, allocations: 119.1 kB / 368.4 MB, free: 8.359 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001442/0.4089, allocations: 0.6973 MB / 369.1 MB, free: 7.637 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.4089, allocations: 0 / 369.1 MB, free: 7.637 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006795/0.4096, allocations: 447.1 kB / 369.6 MB, free: 7.176 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001388/0.411, allocations: 203.2 kB / 369.8 MB, free: 6.977 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003672/0.4147, allocations: 2.22 MB / 372 MB, free: 4.707 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008372/0.4155, allocations: 1.005 MB / 373 MB, free: 3.672 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005068/0.4161, allocations: 107.2 kB / 373.1 MB, free: 3.562 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001544/0.4162, allocations: 55.44 kB / 373.2 MB, free: 3.512 MB / 302.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4162, allocations: 4 kB / 373.2 MB, free: 3.508 MB / 302.1 MB Notification: Performance of Templates: time 0.02494/0.4412, allocations: 9.958 MB / 383.1 MB, free: 9.531 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1)