Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.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_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL") translateModel(HanserModelica.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005507/0.005507, allocations: 100.1 kB / 15.73 MB, free: 6.062 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.39/1.39, allocations: 222.9 MB / 239.4 MB, free: 4.508 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.001558/0.001558, allocations: 184.5 kB / 289.7 MB, free: 2.234 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03436/0.03436, allocations: 8.795 MB / 348.6 MB, free: 4.59 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 79.88 kB / 463.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1174, allocations: 51.56 MB / 0.5034 GB, free: 9.438 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.01733/0.1347, allocations: 16.71 MB / 0.5197 GB, free: 8.645 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01157/0.1463, allocations: 5.453 MB / 0.525 GB, free: 3.176 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004008/0.1504, allocations: 103.6 kB / 0.5251 GB, free: 3.074 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004697/0.1551, allocations: 1.297 MB / 0.5264 GB, free: 1.766 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMEE_DOL.mo:12:3-13:30:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.006752/0.1619, allocations: 1.67 MB / 0.528 GB, free: 92 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.3046/0.4666, allocations: 1.033 MB / 0.5291 GB, free: 6.617 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007542/0.4741, allocations: 5.012 MB / 0.5339 GB, free: 6.613 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005618/0.4798, allocations: 4.311 MB / 0.5382 GB, free: 5.754 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004184/0.484, allocations: 2.277 MB / 0.5404 GB, free: 5.43 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005592/0.4896, allocations: 2.659 MB / 0.543 GB, free: 4.969 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002098/0.4917, allocations: 0.6238 MB / 0.5436 GB, free: 4.965 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003304/0.495, allocations: 0.841 MB / 0.5444 GB, free: 4.965 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001558/0.4966, allocations: 1.43 MB / 0.5458 GB, free: 4.801 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00621/0.5028, allocations: 2.646 MB / 0.5484 GB, free: 4.141 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0144/0.5173, allocations: 8.127 MB / 0.5563 GB, free: 1.027 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.5173, allocations: 0 / 0.5563 GB, free: 1.027 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.5173, allocations: 0 / 0.5563 GB, free: 1.027 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002731/0.5176, allocations: 1.312 kB / 0.5563 GB, free: 1.027 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: 1052 * Number of variables: 1052 Notification: Performance of Generate backend data structure: time 0.01633/0.5339, allocations: 5.397 MB / 0.5616 GB, free: 13.45 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.534, allocations: 10.38 kB / 0.5616 GB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005469/0.5395, allocations: 0.9886 MB / 0.5626 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007977/0.5475, allocations: 3.033 MB / 0.5655 GB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002944/0.5478, allocations: 307.1 kB / 0.5658 GB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001711/0.5495, allocations: 402.3 kB / 0.5662 GB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01159/0.5612, allocations: 5.219 MB / 0.5713 GB, free: 6.461 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-05/0.5613, allocations: 7.469 kB / 0.5713 GB, free: 6.457 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003889/0.5617, allocations: 160 kB / 0.5715 GB, free: 6.301 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001731/0.5619, allocations: 176 kB / 0.5716 GB, free: 6.125 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008762/0.5706, allocations: 4.465 MB / 0.576 GB, free: 1.648 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03648/0.6072, allocations: 16.59 MB / 0.5922 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008683/0.6159, allocations: 8.439 MB / 0.6004 GB, free: 7.461 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003291/0.6192, allocations: 1.693 MB / 0.6021 GB, free: 5.77 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0106/0.6299, allocations: 4.989 MB / 0.607 GB, free: 0.6523 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.528e-05/0.63, allocations: 51.16 kB / 0.607 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of pre-optimization done (n=158): time 3.727e-06/0.63, allocations: 0 / 0.607 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of matching and sorting (n=161): time 0.01412/0.6441, allocations: 6.163 MB / 0.613 GB, free: 10.3 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.6442, allocations: 68.72 kB / 0.6131 GB, free: 10.22 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006306/0.6505, allocations: 2.286 MB / 0.6153 GB, free: 7.906 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005994/0.6512, allocations: 53.7 kB / 0.6154 GB, free: 7.848 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001785/0.653, allocations: 1.839 MB / 0.6172 GB, free: 5.992 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000962/0.654, allocations: 0.5483 MB / 0.6177 GB, free: 5.449 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001315/0.6553, allocations: 395.6 kB / 0.6181 GB, free: 5.055 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.6554, allocations: 305.1 kB / 0.6184 GB, free: 4.754 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001809/0.6572, allocations: 0.8552 MB / 0.6192 GB, free: 3.895 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002276/0.6595, allocations: 1.558 MB / 0.6207 GB, free: 2.02 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004258/0.6638, allocations: 2.567 MB / 0.6232 GB, free: 15.23 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.557e-05/0.6639, allocations: 12 kB / 0.6233 GB, free: 15.22 MB / 446.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.006277/0.6701, allocations: 2.891 MB / 0.6261 GB, free: 12.43 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.826e-05/0.6702, allocations: 19.56 kB / 0.6261 GB, free: 12.42 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.684e-05/0.6703, allocations: 24 kB / 0.6261 GB, free: 12.39 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004015/0.6707, allocations: 133.6 kB / 0.6262 GB, free: 12.26 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002059/0.6728, allocations: 0.5371 MB / 0.6268 GB, free: 11.74 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002076/0.6749, allocations: 2.008 MB / 0.6287 GB, free: 9.586 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002479/0.6774, allocations: 123.8 kB / 0.6289 GB, free: 9.465 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002639/0.6776, allocations: 92 kB / 0.6289 GB, free: 9.375 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * 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 (270): * Single equations (assignments): 268 * 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 {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002976/0.6806, allocations: 1.196 MB / 0.6301 GB, free: 8.168 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009231/0.6816, allocations: 249 kB / 0.6303 GB, free: 7.922 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00532/0.6869, allocations: 2.456 MB / 0.6327 GB, free: 5.41 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.472e-05/0.6869, allocations: 16 kB / 0.6328 GB, free: 5.395 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-05/0.687, allocations: 4 kB / 0.6328 GB, free: 5.391 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.296e-05/0.687, allocations: 7.969 kB / 0.6328 GB, free: 5.383 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01488/0.7019, allocations: 5.797 MB / 0.6384 GB, free: 15.49 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.339e-05/0.702, allocations: 0 / 0.6384 GB, free: 15.49 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001386/0.7034, allocations: 291.8 kB / 0.6387 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009949/0.7044, allocations: 310.3 kB / 0.639 GB, free: 14.89 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001787/0.7046, allocations: 43.98 kB / 0.639 GB, free: 14.85 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007547/0.7121, allocations: 6.982 MB / 0.6459 GB, free: 7.465 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/0.7122, allocations: 4 kB / 0.6459 GB, free: 7.461 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00741/0.7196, allocations: 3.577 MB / 0.6494 GB, free: 3.805 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002058/0.7217, allocations: 0.4941 MB / 0.6498 GB, free: 3.289 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001086/0.7228, allocations: 32 kB / 0.6499 GB, free: 3.258 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002337/0.7251, allocations: 91.8 kB / 0.65 GB, free: 3.168 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005185/0.7257, allocations: 117.1 kB / 0.6501 GB, free: 3.051 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002016/0.7259, allocations: 47.98 kB / 0.6501 GB, free: 3.004 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005214/0.7312, allocations: 1.549 MB / 0.6516 GB, free: 1.441 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.825e-06/0.7312, allocations: 0 / 0.6516 GB, free: 1.441 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004966/0.7362, allocations: 0.6718 MB / 0.6523 GB, free: 0.7695 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,mechanicalSensor.flange_a.phi) * 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 (133): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006602/0.7368, allocations: 167.1 kB / 0.6524 GB, free: 0.5977 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00497/0.7418, allocations: 2.286 MB / 0.6547 GB, free: 14.28 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.137e-05/0.7419, allocations: 4 kB / 0.6547 GB, free: 14.28 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003221/0.7451, allocations: 1.452 MB / 0.6561 GB, free: 12.79 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005133/0.7503, allocations: 0.5931 MB / 0.6567 GB, free: 12.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01739/0.7677, allocations: 6.882 MB / 0.6634 GB, free: 5.285 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004498/0.7722, allocations: 2.669 MB / 0.666 GB, free: 2.594 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002808/0.7751, allocations: 0.5552 MB / 0.6666 GB, free: 2.035 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008547/0.7759, allocations: 163.4 kB / 0.6667 GB, free: 1.875 MB / 478.1 MB Notification: Performance of SimCode: time 1.463e-06/0.776, allocations: 0 / 0.6667 GB, free: 1.875 MB / 478.1 MB Notification: Performance of Templates: time 0.06452/0.8405, allocations: 31 MB / 0.697 GB, free: 3.254 MB / 0.4981 GB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe 2>&1)