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.005699/0.005699, allocations: 102 kB / 15.73 MB, free: 6.035 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.348/1.348, allocations: 222.9 MB / 239.4 MB, free: 4.531 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.001301/0.001301, allocations: 188.5 kB / 289.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03374/0.03374, allocations: 8.792 MB / 348.6 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 79.88 kB / 464 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1019, allocations: 51.57 MB / 0.5035 GB, free: 9.379 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1): time 0.01733/0.1193, allocations: 15.92 MB / 0.519 GB, free: 9.379 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00973/0.1291, allocations: 5.294 MB / 0.5242 GB, free: 4.07 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002475/0.1316, allocations: 95.69 kB / 0.5243 GB, free: 3.977 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003183/0.1348, allocations: 1.215 MB / 0.5255 GB, free: 2.75 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.004672/0.1395, allocations: 1.526 MB / 0.527 GB, free: 1.215 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002302/0.1418, allocations: 0.9855 MB / 0.5279 GB, free: 236 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2382/0.38, allocations: 4.586 MB / 0.5324 GB, free: 6.191 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004502/0.3846, allocations: 3.489 MB / 0.5358 GB, free: 5.594 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003806/0.3884, allocations: 2.056 MB / 0.5378 GB, free: 5.328 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00453/0.393, allocations: 2.333 MB / 0.5401 GB, free: 4.906 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001447/0.3944, allocations: 0.5607 MB / 0.5406 GB, free: 4.906 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002447/0.3969, allocations: 0.7666 MB / 0.5414 GB, free: 4.906 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001231/0.3981, allocations: 1.239 MB / 0.5426 GB, free: 4.758 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004284/0.4024, allocations: 2.375 MB / 0.5449 GB, free: 4.176 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01054/0.413, allocations: 7.313 MB / 0.5521 GB, free: 3.215 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.306e-06/0.413, allocations: 4.875 kB / 0.5521 GB, free: 3.211 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.413, allocations: 0 / 0.5521 GB, free: 3.211 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002713/0.4133, allocations: 0 / 0.5521 GB, free: 3.211 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.01534/0.4287, allocations: 4.833 MB / 0.5568 GB, free: 276 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.4287, allocations: 11.22 kB / 0.5568 GB, free: 276 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005414/0.4341, allocations: 0.9357 MB / 0.5577 GB, free: 15.83 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006679/0.4408, allocations: 2.749 MB / 0.5604 GB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001908/0.4411, allocations: 274 kB / 0.5607 GB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007487/0.4418, allocations: 364.8 kB / 0.561 GB, free: 13.72 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008474/0.4503, allocations: 4.677 MB / 0.5656 GB, free: 10.97 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.548e-05/0.4504, allocations: 0 / 0.5656 GB, free: 10.97 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003496/0.4508, allocations: 151.9 kB / 0.5657 GB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000122/0.4509, allocations: 157.5 kB / 0.5659 GB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006532/0.4574, allocations: 3.898 MB / 0.5697 GB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02495/0.4824, allocations: 15.15 MB / 0.5845 GB, free: 8.672 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005536/0.488, allocations: 5.946 MB / 0.5903 GB, free: 1.969 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002074/0.4901, allocations: 1.272 MB / 0.5915 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006666/0.4967, allocations: 4.123 MB / 0.5955 GB, free: 12.42 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.282e-05/0.4968, allocations: 43.56 kB / 0.5956 GB, free: 12.37 MB / 414.1 MB Notification: Performance of pre-optimization done (n=118): time 2.755e-06/0.4968, allocations: 0 / 0.5956 GB, free: 12.37 MB / 414.1 MB Notification: Performance of matching and sorting (n=144): time 0.01295/0.5098, allocations: 5.256 MB / 0.6007 GB, free: 7.066 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.673e-05/0.5098, allocations: 64.72 kB / 0.6008 GB, free: 6.988 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003784/0.5136, allocations: 2.149 MB / 0.6029 GB, free: 4.805 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001801/0.5138, allocations: 53.7 kB / 0.6029 GB, free: 4.746 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001494/0.5153, allocations: 1.73 MB / 0.6046 GB, free: 3.004 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004396/0.5158, allocations: 0.4962 MB / 0.6051 GB, free: 2.512 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006139/0.5164, allocations: 411.7 kB / 0.6055 GB, free: 2.102 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.121e-05/0.5165, allocations: 305.1 kB / 0.6058 GB, free: 1.801 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001204/0.5177, allocations: 0.7652 MB / 0.6065 GB, free: 1.035 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001738/0.5195, allocations: 1.545 MB / 0.608 GB, free: 15.14 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01399/0.5335, allocations: 4.728 MB / 0.6127 GB, free: 10.16 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.596e-05/0.5335, allocations: 4 kB / 0.6127 GB, free: 10.16 MB / 430.1 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.005432/0.539, allocations: 2.793 MB / 0.6154 GB, free: 7.508 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.765e-05/0.539, allocations: 16.06 kB / 0.6154 GB, free: 7.492 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.603e-05/0.5391, allocations: 28 kB / 0.6154 GB, free: 7.465 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007917/0.5399, allocations: 273.5 kB / 0.6157 GB, free: 7.191 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00178/0.5417, allocations: 0.4895 MB / 0.6162 GB, free: 6.738 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004197/0.5459, allocations: 3.377 MB / 0.6195 GB, free: 3.25 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002118/0.5481, allocations: 99.94 kB / 0.6196 GB, free: 3.152 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002446/0.5483, allocations: 104 kB / 0.6197 GB, free: 3.051 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.002568/0.5509, allocations: 1.089 MB / 0.6207 GB, free: 1.988 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006426/0.5516, allocations: 233.1 kB / 0.6209 GB, free: 1.762 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003302/0.5549, allocations: 1.769 MB / 0.6227 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.217e-05/0.5549, allocations: 15.94 kB / 0.6227 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-05/0.5549, allocations: 4 kB / 0.6227 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/0.5549, allocations: 7.922 kB / 0.6227 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008151/0.5631, allocations: 4.977 MB / 0.6276 GB, free: 10.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/0.5631, allocations: 4 kB / 0.6276 GB, free: 10.93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001134/0.5643, allocations: 253.5 kB / 0.6278 GB, free: 10.69 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006012/0.5649, allocations: 223 kB / 0.628 GB, free: 10.47 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.868e-05/0.565, allocations: 32 kB / 0.6281 GB, free: 10.44 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003604/0.5686, allocations: 3.251 MB / 0.6312 GB, free: 7.07 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.5686, allocations: 3.469 kB / 0.6312 GB, free: 7.07 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004129/0.5727, allocations: 2.662 MB / 0.6338 GB, free: 4.367 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009809/0.5737, allocations: 450.3 kB / 0.6343 GB, free: 3.906 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000251/0.574, allocations: 32 kB / 0.6343 GB, free: 3.875 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009501/0.575, allocations: 63.95 kB / 0.6344 GB, free: 3.812 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001903/0.5752, allocations: 96.88 kB / 0.6344 GB, free: 3.723 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.193e-05/0.5753, allocations: 39.98 kB / 0.6345 GB, free: 3.684 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002196/0.5775, allocations: 1.447 MB / 0.6359 GB, free: 2.219 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5775, allocations: 0 / 0.6359 GB, free: 2.219 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00215/0.5796, allocations: 0.6328 MB / 0.6365 GB, free: 1.586 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.0002844/0.5799, allocations: 160.2 kB / 0.6367 GB, free: 1.438 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003328/0.5833, allocations: 2.161 MB / 0.6388 GB, free: 15.31 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.5833, allocations: 0 / 0.6388 GB, free: 15.31 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001428/0.5847, allocations: 0.9544 MB / 0.6397 GB, free: 14.34 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00229/0.587, allocations: 0.5842 MB / 0.6403 GB, free: 13.76 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009947/0.597, allocations: 5.951 MB / 0.6461 GB, free: 7.754 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002135/0.5991, allocations: 2.415 MB / 0.6484 GB, free: 5.305 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00165/0.6008, allocations: 0.5035 MB / 0.6489 GB, free: 4.797 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003943/0.6012, allocations: 147.4 kB / 0.6491 GB, free: 4.656 MB / 462.1 MB Notification: Performance of SimCode: time 6.22e-07/0.6012, allocations: 0 / 0.6491 GB, free: 4.656 MB / 462.1 MB Notification: Performance of Templates: time 0.05184/0.6531, allocations: 29.07 MB / 0.6775 GB, free: 7.953 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)