Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1") translateModel(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008589/0.008589, allocations: 95.98 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 222.9 MB / 239.4 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00151/0.00151, allocations: 188.5 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06157/0.06157, allocations: 8.79 MB / 348.6 MB, free: 4.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 95.83 kB / 464 MB, free: 13.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08667/0.08817, allocations: 51.55 MB / 0.5035 GB, free: 9.551 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1): time 0.01574/0.1039, allocations: 15.93 MB / 0.519 GB, free: 9.543 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00856/0.1125, allocations: 5.294 MB / 0.5242 GB, free: 4.234 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002005/0.1146, allocations: 95.69 kB / 0.5243 GB, free: 4.141 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002844/0.1174, allocations: 1.219 MB / 0.5255 GB, free: 2.91 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/Templates/SMEE_ShortCircuit.mo:18:3-19:30:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.003732/0.1212, allocations: 1.53 MB / 0.527 GB, free: 1.371 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002048/0.1233, allocations: 0.9854 MB / 0.5279 GB, free: 396 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2205/0.3438, allocations: 4.587 MB / 0.5324 GB, free: 6.094 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004631/0.3485, allocations: 3.483 MB / 0.5358 GB, free: 5.504 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00344/0.3519, allocations: 2.041 MB / 0.5378 GB, free: 5.246 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004502/0.3565, allocations: 2.327 MB / 0.5401 GB, free: 4.828 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001402/0.3579, allocations: 0.5641 MB / 0.5406 GB, free: 4.824 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002282/0.3602, allocations: 0.7695 MB / 0.5414 GB, free: 4.824 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001176/0.3614, allocations: 1.237 MB / 0.5426 GB, free: 4.676 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003854/0.3652, allocations: 2.375 MB / 0.5449 GB, free: 4.094 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01187/0.3771, allocations: 7.339 MB / 0.5521 GB, free: 3.102 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.261e-06/0.3772, allocations: 1.031 kB / 0.5521 GB, free: 3.102 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3772, allocations: 0 / 0.5521 GB, free: 3.102 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002196/0.3774, allocations: 0 / 0.5521 GB, free: 3.102 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 962 * Number of variables: 962 Notification: Performance of Generate backend data structure: time 0.01625/0.3937, allocations: 4.927 MB / 0.5569 GB, free: 68 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/0.3937, allocations: 13.78 kB / 0.5569 GB, free: 64 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006324/0.4001, allocations: 0.9608 MB / 0.5578 GB, free: 15.6 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007137/0.4072, allocations: 2.755 MB / 0.5605 GB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002538/0.4075, allocations: 282.3 kB / 0.5608 GB, free: 13.6 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001251/0.4088, allocations: 363.8 kB / 0.5611 GB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009475/0.4183, allocations: 4.674 MB / 0.5657 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.26e-05/0.4184, allocations: 7.938 kB / 0.5657 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003528/0.4188, allocations: 155.2 kB / 0.5659 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001152/0.4189, allocations: 154.2 kB / 0.566 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006541/0.4254, allocations: 3.898 MB / 0.5698 GB, free: 7.809 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02518/0.4506, allocations: 15.19 MB / 0.5847 GB, free: 8.488 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00619/0.4569, allocations: 5.949 MB / 0.5905 GB, free: 1.789 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002227/0.4591, allocations: 1.272 MB / 0.5917 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007221/0.4664, allocations: 4.126 MB / 0.5957 GB, free: 12.24 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.113e-05/0.4664, allocations: 43.56 kB / 0.5958 GB, free: 12.19 MB / 414.1 MB Notification: Performance of pre-optimization done (n=118): time 5.019e-06/0.4664, allocations: 4 kB / 0.5958 GB, free: 12.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=144): time 0.01235/0.4788, allocations: 5.307 MB / 0.601 GB, free: 6.836 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.059e-05/0.4789, allocations: 68.72 kB / 0.601 GB, free: 6.754 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003596/0.4825, allocations: 2.149 MB / 0.6031 GB, free: 4.574 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001395/0.4826, allocations: 53.69 kB / 0.6032 GB, free: 4.516 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001362/0.484, allocations: 1.775 MB / 0.6049 GB, free: 2.734 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005264/0.4846, allocations: 0.5253 MB / 0.6054 GB, free: 2.215 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006556/0.4852, allocations: 416 kB / 0.6058 GB, free: 1.801 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.952e-05/0.4853, allocations: 305.1 kB / 0.6061 GB, free: 1.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001251/0.4866, allocations: 0.7657 MB / 0.6069 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001718/0.4883, allocations: 1.537 MB / 0.6084 GB, free: 14.84 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01392/0.5022, allocations: 4.735 MB / 0.613 GB, free: 9.852 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.523e-05/0.5023, allocations: 8 kB / 0.613 GB, free: 9.844 MB / 430.1 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.005049/0.5074, allocations: 2.797 MB / 0.6157 GB, free: 7.191 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.167e-05/0.5074, allocations: 19.94 kB / 0.6157 GB, free: 7.172 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.982e-05/0.5074, allocations: 28.59 kB / 0.6158 GB, free: 7.145 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008033/0.5083, allocations: 273.5 kB / 0.616 GB, free: 6.871 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001748/0.51, allocations: 0.4889 MB / 0.6165 GB, free: 6.418 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004113/0.5141, allocations: 3.379 MB / 0.6198 GB, free: 2.93 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001949/0.5161, allocations: 99.86 kB / 0.6199 GB, free: 2.832 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001713/0.5163, allocations: 104 kB / 0.62 GB, free: 2.73 MB / 430.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: smee.is[2] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 114 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (261): * Single equations (assignments): 259 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00208/0.5184, allocations: 1.091 MB / 0.6211 GB, free: 1.668 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003785/0.5188, allocations: 238.4 kB / 0.6213 GB, free: 1.434 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003188/0.522, allocations: 1.776 MB / 0.623 GB, free: 15.65 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.319e-05/0.522, allocations: 16 kB / 0.623 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.522, allocations: 0 / 0.623 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.577e-05/0.522, allocations: 11.97 kB / 0.6231 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008187/0.5302, allocations: 4.981 MB / 0.6279 GB, free: 10.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.5303, allocations: 4.031 kB / 0.6279 GB, free: 10.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001184/0.5314, allocations: 261.6 kB / 0.6282 GB, free: 10.35 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006597/0.5321, allocations: 207.3 kB / 0.6284 GB, free: 10.15 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.884e-05/0.5322, allocations: 39.98 kB / 0.6284 GB, free: 10.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003772/0.536, allocations: 3.254 MB / 0.6316 GB, free: 6.734 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.536, allocations: 4.031 kB / 0.6316 GB, free: 6.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004506/0.5405, allocations: 2.668 MB / 0.6342 GB, free: 4.023 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001076/0.5416, allocations: 471.1 kB / 0.6346 GB, free: 3.547 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000321/0.542, allocations: 35.97 kB / 0.6347 GB, free: 3.512 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001022/0.543, allocations: 59.97 kB / 0.6347 GB, free: 3.453 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002229/0.5432, allocations: 101.1 kB / 0.6348 GB, free: 3.355 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.497e-05/0.5433, allocations: 39.98 kB / 0.6349 GB, free: 3.316 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002428/0.5457, allocations: 1.443 MB / 0.6363 GB, free: 1.855 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.5458, allocations: 0 / 0.6363 GB, free: 1.855 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002464/0.5482, allocations: 0.6288 MB / 0.6369 GB, free: 1.227 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smee.phiMechanical,smee.stator.zeroInductor.i0,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003136/0.5485, allocations: 164.2 kB / 0.6371 GB, free: 1.074 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003666/0.5522, allocations: 2.166 MB / 0.6392 GB, free: 14.96 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.5522, allocations: 0 / 0.6392 GB, free: 14.96 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001463/0.5537, allocations: 0.946 MB / 0.6401 GB, free: 14.03 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002564/0.5563, allocations: 0.5792 MB / 0.6407 GB, free: 13.45 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009864/0.5662, allocations: 6.069 MB / 0.6466 GB, free: 7.34 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002149/0.5684, allocations: 2.419 MB / 0.6489 GB, free: 4.887 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001713/0.5701, allocations: 0.4996 MB / 0.6494 GB, free: 4.383 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004168/0.5705, allocations: 159.4 kB / 0.6496 GB, free: 4.23 MB / 462.1 MB Notification: Performance of SimCode: time 8.02e-07/0.5705, allocations: 0 / 0.6496 GB, free: 4.23 MB / 462.1 MB Notification: Performance of Templates: time 0.04999/0.6205, allocations: 29.05 MB / 0.678 GB, free: 7.551 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe 2>&1)