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.0009424/0.0009425, allocations: 91.53 kB / 15.36 MB, free: 0.7383 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.29/1.29, allocations: 223.3 MB / 239.4 MB, free: 5.523 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.000989/0.000989, allocations: 176.5 kB / 290.6 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03381/0.03381, allocations: 8.809 MB / 350.5 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003389/0.0003389, allocations: 10 kB / 413.9 MB, free: 42.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07668/0.07703, allocations: 52.56 MB / 466.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1): time 0.01509/0.09216, allocations: 15.01 MB / 481.5 MB, free: 13.96 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008552/0.1007, allocations: 5.177 MB / 486.7 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001534/0.1023, allocations: 91.62 kB / 486.8 MB, free: 8.672 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002352/0.1047, allocations: 1.065 MB / 487.8 MB, free: 7.605 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.003277/0.108, allocations: 1.38 MB / 489.2 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001809/0.1098, allocations: 0.8911 MB / 490.1 MB, free: 5.332 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004806/0.1146, allocations: 4.828 MB / 494.9 MB, free: 500 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003272/0.1179, allocations: 2.863 MB / 497.8 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002039/0.1199, allocations: 1.451 MB / 499.2 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002437/0.1224, allocations: 1.87 MB / 0.4894 GB, free: 10.22 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004276/0.1228, allocations: 232 kB / 0.4896 GB, free: 9.992 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00115/0.124, allocations: 459.7 kB / 0.49 GB, free: 9.543 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007377/0.1247, allocations: 0.852 MB / 0.4909 GB, free: 8.688 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002105/0.1268, allocations: 1.964 MB / 0.4928 GB, free: 6.707 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006741/0.1336, allocations: 6.844 MB / 0.4995 GB, free: 15.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1336, allocations: 0 / 0.4995 GB, free: 15.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.977e-06/0.1336, allocations: 0 / 0.4995 GB, free: 15.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001613/0.1338, allocations: 0 / 0.4995 GB, free: 15.84 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.01063/0.1444, allocations: 4.062 MB / 0.5034 GB, free: 11.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.1445, allocations: 12.03 kB / 0.5034 GB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001199/0.1457, allocations: 0.5529 MB / 0.504 GB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005309/0.151, allocations: 0.9485 MB / 0.5049 GB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005284/0.1563, allocations: 2.566 MB / 0.5074 GB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002291/0.1566, allocations: 279.8 kB / 0.5077 GB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007324/0.1573, allocations: 375.8 kB / 0.508 GB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009099/0.1664, allocations: 4.667 MB / 0.5126 GB, free: 2.207 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.909e-05/0.1665, allocations: 8 kB / 0.5126 GB, free: 2.199 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000338/0.1669, allocations: 148 kB / 0.5127 GB, free: 2.055 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001522/0.1671, allocations: 155.3 kB / 0.5129 GB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007976/0.175, allocations: 3.902 MB / 0.5167 GB, free: 14 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1785/0.3536, allocations: 15.45 MB / 0.5318 GB, free: 58.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004705/0.3583, allocations: 5.945 MB / 0.5376 GB, free: 53.95 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001944/0.3603, allocations: 1.261 MB / 0.5388 GB, free: 53.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006563/0.3669, allocations: 4.17 MB / 0.5429 GB, free: 52.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.134e-05/0.367, allocations: 52.12 kB / 0.5429 GB, free: 52.64 MB / 366.1 MB Notification: Performance of pre-optimization done (n=118): time 3.016e-06/0.367, allocations: 0 / 0.5429 GB, free: 52.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=144): time 0.01085/0.3778, allocations: 5.319 MB / 0.5481 GB, free: 51.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.828e-05/0.3779, allocations: 70 kB / 0.5482 GB, free: 51.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002995/0.3809, allocations: 2.176 MB / 0.5503 GB, free: 51.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001132/0.381, allocations: 53.55 kB / 0.5504 GB, free: 51.22 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008951/0.3819, allocations: 1.73 MB / 0.5521 GB, free: 50.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003135/0.3822, allocations: 0.4985 MB / 0.5526 GB, free: 50.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002138/0.3825, allocations: 180.4 kB / 0.5527 GB, free: 50.03 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.98e-05/0.3825, allocations: 304.9 kB / 0.553 GB, free: 49.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001165/0.3837, allocations: 0.7657 MB / 0.5538 GB, free: 49.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001459/0.3851, allocations: 1.55 MB / 0.5553 GB, free: 48.15 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01219/0.3973, allocations: 4.754 MB / 0.5599 GB, free: 45.72 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.439e-05/0.3974, allocations: 7.875 kB / 0.5599 GB, free: 45.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.004137/0.4016, allocations: 2.802 MB / 0.5627 GB, free: 44.24 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.7e-05/0.4016, allocations: 18.14 kB / 0.5627 GB, free: 44.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.472e-05/0.4016, allocations: 27.75 kB / 0.5627 GB, free: 44.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000713/0.4024, allocations: 282.8 kB / 0.563 GB, free: 44.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001528/0.4039, allocations: 0.4932 MB / 0.5635 GB, free: 43.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00298/0.4069, allocations: 3.171 MB / 0.5666 GB, free: 41.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001649/0.4085, allocations: 94.94 kB / 0.5667 GB, free: 41.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001169/0.4087, allocations: 106.6 kB / 0.5668 GB, free: 41.35 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 sytem: 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.001527/0.4102, allocations: 1.085 MB / 0.5678 GB, free: 40.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002646/0.4105, allocations: 228.1 kB / 0.568 GB, free: 40.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002658/0.4131, allocations: 1.774 MB / 0.5698 GB, free: 39.47 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/0.4132, allocations: 17.91 kB / 0.5698 GB, free: 39.46 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.4132, allocations: 4.406 kB / 0.5698 GB, free: 39.46 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.121e-05/0.4132, allocations: 7.969 kB / 0.5698 GB, free: 39.46 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006098/0.4193, allocations: 5.034 MB / 0.5747 GB, free: 35.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.4193, allocations: 4 kB / 0.5747 GB, free: 35.53 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001034/0.4204, allocations: 255.7 kB / 0.575 GB, free: 35.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005715/0.4209, allocations: 224.9 kB / 0.5752 GB, free: 35.06 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.286e-05/0.421, allocations: 35.94 kB / 0.5752 GB, free: 35.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002823/0.4239, allocations: 3.042 MB / 0.5782 GB, free: 31.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.4239, allocations: 12.03 kB / 0.5782 GB, free: 31.85 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003318/0.4272, allocations: 2.674 MB / 0.5808 GB, free: 29.13 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008286/0.428, allocations: 462.3 kB / 0.5812 GB, free: 28.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003299/0.4284, allocations: 32 kB / 0.5813 GB, free: 28.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/0.4294, allocations: 61.03 kB / 0.5813 GB, free: 28.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001731/0.4296, allocations: 97.17 kB / 0.5814 GB, free: 28.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.004e-05/0.4297, allocations: 43.98 kB / 0.5815 GB, free: 28.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00177/0.4315, allocations: 1.459 MB / 0.5829 GB, free: 26.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4315, allocations: 0 / 0.5829 GB, free: 26.95 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002117/0.4336, allocations: 0.6418 MB / 0.5835 GB, free: 26.31 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.003615/0.4372, allocations: 3.289 MB / 0.5867 GB, free: 22.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002926/0.4402, allocations: 2.158 MB / 0.5888 GB, free: 20.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.4402, allocations: 4.188 kB / 0.5888 GB, free: 20.78 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001229/0.4414, allocations: 0.9452 MB / 0.5898 GB, free: 19.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003213/0.4447, allocations: 0.5524 MB / 0.5903 GB, free: 19.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03939/0.4841, allocations: 26.65 MB / 0.6163 GB, free: 6.352 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002555/0.4867, allocations: 2.423 MB / 0.6187 GB, free: 3.895 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001892/0.4886, allocations: 0.4956 MB / 0.6192 GB, free: 3.395 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001723/0.4903, allocations: 1.323 MB / 0.6205 GB, free: 2.07 MB / 382.1 MB Notification: Performance of SimCode: time 8.02e-07/0.4903, allocations: 4 kB / 0.6205 GB, free: 2.066 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08211/0.5724, allocations: 54.07 MB / 0.6733 GB, free: 12.42 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001814/0.5727, allocations: 223.3 kB / 0.6735 GB, free: 12.17 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.716/3.289, allocations: 4 kB / 0.6735 GB, free: 12.16 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe 2>&1)