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.001135/0.001135, allocations: 104.2 kB / 16.35 MB, free: 5.875 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.362/1.362, allocations: 222.9 MB / 240 MB, free: 4.543 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.001323/0.001323, allocations: 188.5 kB / 290.3 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03451/0.03451, allocations: 8.801 MB / 349.3 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 86.31 kB / 412.5 MB, free: 41.71 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08208/0.08359, allocations: 51.56 MB / 464.1 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1): time 0.01597/0.09961, allocations: 15.92 MB / 480 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01005/0.1097, allocations: 5.309 MB / 485.3 MB, free: 8.227 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003407/0.1132, allocations: 95.69 kB / 485.4 MB, free: 8.133 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003207/0.1164, allocations: 1.219 MB / 486.6 MB, free: 6.91 MB / 318.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.004605/0.121, allocations: 1.528 MB / 488.1 MB, free: 5.375 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002336/0.1234, allocations: 0.9863 MB / 489.1 MB, free: 4.391 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005749/0.1291, allocations: 4.586 MB / 493.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003875/0.133, allocations: 3.493 MB / 497.2 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002586/0.1356, allocations: 2.036 MB / 499.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002787/0.1384, allocations: 2.339 MB / 0.4898 GB, free: 7.832 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007088/0.1392, allocations: 0.5586 MB / 0.4904 GB, free: 7.273 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00125/0.1404, allocations: 0.7693 MB / 0.4911 GB, free: 6.504 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009178/0.1414, allocations: 1.243 MB / 0.4923 GB, free: 5.258 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002177/0.1435, allocations: 2.377 MB / 0.4947 GB, free: 2.871 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005784/0.1493, allocations: 7.306 MB / 0.5018 GB, free: 11.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.1494, allocations: 4 kB / 0.5018 GB, free: 11.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1494, allocations: 3.938 kB / 0.5018 GB, free: 11.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.457e-05/0.1495, allocations: 0 / 0.5018 GB, free: 11.54 MB / 350.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.01008/0.1595, allocations: 4.822 MB / 0.5065 GB, free: 6.641 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.1596, allocations: 8.031 kB / 0.5065 GB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00465/0.1643, allocations: 0.9407 MB / 0.5074 GB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005105/0.1694, allocations: 2.737 MB / 0.5101 GB, free: 2.895 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000172/0.1696, allocations: 283.7 kB / 0.5104 GB, free: 2.617 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004852/0.1701, allocations: 376 kB / 0.5107 GB, free: 2.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006616/0.1767, allocations: 4.659 MB / 0.5153 GB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.872e-05/0.1768, allocations: 7.906 kB / 0.5153 GB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002943/0.1771, allocations: 152 kB / 0.5154 GB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001298/0.1772, allocations: 159.3 kB / 0.5156 GB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00566/0.1829, allocations: 3.898 MB / 0.5194 GB, free: 9.332 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1874/0.3703, allocations: 15.13 MB / 0.5342 GB, free: 56.33 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007382/0.3777, allocations: 5.948 MB / 0.54 GB, free: 51.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003431/0.3812, allocations: 1.26 MB / 0.5412 GB, free: 51.94 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01044/0.3917, allocations: 4.122 MB / 0.5452 GB, free: 50.72 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.058e-05/0.3918, allocations: 51.94 kB / 0.5453 GB, free: 50.68 MB / 366.1 MB Notification: Performance of pre-optimization done (n=118): time 4.688e-06/0.3918, allocations: 0 / 0.5453 GB, free: 50.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=144): time 0.01522/0.407, allocations: 5.255 MB / 0.5504 GB, free: 49.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.658e-05/0.4071, allocations: 65.81 kB / 0.5505 GB, free: 49.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004885/0.412, allocations: 2.151 MB / 0.5526 GB, free: 48.97 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002971/0.4123, allocations: 51.11 kB / 0.5526 GB, free: 48.92 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001757/0.4141, allocations: 1.734 MB / 0.5543 GB, free: 47.6 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007564/0.4149, allocations: 0.4953 MB / 0.5548 GB, free: 47.22 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009687/0.4159, allocations: 408.1 kB / 0.5552 GB, free: 47.01 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.03e-05/0.416, allocations: 302.5 kB / 0.5555 GB, free: 46.71 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002163/0.4181, allocations: 0.7609 MB / 0.5562 GB, free: 46.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002152/0.4203, allocations: 1.548 MB / 0.5577 GB, free: 45.13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01592/0.4362, allocations: 4.732 MB / 0.5624 GB, free: 42.13 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.371e-05/0.4363, allocations: 7.906 kB / 0.5624 GB, free: 42.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.00417/0.4405, allocations: 2.79 MB / 0.5651 GB, free: 40.66 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.199e-05/0.4405, allocations: 15.72 kB / 0.5651 GB, free: 40.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.92e-05/0.4406, allocations: 28.42 kB / 0.5651 GB, free: 40.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006801/0.4412, allocations: 280.7 kB / 0.5654 GB, free: 40.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001586/0.4428, allocations: 491.7 kB / 0.5659 GB, free: 40.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003124/0.446, allocations: 3.384 MB / 0.5692 GB, free: 37.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001798/0.4478, allocations: 108.5 kB / 0.5693 GB, free: 37.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001439/0.448, allocations: 101.8 kB / 0.5694 GB, free: 37.58 MB / 366.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.00169/0.4497, allocations: 1.083 MB / 0.5704 GB, free: 36.85 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003864/0.45, allocations: 223.3 kB / 0.5707 GB, free: 36.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002675/0.4527, allocations: 1.773 MB / 0.5724 GB, free: 35.71 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/0.4528, allocations: 15.05 kB / 0.5724 GB, free: 35.71 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.4528, allocations: 7.469 kB / 0.5724 GB, free: 35.71 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/0.4528, allocations: 3.984 kB / 0.5724 GB, free: 35.7 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007801/0.4606, allocations: 4.982 MB / 0.5773 GB, free: 31.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.166e-06/0.4606, allocations: 5 kB / 0.5773 GB, free: 31.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001093/0.4617, allocations: 255.7 kB / 0.5775 GB, free: 31.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005616/0.4623, allocations: 210.5 kB / 0.5777 GB, free: 31.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001015/0.4624, allocations: 35.98 kB / 0.5778 GB, free: 31.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002901/0.4653, allocations: 3.26 MB / 0.5809 GB, free: 27.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.4653, allocations: 2.844 kB / 0.5809 GB, free: 27.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003413/0.4688, allocations: 2.657 MB / 0.5835 GB, free: 25.13 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001149/0.4699, allocations: 454.2 kB / 0.584 GB, free: 24.67 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005411/0.4705, allocations: 36.88 kB / 0.584 GB, free: 24.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001253/0.4717, allocations: 55.97 kB / 0.5841 GB, free: 24.58 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001992/0.4719, allocations: 101 kB / 0.5842 GB, free: 24.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.238e-05/0.472, allocations: 39.98 kB / 0.5842 GB, free: 24.44 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002339/0.4744, allocations: 1.447 MB / 0.5856 GB, free: 22.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4744, allocations: 4 kB / 0.5856 GB, free: 22.97 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002343/0.4767, allocations: 0.6264 MB / 0.5862 GB, free: 22.35 MB / 366.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.0003286/0.4771, allocations: 165 kB / 0.5864 GB, free: 22.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003112/0.4802, allocations: 2.153 MB / 0.5885 GB, free: 20.01 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.251e-06/0.4802, allocations: 6 kB / 0.5885 GB, free: 20 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001261/0.4815, allocations: 0.9535 MB / 0.5894 GB, free: 19.04 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002658/0.4842, allocations: 0.5708 MB / 0.59 GB, free: 18.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009978/0.4942, allocations: 5.953 MB / 0.5958 GB, free: 12.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002462/0.4967, allocations: 2.423 MB / 0.5982 GB, free: 10.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002006/0.4987, allocations: 0.5054 MB / 0.5987 GB, free: 9.578 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000583/0.4993, allocations: 151.4 kB / 0.5988 GB, free: 9.434 MB / 366.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4993, allocations: 0 / 0.5988 GB, free: 9.434 MB / 366.1 MB Notification: Performance of Templates: time 0.04938/0.5487, allocations: 28.34 MB / 0.6265 GB, free: 13.45 MB / 398.1 MB 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 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe 2>&1)