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.01004/0.01004, allocations: 106.3 kB / 15.74 MB, free: 6.004 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.487/1.487, allocations: 222.9 MB / 239.4 MB, free: 4.512 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.00163/0.00163, allocations: 180.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.0343/0.0343, allocations: 8.794 MB / 348.6 MB, free: 4.594 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 75.88 kB / 463.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1266, allocations: 51.56 MB / 0.5034 GB, free: 9.555 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.02075/0.1474, allocations: 16.7 MB / 0.5197 GB, free: 8.773 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01343/0.1608, allocations: 5.465 MB / 0.525 GB, free: 3.293 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004327/0.1652, allocations: 103.6 kB / 0.5251 GB, free: 3.191 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004877/0.1701, allocations: 1.266 MB / 0.5264 GB, free: 1.914 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.007042/0.1773, allocations: 1.611 MB / 0.528 GB, free: 300 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2952/0.4725, allocations: 1.033 MB / 0.529 GB, free: 5.906 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008058/0.4805, allocations: 5.012 MB / 0.5339 GB, free: 5.902 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005561/0.4861, allocations: 4.319 MB / 0.5381 GB, free: 5.059 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005147/0.4913, allocations: 2.274 MB / 0.5403 GB, free: 4.738 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006925/0.4983, allocations: 2.655 MB / 0.5429 GB, free: 4.273 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0028/0.5011, allocations: 0.6201 MB / 0.5435 GB, free: 4.273 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003979/0.5051, allocations: 0.8399 MB / 0.5443 GB, free: 4.273 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001702/0.5068, allocations: 1.439 MB / 0.5457 GB, free: 4.109 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006068/0.5129, allocations: 2.649 MB / 0.5483 GB, free: 3.449 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0121/0.525, allocations: 8.124 MB / 0.5562 GB, free: 0.8125 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.5251, allocations: 0 / 0.5562 GB, free: 0.8125 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.5251, allocations: 1.219 kB / 0.5562 GB, free: 0.8125 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002711/0.5253, allocations: 0 / 0.5562 GB, free: 0.8125 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.0222/0.5476, allocations: 5.399 MB / 0.5615 GB, free: 13.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.972e-05/0.5476, allocations: 9.562 kB / 0.5615 GB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007413/0.5551, allocations: 0.9872 MB / 0.5625 GB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009643/0.5648, allocations: 3.034 MB / 0.5655 GB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004147/0.5652, allocations: 303.6 kB / 0.5657 GB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001723/0.5669, allocations: 398 kB / 0.5661 GB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01173/0.5787, allocations: 5.226 MB / 0.5712 GB, free: 6.375 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.468e-05/0.5788, allocations: 7.891 kB / 0.5712 GB, free: 6.367 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003874/0.5792, allocations: 164 kB / 0.5714 GB, free: 6.207 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001786/0.5794, allocations: 168 kB / 0.5715 GB, free: 6.039 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008662/0.5881, allocations: 4.47 MB / 0.5759 GB, free: 1.559 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02879/0.6169, allocations: 16.6 MB / 0.5921 GB, free: 0.832 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00805/0.625, allocations: 8.428 MB / 0.6004 GB, free: 7.379 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002877/0.6279, allocations: 1.701 MB / 0.602 GB, free: 5.68 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009145/0.6371, allocations: 4.98 MB / 0.6069 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.325e-05/0.6372, allocations: 47.88 kB / 0.6069 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of pre-optimization done (n=158): time 5.611e-06/0.6372, allocations: 0 / 0.6069 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of matching and sorting (n=161): time 0.01311/0.6503, allocations: 6.163 MB / 0.6129 GB, free: 10.21 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.953e-05/0.6504, allocations: 68.72 kB / 0.613 GB, free: 10.14 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003677/0.6541, allocations: 2.29 MB / 0.6152 GB, free: 7.82 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001348/0.6542, allocations: 49.7 kB / 0.6153 GB, free: 7.766 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001359/0.6556, allocations: 1.848 MB / 0.6171 GB, free: 5.902 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005204/0.6561, allocations: 0.5478 MB / 0.6176 GB, free: 5.359 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006243/0.6568, allocations: 395.7 kB / 0.618 GB, free: 4.965 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.6569, allocations: 305.1 kB / 0.6183 GB, free: 4.664 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001397/0.6583, allocations: 0.8436 MB / 0.6191 GB, free: 3.816 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00185/0.6601, allocations: 1.568 MB / 0.6207 GB, free: 1.934 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003391/0.6635, allocations: 2.568 MB / 0.6232 GB, free: 15.14 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.098e-05/0.6636, allocations: 8 kB / 0.6232 GB, free: 15.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.004952/0.6685, allocations: 2.895 MB / 0.626 GB, free: 12.34 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.434e-05/0.6686, allocations: 12 kB / 0.626 GB, free: 12.33 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.09e-05/0.6686, allocations: 24 kB / 0.626 GB, free: 12.31 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003679/0.669, allocations: 130.1 kB / 0.6262 GB, free: 12.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001875/0.6709, allocations: 0.5378 MB / 0.6267 GB, free: 11.67 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00177/0.6727, allocations: 2.015 MB / 0.6286 GB, free: 9.527 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002168/0.6748, allocations: 115.7 kB / 0.6288 GB, free: 9.414 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001846/0.675, allocations: 100.1 kB / 0.6289 GB, free: 9.316 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.002582/0.6776, allocations: 1.192 MB / 0.63 GB, free: 8.145 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006515/0.6783, allocations: 241.1 kB / 0.6302 GB, free: 7.906 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004846/0.6831, allocations: 2.461 MB / 0.6327 GB, free: 5.406 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.627e-05/0.6832, allocations: 16 kB / 0.6327 GB, free: 5.391 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/0.6832, allocations: 7.984 kB / 0.6327 GB, free: 5.383 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.772e-05/0.6832, allocations: 3.984 kB / 0.6327 GB, free: 5.379 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01151/0.6947, allocations: 5.803 MB / 0.6383 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.185e-06/0.6948, allocations: 0 / 0.6383 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001271/0.6961, allocations: 291.8 kB / 0.6386 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000869/0.697, allocations: 303.4 kB / 0.6389 GB, free: 14.89 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001144/0.6971, allocations: 39.98 kB / 0.639 GB, free: 14.86 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006532/0.7036, allocations: 6.996 MB / 0.6458 GB, free: 7.457 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.584e-06/0.7037, allocations: 0 / 0.6458 GB, free: 7.457 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006015/0.7097, allocations: 3.575 MB / 0.6493 GB, free: 3.801 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001532/0.7112, allocations: 498 kB / 0.6498 GB, free: 3.293 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004247/0.7117, allocations: 36 kB / 0.6498 GB, free: 3.258 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001185/0.7129, allocations: 87.86 kB / 0.6499 GB, free: 3.172 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003104/0.7132, allocations: 121.1 kB / 0.65 GB, free: 3.051 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001023/0.7133, allocations: 43.98 kB / 0.65 GB, free: 3.008 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002581/0.7159, allocations: 1.556 MB / 0.6515 GB, free: 1.438 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7159, allocations: 0 / 0.6515 GB, free: 1.438 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00275/0.7187, allocations: 0.6719 MB / 0.6522 GB, free: 0.7656 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.0003974/0.7191, allocations: 170.4 kB / 0.6524 GB, free: 0.5938 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004108/0.7232, allocations: 2.29 MB / 0.6546 GB, free: 14.27 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/0.7232, allocations: 4 kB / 0.6546 GB, free: 14.27 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002197/0.7254, allocations: 1.442 MB / 0.656 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.003084/0.7285, allocations: 0.6123 MB / 0.6566 GB, free: 12.18 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01302/0.7415, allocations: 6.868 MB / 0.6633 GB, free: 5.281 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002564/0.7442, allocations: 2.669 MB / 0.6659 GB, free: 2.59 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002129/0.7463, allocations: 0.5552 MB / 0.6665 GB, free: 2.031 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000496/0.7468, allocations: 167.4 kB / 0.6666 GB, free: 1.867 MB / 478.1 MB Notification: Performance of SimCode: time 5.21e-07/0.7468, allocations: 0 / 0.6666 GB, free: 1.867 MB / 478.1 MB Notification: Performance of Templates: time 0.0609/0.8077, allocations: 30.99 MB / 0.6969 GB, free: 3.246 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)