Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.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_ShortCircuit2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2") translateModel(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005325/0.005325, allocations: 96.39 kB / 15.73 MB, free: 6.484 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.268/1.268, allocations: 222.9 MB / 239.4 MB, free: 4.559 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.001265/0.001265, allocations: 196.4 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03327/0.03327, allocations: 8.792 MB / 348.6 MB, free: 4.656 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 75.88 kB / 464 MB, free: 13.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0876/0.08909, allocations: 51.57 MB / 0.5035 GB, free: 9.469 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.01549/0.1046, allocations: 15.92 MB / 0.519 GB, free: 9.473 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008767/0.1134, allocations: 5.298 MB / 0.5242 GB, free: 4.16 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002049/0.1155, allocations: 95.69 kB / 0.5243 GB, free: 4.066 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003051/0.1186, allocations: 1.219 MB / 0.5255 GB, free: 2.836 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.004054/0.1227, allocations: 1.526 MB / 0.527 GB, free: 1.301 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00222/0.1249, allocations: 0.9779 MB / 0.5279 GB, free: 332 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.1823/0.3072, allocations: 4.593 MB / 0.5324 GB, free: 6.164 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003494/0.3107, allocations: 3.482 MB / 0.5358 GB, free: 5.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002524/0.3133, allocations: 2.051 MB / 0.5378 GB, free: 5.305 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002708/0.316, allocations: 2.325 MB / 0.5401 GB, free: 4.887 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008213/0.3168, allocations: 0.5606 MB / 0.5406 GB, free: 4.887 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001569/0.3184, allocations: 0.7697 MB / 0.5414 GB, free: 4.887 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008945/0.3193, allocations: 1.242 MB / 0.5426 GB, free: 4.738 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002547/0.3219, allocations: 2.373 MB / 0.5449 GB, free: 4.156 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006674/0.3285, allocations: 7.339 MB / 0.5521 GB, free: 3.148 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.3286, allocations: 0 / 0.5521 GB, free: 3.148 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3286, allocations: 0 / 0.5521 GB, free: 3.148 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001279/0.3287, allocations: 5.156 kB / 0.5521 GB, free: 3.145 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.01009/0.3388, allocations: 4.928 MB / 0.5569 GB, free: 108 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.3389, allocations: 13.12 kB / 0.5569 GB, free: 108 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004827/0.3437, allocations: 0.9601 MB / 0.5578 GB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00453/0.3482, allocations: 2.754 MB / 0.5605 GB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001492/0.3484, allocations: 272.9 kB / 0.5608 GB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004516/0.3489, allocations: 368.9 kB / 0.5611 GB, free: 13.53 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007078/0.3559, allocations: 4.683 MB / 0.5657 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.397e-05/0.356, allocations: 3.953 kB / 0.5657 GB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003327/0.3564, allocations: 155.8 kB / 0.5659 GB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001051/0.3565, allocations: 151.4 kB / 0.566 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005778/0.3623, allocations: 3.903 MB / 0.5698 GB, free: 7.816 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0204/0.3827, allocations: 15.34 MB / 0.5848 GB, free: 8.336 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00532/0.388, allocations: 6.136 MB / 0.5908 GB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002319/0.3904, allocations: 1.444 MB / 0.5922 GB, free: 15.98 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006165/0.3966, allocations: 4.239 MB / 0.5963 GB, free: 11.61 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.797e-05/0.3966, allocations: 47.56 kB / 0.5964 GB, free: 11.56 MB / 414.1 MB Notification: Performance of pre-optimization done (n=125): time 3.045e-06/0.3966, allocations: 0 / 0.5964 GB, free: 11.56 MB / 414.1 MB Notification: Performance of matching and sorting (n=156): time 0.01172/0.4083, allocations: 6.171 MB / 0.6024 GB, free: 5.34 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.476e-05/0.4084, allocations: 64.72 kB / 0.6025 GB, free: 5.262 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002608/0.411, allocations: 2.073 MB / 0.6045 GB, free: 3.152 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.901e-05/0.4111, allocations: 49.7 kB / 0.6046 GB, free: 3.098 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001025/0.4121, allocations: 1.745 MB / 0.6063 GB, free: 1.348 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003664/0.4125, allocations: 0.5628 MB / 0.6068 GB, free: 0.793 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000553/0.4131, allocations: 412.1 kB / 0.6072 GB, free: 392 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.703e-05/0.4132, allocations: 301.1 kB / 0.6075 GB, free: 88 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001155/0.4143, allocations: 0.7774 MB / 0.6082 GB, free: 15.3 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001609/0.4159, allocations: 1.55 MB / 0.6098 GB, free: 13.41 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01194/0.4279, allocations: 4.799 MB / 0.6144 GB, free: 8.359 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-05/0.4279, allocations: 8 kB / 0.6145 GB, free: 8.352 MB / 430.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.004282/0.4322, allocations: 2.881 MB / 0.6173 GB, free: 5.613 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.4322, allocations: 16 kB / 0.6173 GB, free: 5.598 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.505e-05/0.4323, allocations: 27.66 kB / 0.6173 GB, free: 5.574 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008399/0.4331, allocations: 357.9 kB / 0.6177 GB, free: 5.223 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001503/0.4346, allocations: 490.8 kB / 0.6181 GB, free: 4.777 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004702/0.4394, allocations: 4.103 MB / 0.6221 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001554/0.4409, allocations: 95.88 kB / 0.6222 GB, free: 480 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001452/0.4411, allocations: 96 kB / 0.6223 GB, free: 384 kB / 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[1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 112 * 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 (256): * Single equations (assignments): 254 * 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 {(4,23,68.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001894/0.443, allocations: 1.105 MB / 0.6234 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003288/0.4433, allocations: 234.5 kB / 0.6236 GB, free: 15.07 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003171/0.4465, allocations: 1.984 MB / 0.6255 GB, free: 13.08 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.159e-05/0.4465, allocations: 16 kB / 0.6256 GB, free: 13.07 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.4465, allocations: 4 kB / 0.6256 GB, free: 13.06 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.446e-05/0.4465, allocations: 7.969 kB / 0.6256 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007577/0.4541, allocations: 5.438 MB / 0.6309 GB, free: 7.559 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.4541, allocations: 0 / 0.6309 GB, free: 7.559 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001057/0.4552, allocations: 274 kB / 0.6311 GB, free: 7.305 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007215/0.4559, allocations: 284.6 kB / 0.6314 GB, free: 7.023 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.728e-05/0.456, allocations: 35.98 kB / 0.6315 GB, free: 6.988 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00423/0.4603, allocations: 3.835 MB / 0.6352 GB, free: 3.027 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.68e-06/0.4603, allocations: 12.03 kB / 0.6352 GB, free: 3.016 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003984/0.4643, allocations: 2.941 MB / 0.6381 GB, free: 40 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007938/0.4651, allocations: 483.5 kB / 0.6385 GB, free: 15.55 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003231/0.4654, allocations: 32 kB / 0.6386 GB, free: 15.52 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009548/0.4664, allocations: 55.97 kB / 0.6386 GB, free: 15.46 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001948/0.4666, allocations: 116.8 kB / 0.6387 GB, free: 15.35 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.382e-05/0.4667, allocations: 43.98 kB / 0.6388 GB, free: 15.31 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001933/0.4686, allocations: 1.391 MB / 0.6401 GB, free: 13.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4687, allocations: 0 / 0.6401 GB, free: 13.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001928/0.4706, allocations: 0.6406 MB / 0.6408 GB, free: 13.26 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 5 (smee.phiMechanical,smee.is[2],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 (132): * Single equations (assignments): 131 * 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 {(3,22,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002783/0.4709, allocations: 164.9 kB / 0.6409 GB, free: 13.11 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003334/0.4742, allocations: 2.291 MB / 0.6432 GB, free: 10.87 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.4742, allocations: 0 / 0.6432 GB, free: 10.87 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001606/0.4758, allocations: 1.083 MB / 0.6442 GB, free: 9.785 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002382/0.4782, allocations: 0.5726 MB / 0.6448 GB, free: 9.215 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009998/0.4883, allocations: 6.216 MB / 0.6508 GB, free: 2.941 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002202/0.4905, allocations: 2.439 MB / 0.6532 GB, free: 484 kB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001475/0.492, allocations: 499.7 kB / 0.6537 GB, free: 15.98 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004268/0.4924, allocations: 155.4 kB / 0.6539 GB, free: 15.83 MB / 478.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4924, allocations: 0 / 0.6539 GB, free: 15.83 MB / 478.1 MB Notification: Performance of Templates: time 0.04664/0.539, allocations: 30.18 MB / 0.6833 GB, free: 2.016 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe 2>&1)