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.001154/0.001154, allocations: 102.6 kB / 16.4 MB, free: 6.461 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.352/1.352, allocations: 222.9 MB / 240.1 MB, free: 4.383 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.001532/0.001532, allocations: 184.5 kB / 290.4 MB, free: 2.117 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03349/0.03349, allocations: 8.798 MB / 349.3 MB, free: 4.59 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 80.2 kB / 464.7 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.108, allocations: 51.56 MB / 0.5041 GB, free: 9.371 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1): time 0.01849/0.1266, allocations: 15.92 MB / 0.5197 GB, free: 9.371 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01186/0.1385, allocations: 5.301 MB / 0.5249 GB, free: 4.055 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003848/0.1424, allocations: 95.69 kB / 0.525 GB, free: 3.961 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004934/0.1473, allocations: 1.211 MB / 0.5261 GB, free: 2.738 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.006338/0.1538, allocations: 1.53 MB / 0.5276 GB, free: 1.199 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003421/0.1572, allocations: 0.9833 MB / 0.5286 GB, free: 224 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2472/0.4044, allocations: 4.587 MB / 0.5331 GB, free: 6.148 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005016/0.4095, allocations: 3.482 MB / 0.5365 GB, free: 5.562 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004003/0.4135, allocations: 2.06 MB / 0.5385 GB, free: 5.297 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004955/0.4185, allocations: 2.335 MB / 0.5408 GB, free: 4.875 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001546/0.4201, allocations: 0.5605 MB / 0.5413 GB, free: 4.875 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002693/0.4228, allocations: 0.7679 MB / 0.5421 GB, free: 4.875 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001382/0.4242, allocations: 1.237 MB / 0.5433 GB, free: 4.727 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005085/0.4293, allocations: 2.375 MB / 0.5456 GB, free: 4.145 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01057/0.4398, allocations: 7.319 MB / 0.5527 GB, free: 3.203 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.4399, allocations: 0 / 0.5527 GB, free: 3.203 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.4399, allocations: 0 / 0.5527 GB, free: 3.203 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002251/0.4401, allocations: 1.438 kB / 0.5527 GB, free: 3.203 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.01632/0.4565, allocations: 4.834 MB / 0.5575 GB, free: 240 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.127e-05/0.4565, allocations: 9.344 kB / 0.5575 GB, free: 240 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005821/0.4624, allocations: 0.9376 MB / 0.5584 GB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00714/0.4696, allocations: 2.746 MB / 0.5611 GB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002276/0.4698, allocations: 271.5 kB / 0.5613 GB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008848/0.4707, allocations: 374 kB / 0.5617 GB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009551/0.4803, allocations: 4.669 MB / 0.5662 GB, free: 10.94 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.079e-05/0.4804, allocations: 2.469 kB / 0.5662 GB, free: 10.94 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003552/0.4808, allocations: 151.9 kB / 0.5664 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001299/0.4809, allocations: 160.1 kB / 0.5665 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006939/0.4878, allocations: 3.895 MB / 0.5703 GB, free: 7.914 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02826/0.5161, allocations: 15.15 MB / 0.5851 GB, free: 8.633 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006222/0.5224, allocations: 5.943 MB / 0.5909 GB, free: 1.938 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002372/0.5248, allocations: 1.276 MB / 0.5922 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008391/0.5332, allocations: 4.123 MB / 0.5962 GB, free: 12.39 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.317e-05/0.5333, allocations: 43.56 kB / 0.5963 GB, free: 12.34 MB / 414.1 MB Notification: Performance of pre-optimization done (n=118): time 3.386e-06/0.5333, allocations: 0 / 0.5963 GB, free: 12.34 MB / 414.1 MB Notification: Performance of matching and sorting (n=144): time 0.01245/0.5458, allocations: 5.256 MB / 0.6014 GB, free: 7.031 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.853e-05/0.5459, allocations: 64.72 kB / 0.6014 GB, free: 6.953 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004509/0.5504, allocations: 2.149 MB / 0.6035 GB, free: 4.77 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002174/0.5507, allocations: 49.7 kB / 0.6036 GB, free: 4.715 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001339/0.552, allocations: 1.73 MB / 0.6053 GB, free: 2.973 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005466/0.5526, allocations: 0.5012 MB / 0.6058 GB, free: 2.477 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008149/0.5534, allocations: 407.7 kB / 0.6062 GB, free: 2.07 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.5535, allocations: 316.6 kB / 0.6065 GB, free: 1.762 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001369/0.5549, allocations: 0.7579 MB / 0.6072 GB, free: 1 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001806/0.5567, allocations: 1.548 MB / 0.6087 GB, free: 15.11 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01368/0.5704, allocations: 4.73 MB / 0.6133 GB, free: 10.12 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-05/0.5705, allocations: 4 kB / 0.6133 GB, free: 10.11 MB / 430.1 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.005692/0.5762, allocations: 2.786 MB / 0.6161 GB, free: 7.469 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.231e-05/0.5763, allocations: 16.61 kB / 0.6161 GB, free: 7.453 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.778e-05/0.5763, allocations: 28.59 kB / 0.6161 GB, free: 7.426 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008079/0.5771, allocations: 277.1 kB / 0.6164 GB, free: 7.152 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001793/0.5789, allocations: 0.4919 MB / 0.6168 GB, free: 6.695 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004137/0.5831, allocations: 3.369 MB / 0.6201 GB, free: 3.211 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002348/0.5855, allocations: 95.88 kB / 0.6202 GB, free: 3.117 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003149/0.5858, allocations: 103.5 kB / 0.6203 GB, free: 3.02 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.002896/0.5887, allocations: 1.085 MB / 0.6214 GB, free: 1.957 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008016/0.5895, allocations: 233.2 kB / 0.6216 GB, free: 1.727 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004103/0.5936, allocations: 1.783 MB / 0.6233 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.15e-05/0.5937, allocations: 12 kB / 0.6234 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-05/0.5937, allocations: 4 kB / 0.6234 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.591e-05/0.5937, allocations: 7.969 kB / 0.6234 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01321/0.6069, allocations: 4.972 MB / 0.6282 GB, free: 10.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.456e-05/0.607, allocations: 8.062 kB / 0.6282 GB, free: 10.89 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001178/0.6082, allocations: 257.6 kB / 0.6285 GB, free: 10.65 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000652/0.6089, allocations: 216.7 kB / 0.6287 GB, free: 10.44 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001241/0.609, allocations: 35.98 kB / 0.6287 GB, free: 10.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003701/0.6127, allocations: 3.25 MB / 0.6319 GB, free: 7.031 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.6127, allocations: 0 / 0.6319 GB, free: 7.031 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004414/0.6172, allocations: 2.666 MB / 0.6345 GB, free: 4.328 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001531/0.6187, allocations: 450.3 kB / 0.6349 GB, free: 3.867 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008016/0.6195, allocations: 32 kB / 0.635 GB, free: 3.836 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001548/0.6211, allocations: 59.97 kB / 0.635 GB, free: 3.777 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002414/0.6214, allocations: 97.11 kB / 0.6351 GB, free: 3.684 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/0.6215, allocations: 39.98 kB / 0.6351 GB, free: 3.645 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003143/0.6246, allocations: 1.443 MB / 0.6366 GB, free: 2.184 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6246, allocations: 3.469 kB / 0.6366 GB, free: 2.184 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003448/0.6281, allocations: 0.6289 MB / 0.6372 GB, free: 1.555 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.0005318/0.6286, allocations: 163.8 kB / 0.6373 GB, free: 1.402 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003947/0.6326, allocations: 2.168 MB / 0.6394 GB, free: 15.29 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/0.6326, allocations: 0 / 0.6394 GB, free: 15.29 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001635/0.6343, allocations: 0.9522 MB / 0.6404 GB, free: 14.32 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003842/0.6381, allocations: 0.5845 MB / 0.6409 GB, free: 13.74 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01273/0.6509, allocations: 5.923 MB / 0.6467 GB, free: 7.758 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00296/0.6539, allocations: 2.367 MB / 0.649 GB, free: 5.359 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008187/0.6547, allocations: 167.4 kB / 0.6492 GB, free: 5.199 MB / 462.1 MB Notification: Performance of SimCode: time 1.212e-06/0.6547, allocations: 0 / 0.6492 GB, free: 5.199 MB / 462.1 MB Notification: Performance of Templates: time 0.09665/0.7514, allocations: 68.69 MB / 0.7163 GB, free: 0.6406 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)