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.001741/0.001741, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.435/1.435, allocations: 222.9 MB / 240.1 MB, free: 4.391 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.001446/0.001446, allocations: 184.5 kB / 290.4 MB, free: 2.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03378/0.03378, allocations: 8.793 MB / 349.3 MB, free: 4.59 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 80.16 kB / 464.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1062, allocations: 51.56 MB / 0.5041 GB, free: 9.383 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1): time 0.01801/0.1242, allocations: 15.93 MB / 0.5197 GB, free: 9.379 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0112/0.1354, allocations: 5.294 MB / 0.5249 GB, free: 4.07 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003389/0.1389, allocations: 99.69 kB / 0.525 GB, free: 3.973 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004222/0.1431, allocations: 1.211 MB / 0.5261 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.005484/0.1487, allocations: 1.541 MB / 0.5276 GB, free: 1.203 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002995/0.1517, allocations: 0.9795 MB / 0.5286 GB, free: 232 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2241/0.3758, allocations: 4.583 MB / 0.5331 GB, free: 6.176 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004458/0.3803, allocations: 3.485 MB / 0.5365 GB, free: 5.582 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003725/0.384, allocations: 2.06 MB / 0.5385 GB, free: 5.316 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004412/0.3885, allocations: 2.325 MB / 0.5408 GB, free: 4.898 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001645/0.3901, allocations: 0.5596 MB / 0.5413 GB, free: 4.898 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002988/0.3931, allocations: 0.7771 MB / 0.5421 GB, free: 4.895 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001807/0.395, allocations: 1.239 MB / 0.5433 GB, free: 4.746 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006131/0.4011, allocations: 2.374 MB / 0.5456 GB, free: 4.164 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01097/0.4121, allocations: 7.32 MB / 0.5527 GB, free: 3.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.4121, allocations: 1.25 kB / 0.5527 GB, free: 3.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4121, allocations: 0 / 0.5527 GB, free: 3.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002403/0.4124, allocations: 0 / 0.5527 GB, free: 3.25 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.01618/0.4286, allocations: 4.823 MB / 0.5575 GB, free: 308 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.4286, allocations: 13.28 kB / 0.5575 GB, free: 304 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005744/0.4344, allocations: 0.9421 MB / 0.5584 GB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007208/0.4416, allocations: 2.747 MB / 0.5611 GB, free: 13.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002368/0.4419, allocations: 281.4 kB / 0.5613 GB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001041/0.443, allocations: 365.6 kB / 0.5617 GB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01009/0.4531, allocations: 4.672 MB / 0.5662 GB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.756e-05/0.4532, allocations: 2.906 kB / 0.5663 GB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006027/0.4538, allocations: 152 kB / 0.5664 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001279/0.4539, allocations: 152 kB / 0.5665 GB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006661/0.4606, allocations: 3.897 MB / 0.5703 GB, free: 8.012 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02839/0.489, allocations: 15.15 MB / 0.5851 GB, free: 8.727 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006322/0.4954, allocations: 5.943 MB / 0.5909 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002299/0.4977, allocations: 1.272 MB / 0.5922 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008127/0.5059, allocations: 4.119 MB / 0.5962 GB, free: 12.49 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.538e-05/0.506, allocations: 51.03 kB / 0.5963 GB, free: 12.43 MB / 414.1 MB Notification: Performance of pre-optimization done (n=118): time 3.686e-06/0.506, allocations: 0 / 0.5963 GB, free: 12.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=144): time 0.01308/0.5191, allocations: 5.261 MB / 0.6014 GB, free: 7.121 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.217e-05/0.5192, allocations: 68.72 kB / 0.6015 GB, free: 7.039 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004433/0.5236, allocations: 2.145 MB / 0.6036 GB, free: 4.859 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002272/0.5239, allocations: 53.7 kB / 0.6036 GB, free: 4.801 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001272/0.5252, allocations: 1.719 MB / 0.6053 GB, free: 3.07 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005565/0.5257, allocations: 0.5034 MB / 0.6058 GB, free: 2.57 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007481/0.5265, allocations: 415.7 kB / 0.6062 GB, free: 2.156 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.735e-05/0.5266, allocations: 305.1 kB / 0.6065 GB, free: 1.855 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001346/0.528, allocations: 0.7618 MB / 0.6072 GB, free: 1.09 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001856/0.5298, allocations: 1.54 MB / 0.6087 GB, free: 15.2 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01394/0.5438, allocations: 4.734 MB / 0.6133 GB, free: 10.21 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.187e-05/0.5439, allocations: 8 kB / 0.6133 GB, free: 10.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.005586/0.5495, allocations: 2.788 MB / 0.6161 GB, free: 7.562 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.772e-05/0.5495, allocations: 16 kB / 0.6161 GB, free: 7.547 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.139e-05/0.5496, allocations: 28 kB / 0.6161 GB, free: 7.52 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008375/0.5505, allocations: 270.1 kB / 0.6164 GB, free: 7.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001854/0.5523, allocations: 499.1 kB / 0.6168 GB, free: 6.797 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004474/0.5568, allocations: 3.382 MB / 0.6201 GB, free: 3.301 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002468/0.5593, allocations: 99.86 kB / 0.6202 GB, free: 3.203 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003679/0.5597, allocations: 96 kB / 0.6203 GB, free: 3.109 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.002648/0.5624, allocations: 1.094 MB / 0.6214 GB, free: 2.043 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007787/0.5631, allocations: 229.2 kB / 0.6216 GB, free: 1.816 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003688/0.5668, allocations: 1.761 MB / 0.6233 GB, free: 48 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.558e-05/0.5669, allocations: 20 kB / 0.6234 GB, free: 28 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.366e-05/0.5669, allocations: 8 kB / 0.6234 GB, free: 20 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.458e-05/0.5669, allocations: 7.969 kB / 0.6234 GB, free: 12 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01017/0.5771, allocations: 4.982 MB / 0.6282 GB, free: 10.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.427e-06/0.5772, allocations: 4.281 kB / 0.6282 GB, free: 10.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00118/0.5783, allocations: 261.8 kB / 0.6285 GB, free: 10.74 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000658/0.579, allocations: 216.7 kB / 0.6287 GB, free: 10.52 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000118/0.5791, allocations: 31.98 kB / 0.6287 GB, free: 10.49 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003861/0.583, allocations: 3.255 MB / 0.6319 GB, free: 7.117 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.583, allocations: 0 / 0.6319 GB, free: 7.117 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004663/0.5877, allocations: 2.658 MB / 0.6345 GB, free: 4.418 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001442/0.5892, allocations: 454.3 kB / 0.6349 GB, free: 3.953 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007563/0.59, allocations: 39.45 kB / 0.635 GB, free: 3.918 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00151/0.5915, allocations: 51.97 kB / 0.635 GB, free: 3.867 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002557/0.5917, allocations: 105.1 kB / 0.6351 GB, free: 3.766 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001023/0.5919, allocations: 39.98 kB / 0.6352 GB, free: 3.727 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003105/0.595, allocations: 1.439 MB / 0.6366 GB, free: 2.27 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.595, allocations: 0 / 0.6366 GB, free: 2.27 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002991/0.598, allocations: 0.6289 MB / 0.6372 GB, free: 1.641 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.0004181/0.5984, allocations: 166.9 kB / 0.6373 GB, free: 1.488 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003818/0.6022, allocations: 2.159 MB / 0.6394 GB, free: 15.37 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/0.6023, allocations: 8.188 kB / 0.6395 GB, free: 15.36 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001625/0.6039, allocations: 0.9451 MB / 0.6404 GB, free: 14.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003856/0.6078, allocations: 0.5815 MB / 0.6409 GB, free: 13.82 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01365/0.6214, allocations: 5.932 MB / 0.6467 GB, free: 7.836 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003028/0.6245, allocations: 2.359 MB / 0.649 GB, free: 5.445 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008764/0.6254, allocations: 171.4 kB / 0.6492 GB, free: 5.281 MB / 462.1 MB Notification: Performance of SimCode: time 1.112e-06/0.6254, allocations: 0 / 0.6492 GB, free: 5.281 MB / 462.1 MB Notification: Performance of Templates: time 0.09818/0.7236, allocations: 68.69 MB / 0.7163 GB, free: 0.7188 MB / 0.5137 GB 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)