Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.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_ShortCircuit2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2") translateModel(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006868/0.006868, allocations: 102.1 kB / 15.73 MB, free: 6.477 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.438/1.438, allocations: 222.9 MB / 239.4 MB, free: 4.523 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.001612/0.001612, allocations: 191.8 kB / 289.7 MB, free: 2.254 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03499/0.03499, allocations: 8.788 MB / 348.6 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 79.88 kB / 464 MB, free: 12.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09299/0.09449, allocations: 51.55 MB / 0.5035 GB, free: 9.402 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.01682/0.1114, allocations: 15.93 MB / 0.519 GB, free: 9.398 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01159/0.123, allocations: 5.294 MB / 0.5242 GB, free: 4.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003285/0.1263, allocations: 99.62 kB / 0.5243 GB, free: 3.992 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003609/0.13, allocations: 1.219 MB / 0.5255 GB, free: 2.762 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.005007/0.135, allocations: 1.522 MB / 0.527 GB, free: 1.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002283/0.1373, allocations: 0.9798 MB / 0.5279 GB, free: 260 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2086/0.346, allocations: 4.594 MB / 0.5324 GB, free: 6.172 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004305/0.3503, allocations: 3.488 MB / 0.5358 GB, free: 5.582 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003132/0.3535, allocations: 2.06 MB / 0.5378 GB, free: 5.316 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003514/0.357, allocations: 2.326 MB / 0.5401 GB, free: 4.898 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001131/0.3582, allocations: 0.5598 MB / 0.5406 GB, free: 4.898 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001988/0.3602, allocations: 0.7734 MB / 0.5414 GB, free: 4.898 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001121/0.3613, allocations: 1.24 MB / 0.5426 GB, free: 4.746 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003638/0.365, allocations: 2.376 MB / 0.5449 GB, free: 4.164 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008821/0.3738, allocations: 7.322 MB / 0.5521 GB, free: 3.176 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.3738, allocations: 0 / 0.5521 GB, free: 3.176 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.3739, allocations: 0 / 0.5521 GB, free: 3.176 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002404/0.3741, allocations: 1.469 kB / 0.5521 GB, free: 3.176 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.01538/0.3895, allocations: 4.824 MB / 0.5568 GB, free: 240 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.524e-05/0.3896, allocations: 9.312 kB / 0.5568 GB, free: 240 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006399/0.396, allocations: 0.9446 MB / 0.5577 GB, free: 15.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008212/0.4042, allocations: 2.745 MB / 0.5604 GB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003401/0.4046, allocations: 275 kB / 0.5607 GB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001803/0.4064, allocations: 367.2 kB / 0.561 GB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01136/0.4178, allocations: 4.681 MB / 0.5656 GB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.859e-05/0.4179, allocations: 6.375 kB / 0.5656 GB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003891/0.4183, allocations: 150.1 kB / 0.5657 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001236/0.4184, allocations: 156.9 kB / 0.5659 GB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007258/0.4257, allocations: 3.896 MB / 0.5697 GB, free: 7.918 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0269/0.4526, allocations: 15.31 MB / 0.5846 GB, free: 8.469 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006328/0.459, allocations: 6.129 MB / 0.5906 GB, free: 1.574 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002835/0.4619, allocations: 1.442 MB / 0.592 GB, free: 132 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007744/0.4697, allocations: 4.232 MB / 0.5962 GB, free: 11.76 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.159e-05/0.4697, allocations: 47.56 kB / 0.5962 GB, free: 11.7 MB / 414.1 MB Notification: Performance of pre-optimization done (n=125): time 3.797e-06/0.4698, allocations: 0 / 0.5962 GB, free: 11.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=156): time 0.01433/0.4841, allocations: 6.118 MB / 0.6022 GB, free: 5.531 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.405e-05/0.4842, allocations: 68.72 kB / 0.6022 GB, free: 5.449 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003487/0.4877, allocations: 2.069 MB / 0.6043 GB, free: 3.344 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001957/0.4879, allocations: 51.02 kB / 0.6043 GB, free: 3.289 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001231/0.4891, allocations: 1.696 MB / 0.606 GB, free: 1.578 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005164/0.4897, allocations: 0.5367 MB / 0.6065 GB, free: 1.047 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006148/0.4903, allocations: 399.8 kB / 0.6069 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.4904, allocations: 305.1 kB / 0.6072 GB, free: 356 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00128/0.4917, allocations: 0.7735 MB / 0.6079 GB, free: 15.57 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001831/0.4935, allocations: 1.554 MB / 0.6094 GB, free: 13.68 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01352/0.5071, allocations: 4.792 MB / 0.6141 GB, free: 8.629 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.121e-05/0.5071, allocations: 12 kB / 0.6141 GB, free: 8.617 MB / 430.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.005099/0.5122, allocations: 2.876 MB / 0.6169 GB, free: 5.887 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.289e-05/0.5123, allocations: 16 kB / 0.617 GB, free: 5.871 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.526e-05/0.5123, allocations: 24 kB / 0.617 GB, free: 5.848 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009646/0.5133, allocations: 361.2 kB / 0.6173 GB, free: 5.492 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001733/0.515, allocations: 483.2 kB / 0.6178 GB, free: 5.055 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005208/0.5203, allocations: 4.095 MB / 0.6218 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002579/0.5229, allocations: 95.8 kB / 0.6219 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002241/0.5231, allocations: 99.98 kB / 0.622 GB, free: 0.6562 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[1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 112 * 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 (256): * Single equations (assignments): 254 * 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 {(4,23,68.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002322/0.5254, allocations: 1.098 MB / 0.623 GB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004464/0.5259, allocations: 221.3 kB / 0.6233 GB, free: 15.36 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00372/0.5296, allocations: 1.987 MB / 0.6252 GB, free: 13.38 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.549e-05/0.5296, allocations: 16 kB / 0.6252 GB, free: 13.36 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.5297, allocations: 7.562 kB / 0.6252 GB, free: 13.36 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.659e-05/0.5297, allocations: 7.922 kB / 0.6252 GB, free: 13.35 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01014/0.5398, allocations: 5.433 MB / 0.6305 GB, free: 7.852 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.989e-06/0.5399, allocations: 4 kB / 0.6305 GB, free: 7.848 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001202/0.5411, allocations: 262.5 kB / 0.6308 GB, free: 7.605 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007929/0.5419, allocations: 288.6 kB / 0.6311 GB, free: 7.32 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.989e-05/0.542, allocations: 35.98 kB / 0.6311 GB, free: 7.285 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005029/0.547, allocations: 3.839 MB / 0.6348 GB, free: 3.324 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.015e-06/0.5471, allocations: 11.59 kB / 0.6349 GB, free: 3.316 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005388/0.5525, allocations: 2.921 MB / 0.6377 GB, free: 364 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001339/0.5539, allocations: 471.9 kB / 0.6382 GB, free: 15.88 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000738/0.5546, allocations: 35.98 kB / 0.6382 GB, free: 15.85 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00152/0.5561, allocations: 59.97 kB / 0.6382 GB, free: 15.79 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002696/0.5564, allocations: 112.7 kB / 0.6384 GB, free: 15.68 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001144/0.5566, allocations: 40 kB / 0.6384 GB, free: 15.64 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00276/0.5593, allocations: 1.399 MB / 0.6398 GB, free: 14.23 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5593, allocations: 0 / 0.6398 GB, free: 14.23 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002817/0.5622, allocations: 0.6367 MB / 0.6404 GB, free: 13.59 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 5 (smee.phiMechanical,smee.is[2],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 (132): * Single equations (assignments): 131 * 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 {(3,22,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003591/0.5625, allocations: 162 kB / 0.6405 GB, free: 13.44 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003895/0.5664, allocations: 2.292 MB / 0.6428 GB, free: 11.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.668e-06/0.5665, allocations: 0 / 0.6428 GB, free: 11.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001877/0.5683, allocations: 1.084 MB / 0.6438 GB, free: 10.11 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00333/0.5717, allocations: 0.5839 MB / 0.6444 GB, free: 9.523 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01266/0.5844, allocations: 6.097 MB / 0.6504 GB, free: 3.375 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003183/0.5876, allocations: 2.443 MB / 0.6527 GB, free: 0.9023 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002059/0.5897, allocations: 0.4919 MB / 0.6532 GB, free: 416 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006893/0.5904, allocations: 155.4 kB / 0.6534 GB, free: 260 kB / 462.1 MB Notification: Performance of SimCode: time 1.843e-06/0.5904, allocations: 0 / 0.6534 GB, free: 260 kB / 462.1 MB Notification: Performance of Templates: time 0.05757/0.648, allocations: 30.17 MB / 0.6828 GB, free: 2.449 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe 2>&1)