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.001084/0.001084, allocations: 105.2 kB / 15.99 MB, free: 6.352 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 / 239.6 MB, free: 4.73 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.001456/0.001456, allocations: 192.5 kB / 289.9 MB, free: 2.477 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03557/0.03557, allocations: 8.794 MB / 348.9 MB, free: 4.859 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001682/0.001682, allocations: 78.05 kB / 411.2 MB, free: 42.31 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09484/0.09655, allocations: 51.58 MB / 462.8 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.01789/0.1145, allocations: 15.72 MB / 478.5 MB, free: 14.98 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009956/0.1245, allocations: 5.22 MB / 483.8 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002939/0.1275, allocations: 91.69 kB / 483.8 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003987/0.1315, allocations: 1.073 MB / 484.9 MB, free: 8.574 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.005138/0.1367, allocations: 1.375 MB / 486.3 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002738/0.1394, allocations: 0.8941 MB / 487.2 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006586/0.146, allocations: 4.7 MB / 491.9 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005517/0.1516, allocations: 3.481 MB / 495.4 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003394/0.155, allocations: 1.951 MB / 497.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003793/0.1588, allocations: 2.304 MB / 499.6 MB, free: 9.762 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001595/0.1604, allocations: 0.5547 MB / 0.4885 GB, free: 9.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002566/0.163, allocations: 0.7771 MB / 0.4892 GB, free: 8.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001737/0.1648, allocations: 1.235 MB / 0.4904 GB, free: 7.191 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004676/0.1695, allocations: 2.373 MB / 0.4927 GB, free: 4.809 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007544/0.177, allocations: 6.181 MB / 0.4988 GB, free: 14.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/0.1771, allocations: 3.938 kB / 0.4988 GB, free: 14.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1771, allocations: 0 / 0.4988 GB, free: 14.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002232/0.1773, allocations: 4 kB / 0.4988 GB, free: 14.61 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.01429/0.1916, allocations: 4.814 MB / 0.5035 GB, free: 9.719 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.12e-05/0.1917, allocations: 12.03 kB / 0.5035 GB, free: 9.707 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005455/0.1972, allocations: 0.9445 MB / 0.5044 GB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00566/0.2029, allocations: 2.558 MB / 0.5069 GB, free: 6.145 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002274/0.2031, allocations: 279.7 kB / 0.5072 GB, free: 5.871 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008411/0.204, allocations: 368 kB / 0.5075 GB, free: 5.512 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009938/0.2139, allocations: 4.684 MB / 0.5121 GB, free: 0.7773 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.02e-05/0.214, allocations: 3.984 kB / 0.5121 GB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003612/0.2144, allocations: 155.9 kB / 0.5123 GB, free: 0.6211 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001467/0.2146, allocations: 159.3 kB / 0.5124 GB, free: 476 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00698/0.2216, allocations: 3.905 MB / 0.5162 GB, free: 12.55 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2031/0.4247, allocations: 15.51 MB / 0.5314 GB, free: 57.54 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005653/0.4304, allocations: 6.128 MB / 0.5374 GB, free: 53.08 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002944/0.4333, allocations: 1.402 MB / 0.5387 GB, free: 53.06 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008436/0.4418, allocations: 4.281 MB / 0.5429 GB, free: 51.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.924e-05/0.4419, allocations: 48.23 kB / 0.543 GB, free: 51.87 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 3.797e-06/0.4419, allocations: 0 / 0.543 GB, free: 51.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=156): time 0.01432/0.4562, allocations: 6.193 MB / 0.549 GB, free: 50.69 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.459e-05/0.4563, allocations: 67.88 kB / 0.5491 GB, free: 50.62 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003444/0.4598, allocations: 2.093 MB / 0.5511 GB, free: 50.38 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001944/0.46, allocations: 50.58 kB / 0.5512 GB, free: 50.35 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001056/0.461, allocations: 1.702 MB / 0.5528 GB, free: 49.11 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004977/0.4615, allocations: 0.5384 MB / 0.5533 GB, free: 48.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006945/0.4622, allocations: 409.9 kB / 0.5537 GB, free: 48.49 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.26e-05/0.4623, allocations: 301.1 kB / 0.554 GB, free: 48.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001081/0.4634, allocations: 0.7849 MB / 0.5548 GB, free: 47.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001293/0.4647, allocations: 1.545 MB / 0.5563 GB, free: 46.59 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01231/0.477, allocations: 4.851 MB / 0.561 GB, free: 43.72 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.458e-05/0.4771, allocations: 4.594 kB / 0.561 GB, free: 43.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.004529/0.4816, allocations: 2.892 MB / 0.5639 GB, free: 42.19 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.622e-05/0.4817, allocations: 14.44 kB / 0.5639 GB, free: 42.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.015e-05/0.4817, allocations: 28.38 kB / 0.5639 GB, free: 42.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009414/0.4827, allocations: 364.8 kB / 0.5643 GB, free: 42.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001553/0.4843, allocations: 492.5 kB / 0.5647 GB, free: 41.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00416/0.4884, allocations: 4.139 MB / 0.5688 GB, free: 38.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001986/0.4904, allocations: 91.56 kB / 0.5689 GB, free: 38.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001752/0.4906, allocations: 99.7 kB / 0.569 GB, free: 38.61 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[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.001816/0.4925, allocations: 1.099 MB / 0.57 GB, free: 37.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004878/0.4929, allocations: 223.8 kB / 0.5702 GB, free: 37.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002991/0.4959, allocations: 2.001 MB / 0.5722 GB, free: 36.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.115e-05/0.496, allocations: 18.02 kB / 0.5722 GB, free: 36.58 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.496, allocations: 7.562 kB / 0.5722 GB, free: 36.58 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.244e-05/0.496, allocations: 3.984 kB / 0.5722 GB, free: 36.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007437/0.5034, allocations: 5.511 MB / 0.5776 GB, free: 31.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.844e-06/0.5035, allocations: 8.031 kB / 0.5776 GB, free: 31.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001042/0.5045, allocations: 259.7 kB / 0.5779 GB, free: 31.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007619/0.5053, allocations: 301.4 kB / 0.5781 GB, free: 30.78 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.644e-05/0.5054, allocations: 40.78 kB / 0.5782 GB, free: 30.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003648/0.5091, allocations: 3.887 MB / 0.582 GB, free: 26.72 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.5091, allocations: 3.938 kB / 0.582 GB, free: 26.72 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003855/0.513, allocations: 2.958 MB / 0.5849 GB, free: 23.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001018/0.514, allocations: 470.3 kB / 0.5853 GB, free: 23.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002914/0.5143, allocations: 35.75 kB / 0.5854 GB, free: 23.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009944/0.5153, allocations: 55.97 kB / 0.5854 GB, free: 23.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002015/0.5155, allocations: 113.1 kB / 0.5855 GB, free: 23.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.571e-05/0.5156, allocations: 48.61 kB / 0.5856 GB, free: 22.99 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0017/0.5173, allocations: 1.407 MB / 0.5869 GB, free: 21.56 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5173, allocations: 0 / 0.5869 GB, free: 21.56 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002006/0.5193, allocations: 0.6484 MB / 0.5876 GB, free: 20.91 MB / 366.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.0002936/0.5196, allocations: 159.9 kB / 0.5877 GB, free: 20.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004903/0.5246, allocations: 2.749 MB / 0.5904 GB, free: 18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.5246, allocations: 3.172 kB / 0.5904 GB, free: 18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001441/0.526, allocations: 1.083 MB / 0.5915 GB, free: 16.9 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002495/0.5285, allocations: 0.5804 MB / 0.592 GB, free: 16.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009086/0.5376, allocations: 7.68 MB / 0.5995 GB, free: 8.621 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001438/0.5391, allocations: 2.385 MB / 0.6019 GB, free: 6.211 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006156/0.5397, allocations: 163.4 kB / 0.602 GB, free: 6.051 MB / 366.1 MB Notification: Performance of SimCode: time 7.92e-07/0.5397, allocations: 0 / 0.602 GB, free: 6.051 MB / 366.1 MB Notification: Performance of Templates: time 0.08093/0.6207, allocations: 68.74 MB / 0.6691 GB, free: 1.414 MB / 430.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)