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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008805/0.008805, allocations: 98.64 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.434/1.434, allocations: 222.9 MB / 239.4 MB, free: 4.547 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.001389/0.001389, allocations: 196.4 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.03611/0.03611, allocations: 8.796 MB / 348.7 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001666/0.001666, allocations: 79.88 kB / 463.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1046, allocations: 51.57 MB / 0.503 GB, free: 9.914 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1): time 0.01614/0.1207, allocations: 15.92 MB / 0.5185 GB, free: 9.914 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009581/0.1304, allocations: 5.298 MB / 0.5237 GB, free: 4.602 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00284/0.1333, allocations: 95.69 kB / 0.5238 GB, free: 4.508 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004541/0.1378, allocations: 1.247 MB / 0.525 GB, free: 3.25 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.005575/0.1434, allocations: 1.577 MB / 0.5266 GB, free: 1.664 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002902/0.1464, allocations: 0.9895 MB / 0.5275 GB, free: 0.6758 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2398/0.3862, allocations: 4.584 MB / 0.532 GB, free: 5.648 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005953/0.3922, allocations: 3.484 MB / 0.5354 GB, free: 5.059 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004842/0.3971, allocations: 2.058 MB / 0.5374 GB, free: 4.812 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00517/0.4023, allocations: 2.331 MB / 0.5397 GB, free: 4.395 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002306/0.4046, allocations: 0.5598 MB / 0.5402 GB, free: 4.395 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003296/0.408, allocations: 0.7684 MB / 0.541 GB, free: 4.395 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002/0.41, allocations: 1.236 MB / 0.5422 GB, free: 4.246 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005866/0.4159, allocations: 2.378 MB / 0.5445 GB, free: 3.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01301/0.4289, allocations: 7.343 MB / 0.5517 GB, free: 2.809 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.809e-06/0.429, allocations: 0 / 0.5517 GB, free: 2.809 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.429, allocations: 0 / 0.5517 GB, free: 2.809 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002914/0.4293, allocations: 1.156 kB / 0.5517 GB, free: 2.809 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.0174/0.4467, allocations: 4.925 MB / 0.5565 GB, free: 15.84 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.061e-05/0.4468, allocations: 11.38 kB / 0.5565 GB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002288/0.4491, allocations: 0.5489 MB / 0.5571 GB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007215/0.4563, allocations: 0.9676 MB / 0.558 GB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008914/0.4653, allocations: 2.753 MB / 0.5607 GB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003582/0.4657, allocations: 281 kB / 0.561 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001617/0.4673, allocations: 368.5 kB / 0.5613 GB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01086/0.4782, allocations: 4.671 MB / 0.5659 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.623e-05/0.4784, allocations: 7.953 kB / 0.5659 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004899/0.4789, allocations: 155.8 kB / 0.566 GB, free: 9.992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001516/0.479, allocations: 153.2 kB / 0.5662 GB, free: 9.973 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007909/0.4869, allocations: 3.891 MB / 0.57 GB, free: 7.301 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02823/0.5152, allocations: 15.21 MB / 0.5848 GB, free: 7.969 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006272/0.5215, allocations: 5.941 MB / 0.5906 GB, free: 1.273 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00229/0.5238, allocations: 1.261 MB / 0.5919 GB, free: 12 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007476/0.5313, allocations: 4.133 MB / 0.5959 GB, free: 11.73 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.343e-05/0.5314, allocations: 47.56 kB / 0.5959 GB, free: 11.68 MB / 414.1 MB Notification: Performance of pre-optimization done (n=118): time 3.667e-06/0.5314, allocations: 0 / 0.5959 GB, free: 11.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=144): time 0.01213/0.5436, allocations: 5.307 MB / 0.6011 GB, free: 6.328 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.364e-05/0.5436, allocations: 64.72 kB / 0.6012 GB, free: 6.25 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003481/0.5471, allocations: 2.149 MB / 0.6033 GB, free: 4.066 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002283/0.5474, allocations: 49.7 kB / 0.6033 GB, free: 4.012 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001286/0.5487, allocations: 1.787 MB / 0.6051 GB, free: 2.215 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004996/0.5492, allocations: 0.5208 MB / 0.6056 GB, free: 1.703 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000625/0.5498, allocations: 411 kB / 0.606 GB, free: 1.297 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.867e-05/0.5499, allocations: 313.1 kB / 0.6063 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001596/0.5515, allocations: 0.7579 MB / 0.607 GB, free: 232 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001757/0.5533, allocations: 1.545 MB / 0.6085 GB, free: 14.34 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0141/0.5674, allocations: 4.731 MB / 0.6131 GB, free: 9.344 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-05/0.5675, allocations: 8 kB / 0.6131 GB, free: 9.336 MB / 430.1 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.005326/0.5728, allocations: 2.788 MB / 0.6159 GB, free: 6.691 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.838e-05/0.5729, allocations: 19.98 kB / 0.6159 GB, free: 6.672 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.648e-05/0.5729, allocations: 24 kB / 0.6159 GB, free: 6.648 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007713/0.5737, allocations: 283.6 kB / 0.6162 GB, free: 6.371 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001859/0.5756, allocations: 491.5 kB / 0.6166 GB, free: 5.922 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004068/0.5797, allocations: 3.394 MB / 0.62 GB, free: 2.422 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002314/0.582, allocations: 103.8 kB / 0.6201 GB, free: 2.32 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002681/0.5823, allocations: 96 kB / 0.6202 GB, free: 2.227 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.002128/0.5844, allocations: 1.09 MB / 0.6212 GB, free: 1.16 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005425/0.585, allocations: 238.4 kB / 0.6214 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003207/0.5882, allocations: 1.765 MB / 0.6232 GB, free: 15.15 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-05/0.5882, allocations: 19.84 kB / 0.6232 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.5882, allocations: 7.281 kB / 0.6232 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.176e-05/0.5882, allocations: 7.984 kB / 0.6232 GB, free: 15.12 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00897/0.5972, allocations: 4.974 MB / 0.6281 GB, free: 10.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.327e-06/0.5973, allocations: 4 kB / 0.6281 GB, free: 10.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001211/0.5985, allocations: 258.6 kB / 0.6283 GB, free: 9.859 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006426/0.5991, allocations: 219.2 kB / 0.6285 GB, free: 9.645 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001028/0.5993, allocations: 31.98 kB / 0.6286 GB, free: 9.613 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003789/0.6031, allocations: 3.26 MB / 0.6317 GB, free: 6.234 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.6031, allocations: 3.375 kB / 0.6317 GB, free: 6.234 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004304/0.6074, allocations: 2.679 MB / 0.6344 GB, free: 3.516 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001226/0.6086, allocations: 463.5 kB / 0.6348 GB, free: 3.043 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004012/0.6091, allocations: 32.12 kB / 0.6348 GB, free: 3.012 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/0.6102, allocations: 59.97 kB / 0.6349 GB, free: 2.953 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002145/0.6104, allocations: 104.6 kB / 0.635 GB, free: 2.855 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.661e-05/0.6105, allocations: 39.98 kB / 0.635 GB, free: 2.816 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002448/0.613, allocations: 1.439 MB / 0.6364 GB, free: 1.359 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.613, allocations: 4 kB / 0.6364 GB, free: 1.355 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002821/0.6158, allocations: 0.625 MB / 0.637 GB, free: 0.7305 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.004881/0.6207, allocations: 3.278 MB / 0.6402 GB, free: 13.42 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003662/0.6244, allocations: 2.158 MB / 0.6423 GB, free: 11.32 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/0.6244, allocations: 4 kB / 0.6424 GB, free: 11.31 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001572/0.626, allocations: 0.9542 MB / 0.6433 GB, free: 10.37 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003239/0.6293, allocations: 0.581 MB / 0.6439 GB, free: 9.793 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03664/0.6659, allocations: 21.8 MB / 0.6651 GB, free: 3.141 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002252/0.6682, allocations: 2.419 MB / 0.6675 GB, free: 0.6914 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001658/0.6699, allocations: 0.4996 MB / 0.668 GB, free: 192 kB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001833/0.6717, allocations: 1.325 MB / 0.6693 GB, free: 14.86 MB / 494.1 MB Notification: Performance of SimCode: time 1.082e-06/0.6718, allocations: 8 kB / 0.6693 GB, free: 14.86 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09494/0.7667, allocations: 55.24 MB / 0.7232 GB, free: 8.051 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.34/16.11, allocations: 4 kB / 0.7232 GB, free: 8.047 MB / 0.5294 GB (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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe 2>&1)