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.001612/0.001611, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.514/1.514, allocations: 222.9 MB / 240.1 MB, free: 4.387 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.001914/0.001914, allocations: 192.5 kB / 290.4 MB, free: 2.102 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0338/0.0338, allocations: 8.806 MB / 349.3 MB, free: 4.578 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 87.86 kB / 464.6 MB, free: 13.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1151, allocations: 51.56 MB / 0.5041 GB, free: 9.426 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.02054/0.1357, allocations: 16.71 MB / 0.5204 GB, free: 8.641 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01166/0.1474, allocations: 5.457 MB / 0.5257 GB, free: 3.168 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003598/0.151, allocations: 99.69 kB / 0.5258 GB, free: 3.07 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004382/0.1554, allocations: 1.266 MB / 0.527 GB, free: 1.793 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.006049/0.1616, allocations: 1.619 MB / 0.5286 GB, free: 168 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2706/0.4322, allocations: 1.029 MB / 0.5296 GB, free: 5.965 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007689/0.4399, allocations: 5.018 MB / 0.5345 GB, free: 5.961 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006696/0.4467, allocations: 4.308 MB / 0.5387 GB, free: 5.109 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005072/0.4518, allocations: 2.278 MB / 0.541 GB, free: 4.793 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006526/0.4583, allocations: 2.655 MB / 0.5436 GB, free: 4.328 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003931/0.4623, allocations: 0.6201 MB / 0.5442 GB, free: 4.328 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004677/0.467, allocations: 0.8442 MB / 0.545 GB, free: 4.328 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002683/0.4697, allocations: 1.427 MB / 0.5464 GB, free: 4.164 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007746/0.4775, allocations: 2.659 MB / 0.549 GB, free: 3.504 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01394/0.4914, allocations: 8.119 MB / 0.5569 GB, free: 0.7852 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.366e-06/0.4915, allocations: 3.75 kB / 0.5569 GB, free: 0.7852 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.4915, allocations: 0 / 0.5569 GB, free: 0.7852 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003085/0.4918, allocations: 1.375 kB / 0.5569 GB, free: 0.7852 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.01987/0.5117, allocations: 5.392 MB / 0.5622 GB, free: 13.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/0.5118, allocations: 9.062 kB / 0.5622 GB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006654/0.5184, allocations: 0.9917 MB / 0.5632 GB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009624/0.5281, allocations: 3.031 MB / 0.5661 GB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004301/0.5286, allocations: 310.4 kB / 0.5664 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001876/0.5305, allocations: 393.1 kB / 0.5668 GB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01705/0.5475, allocations: 5.231 MB / 0.5719 GB, free: 6.309 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000256/0.5478, allocations: 0 / 0.5719 GB, free: 6.309 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001827/0.5497, allocations: 166.8 kB / 0.5721 GB, free: 6.148 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002557/0.55, allocations: 175.5 kB / 0.5722 GB, free: 5.977 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01384/0.5638, allocations: 4.462 MB / 0.5766 GB, free: 1.504 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04051/0.6044, allocations: 16.6 MB / 0.5928 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009604/0.614, allocations: 8.43 MB / 0.601 GB, free: 7.316 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00371/0.6178, allocations: 1.697 MB / 0.6027 GB, free: 5.621 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01188/0.6297, allocations: 4.98 MB / 0.6075 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.304e-05/0.6298, allocations: 51.88 kB / 0.6076 GB, free: 464 kB / 414.1 MB Notification: Performance of pre-optimization done (n=158): time 4.439e-06/0.6299, allocations: 0 / 0.6076 GB, free: 464 kB / 414.1 MB Notification: Performance of matching and sorting (n=161): time 0.01484/0.6447, allocations: 6.159 MB / 0.6136 GB, free: 10.16 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.848e-05/0.6448, allocations: 72.72 kB / 0.6137 GB, free: 10.08 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005408/0.6502, allocations: 2.286 MB / 0.6159 GB, free: 7.766 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003006/0.6505, allocations: 49.7 kB / 0.616 GB, free: 7.711 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001528/0.6521, allocations: 1.841 MB / 0.6178 GB, free: 5.852 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007137/0.6528, allocations: 0.5555 MB / 0.6183 GB, free: 5.301 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008555/0.6537, allocations: 395.6 kB / 0.6187 GB, free: 4.906 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.6538, allocations: 312.6 kB / 0.619 GB, free: 4.602 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0016/0.6554, allocations: 0.8475 MB / 0.6198 GB, free: 3.75 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002152/0.6576, allocations: 1.565 MB / 0.6213 GB, free: 1.867 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003954/0.6615, allocations: 2.566 MB / 0.6238 GB, free: 15.08 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.489e-05/0.6616, allocations: 4 kB / 0.6238 GB, free: 15.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.005739/0.6673, allocations: 2.897 MB / 0.6267 GB, free: 12.28 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.927e-05/0.6674, allocations: 16 kB / 0.6267 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.89e-05/0.6675, allocations: 23.94 kB / 0.6267 GB, free: 12.24 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003839/0.6679, allocations: 126.1 kB / 0.6268 GB, free: 12.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002075/0.6699, allocations: 0.5419 MB / 0.6274 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002262/0.6722, allocations: 2.018 MB / 0.6293 GB, free: 9.465 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002599/0.6748, allocations: 107.8 kB / 0.6294 GB, free: 9.359 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002624/0.6751, allocations: 99.98 kB / 0.6295 GB, free: 9.262 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.003571/0.6787, allocations: 1.19 MB / 0.6307 GB, free: 8.07 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008541/0.6796, allocations: 249 kB / 0.6309 GB, free: 7.824 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005809/0.6854, allocations: 2.46 MB / 0.6333 GB, free: 5.309 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-05/0.6854, allocations: 16 kB / 0.6333 GB, free: 5.293 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.828e-05/0.6855, allocations: 8 kB / 0.6334 GB, free: 5.285 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.088e-05/0.6855, allocations: 7.969 kB / 0.6334 GB, free: 5.277 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01393/0.6994, allocations: 5.797 MB / 0.639 GB, free: 15.39 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.464e-05/0.6995, allocations: 4 kB / 0.639 GB, free: 15.38 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001344/0.7009, allocations: 291.8 kB / 0.6393 GB, free: 15.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00087/0.7018, allocations: 294.3 kB / 0.6396 GB, free: 14.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001432/0.7019, allocations: 39.98 kB / 0.6396 GB, free: 14.76 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007464/0.7095, allocations: 6.993 MB / 0.6465 GB, free: 7.363 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.7096, allocations: 0 / 0.6465 GB, free: 7.363 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007161/0.7167, allocations: 3.58 MB / 0.6499 GB, free: 3.703 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001688/0.7184, allocations: 0.494 MB / 0.6504 GB, free: 3.188 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008443/0.7193, allocations: 39.92 kB / 0.6505 GB, free: 3.148 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001729/0.721, allocations: 83.88 kB / 0.6505 GB, free: 3.066 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003402/0.7214, allocations: 117.1 kB / 0.6507 GB, free: 2.949 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001289/0.7215, allocations: 47.98 kB / 0.6507 GB, free: 2.902 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00343/0.725, allocations: 1.549 MB / 0.6522 GB, free: 1.34 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.725, allocations: 0 / 0.6522 GB, free: 1.34 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003496/0.7285, allocations: 0.668 MB / 0.6529 GB, free: 0.6719 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.0004768/0.729, allocations: 178.2 kB / 0.653 GB, free: 0.4922 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00444/0.7334, allocations: 2.289 MB / 0.6553 GB, free: 14.17 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.754e-06/0.7335, allocations: 0 / 0.6553 GB, free: 14.17 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002684/0.7362, allocations: 1.442 MB / 0.6567 GB, free: 12.69 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005083/0.7413, allocations: 0.606 MB / 0.6573 GB, free: 12.09 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01555/0.7568, allocations: 6.852 MB / 0.664 GB, free: 5.195 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002626/0.7595, allocations: 2.595 MB / 0.6665 GB, free: 2.578 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009261/0.7605, allocations: 187.4 kB / 0.6667 GB, free: 2.395 MB / 478.1 MB Notification: Performance of SimCode: time 1.052e-06/0.7605, allocations: 0 / 0.6667 GB, free: 2.395 MB / 478.1 MB Notification: Performance of Templates: time 0.3558/1.116, allocations: 95.69 MB / 0.7601 GB, free: 171.6 MB / 0.5294 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)