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.006086/0.006086, allocations: 101.3 kB / 15.73 MB, free: 6.047 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.425/1.425, allocations: 222.9 MB / 239.4 MB, free: 4.539 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.001369/0.001369, allocations: 192.5 kB / 289.7 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03687/0.03687, allocations: 8.794 MB / 348.6 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 75.88 kB / 464 MB, free: 13.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09235/0.09391, allocations: 51.56 MB / 0.5035 GB, free: 9.422 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.01737/0.1113, allocations: 15.92 MB / 0.519 GB, free: 9.422 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01013/0.1215, allocations: 5.309 MB / 0.5242 GB, free: 4.098 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002186/0.1237, allocations: 95.69 kB / 0.5243 GB, free: 4.004 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00276/0.1265, allocations: 1.215 MB / 0.5255 GB, free: 2.777 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.003849/0.1304, allocations: 1.522 MB / 0.527 GB, free: 1.246 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001981/0.1324, allocations: 0.9781 MB / 0.5279 GB, free: 276 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2153/0.3477, allocations: 4.6 MB / 0.5324 GB, free: 6.27 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005084/0.3528, allocations: 3.479 MB / 0.5358 GB, free: 5.68 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00432/0.3572, allocations: 2.056 MB / 0.5378 GB, free: 5.418 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005104/0.3623, allocations: 2.333 MB / 0.5401 GB, free: 4.996 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00204/0.3644, allocations: 0.56 MB / 0.5406 GB, free: 4.996 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00253/0.3669, allocations: 0.7708 MB / 0.5414 GB, free: 4.996 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001579/0.3685, allocations: 1.239 MB / 0.5426 GB, free: 4.848 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004773/0.3733, allocations: 2.376 MB / 0.5449 GB, free: 4.266 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009302/0.3826, allocations: 7.311 MB / 0.5521 GB, free: 3.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.3827, allocations: 3.938 kB / 0.5521 GB, free: 3.266 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3827, allocations: 0 / 0.5521 GB, free: 3.266 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001655/0.3829, allocations: 1.219 kB / 0.5521 GB, free: 3.266 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.01248/0.3953, allocations: 4.831 MB / 0.5568 GB, free: 316 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.3954, allocations: 13.27 kB / 0.5568 GB, free: 312 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005219/0.4006, allocations: 0.9433 MB / 0.5577 GB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00553/0.4062, allocations: 2.746 MB / 0.5604 GB, free: 14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001849/0.4064, allocations: 274 kB / 0.5607 GB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005599/0.4069, allocations: 367 kB / 0.561 GB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008305/0.4153, allocations: 4.686 MB / 0.5656 GB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.998e-05/0.4154, allocations: 3.984 kB / 0.5656 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000361/0.4157, allocations: 155.2 kB / 0.5657 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001249/0.4159, allocations: 155.1 kB / 0.5659 GB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006837/0.4227, allocations: 3.895 MB / 0.5697 GB, free: 8.023 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02445/0.4472, allocations: 15.3 MB / 0.5846 GB, free: 8.582 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006068/0.4533, allocations: 6.131 MB / 0.5906 GB, free: 1.684 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002558/0.4559, allocations: 1.44 MB / 0.592 GB, free: 248 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00704/0.463, allocations: 4.231 MB / 0.5962 GB, free: 11.88 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.303e-05/0.463, allocations: 59.56 kB / 0.5962 GB, free: 11.81 MB / 414.1 MB Notification: Performance of pre-optimization done (n=125): time 2.645e-06/0.463, allocations: 0 / 0.5962 GB, free: 11.81 MB / 414.1 MB Notification: Performance of matching and sorting (n=156): time 0.01265/0.4757, allocations: 6.123 MB / 0.6022 GB, free: 5.633 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.222e-05/0.4758, allocations: 68.72 kB / 0.6023 GB, free: 5.551 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002871/0.4786, allocations: 2.061 MB / 0.6043 GB, free: 3.453 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.624e-05/0.4787, allocations: 49.7 kB / 0.6043 GB, free: 3.398 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001065/0.4798, allocations: 1.696 MB / 0.606 GB, free: 1.688 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004292/0.4802, allocations: 0.5367 MB / 0.6065 GB, free: 1.156 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006246/0.4809, allocations: 403.8 kB / 0.6069 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.481, allocations: 305.1 kB / 0.6072 GB, free: 464 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001295/0.4823, allocations: 0.7774 MB / 0.6079 GB, free: 15.67 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001764/0.4841, allocations: 1.547 MB / 0.6094 GB, free: 13.79 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01242/0.4965, allocations: 4.797 MB / 0.6141 GB, free: 8.734 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.957e-05/0.4966, allocations: 4 kB / 0.6141 GB, free: 8.73 MB / 430.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.005014/0.5016, allocations: 2.878 MB / 0.6169 GB, free: 5.996 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.203e-05/0.5016, allocations: 16.62 kB / 0.617 GB, free: 5.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.276e-05/0.5017, allocations: 24 kB / 0.617 GB, free: 5.957 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009184/0.5026, allocations: 361.3 kB / 0.6173 GB, free: 5.605 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001535/0.5041, allocations: 489.2 kB / 0.6178 GB, free: 5.16 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005017/0.5092, allocations: 4.083 MB / 0.6218 GB, free: 0.9609 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001892/0.5111, allocations: 95.78 kB / 0.6219 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001754/0.5113, allocations: 104 kB / 0.622 GB, free: 0.7656 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.002146/0.5134, allocations: 1.103 MB / 0.623 GB, free: 15.69 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00039/0.5138, allocations: 225.3 kB / 0.6233 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003455/0.5173, allocations: 1.976 MB / 0.6252 GB, free: 13.49 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-05/0.5173, allocations: 20 kB / 0.6252 GB, free: 13.47 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.5174, allocations: 4 kB / 0.6252 GB, free: 13.46 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.726e-05/0.5174, allocations: 15.89 kB / 0.6252 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008478/0.5259, allocations: 5.428 MB / 0.6305 GB, free: 7.965 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.428e-06/0.5259, allocations: 11.94 kB / 0.6305 GB, free: 7.953 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001087/0.527, allocations: 262.6 kB / 0.6308 GB, free: 7.707 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007572/0.5278, allocations: 292.5 kB / 0.6311 GB, free: 7.422 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.968e-05/0.5279, allocations: 35.98 kB / 0.6311 GB, free: 7.387 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004413/0.5323, allocations: 3.832 MB / 0.6348 GB, free: 3.426 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/0.5323, allocations: 3.938 kB / 0.6348 GB, free: 3.422 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00455/0.5369, allocations: 2.929 MB / 0.6377 GB, free: 464 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009986/0.5379, allocations: 465.8 kB / 0.6382 GB, free: 15.98 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002725/0.5382, allocations: 36 kB / 0.6382 GB, free: 15.95 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009056/0.5391, allocations: 59.95 kB / 0.6382 GB, free: 15.89 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002081/0.5393, allocations: 109.1 kB / 0.6383 GB, free: 15.78 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.924e-05/0.5394, allocations: 43.98 kB / 0.6384 GB, free: 15.74 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002087/0.5415, allocations: 1.391 MB / 0.6397 GB, free: 14.33 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5415, allocations: 0 / 0.6397 GB, free: 14.33 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002029/0.5435, allocations: 0.6367 MB / 0.6404 GB, free: 13.69 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.0002851/0.5438, allocations: 172 kB / 0.6405 GB, free: 13.54 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003604/0.5474, allocations: 2.293 MB / 0.6428 GB, free: 11.27 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.5475, allocations: 0 / 0.6428 GB, free: 11.27 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001751/0.5492, allocations: 1.087 MB / 0.6438 GB, free: 10.16 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002691/0.5519, allocations: 0.5691 MB / 0.6444 GB, free: 9.598 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01005/0.562, allocations: 6.108 MB / 0.6504 GB, free: 3.434 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002139/0.5641, allocations: 2.435 MB / 0.6527 GB, free: 0.9688 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001536/0.5657, allocations: 0.4919 MB / 0.6532 GB, free: 484 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003984/0.5661, allocations: 159.3 kB / 0.6534 GB, free: 324 kB / 462.1 MB Notification: Performance of SimCode: time 5.82e-07/0.5661, allocations: 0 / 0.6534 GB, free: 324 kB / 462.1 MB Notification: Performance of Templates: time 0.05055/0.6167, allocations: 30.17 MB / 0.6828 GB, free: 2.512 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)