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.004171/0.004171, allocations: 95.61 kB / 15.73 MB, free: 6.047 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.232/1.232, allocations: 222.9 MB / 239.4 MB, free: 4.547 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.001214/0.001214, allocations: 192.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.03279/0.03279, allocations: 8.793 MB / 348.6 MB, free: 4.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 79.88 kB / 463.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07818/0.07953, allocations: 51.55 MB / 0.5034 GB, free: 9.523 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.01485/0.09442, allocations: 16.72 MB / 0.5197 GB, free: 8.727 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008358/0.1028, allocations: 5.449 MB / 0.525 GB, free: 3.262 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002116/0.1049, allocations: 103.6 kB / 0.5251 GB, free: 3.16 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003226/0.1082, allocations: 1.273 MB / 0.5264 GB, free: 1.875 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.004048/0.1123, allocations: 1.611 MB / 0.528 GB, free: 260 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1695/0.2818, allocations: 1.031 MB / 0.529 GB, free: 6.633 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004916/0.2867, allocations: 5.011 MB / 0.5339 GB, free: 6.629 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004266/0.291, allocations: 4.313 MB / 0.5381 GB, free: 5.781 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002893/0.2939, allocations: 2.264 MB / 0.5403 GB, free: 5.457 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003409/0.2973, allocations: 2.651 MB / 0.5429 GB, free: 4.996 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00129/0.2986, allocations: 0.6233 MB / 0.5435 GB, free: 4.996 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001877/0.3005, allocations: 0.8372 MB / 0.5443 GB, free: 4.996 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001151/0.3017, allocations: 1.438 MB / 0.5457 GB, free: 4.832 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002886/0.3046, allocations: 2.65 MB / 0.5483 GB, free: 4.172 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007576/0.3122, allocations: 8.147 MB / 0.5562 GB, free: 1.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3122, allocations: 4 kB / 0.5562 GB, free: 1.086 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3122, allocations: 3.656 kB / 0.5563 GB, free: 1.086 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001499/0.3124, allocations: 3.656 kB / 0.5563 GB, free: 1.086 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.01274/0.3251, allocations: 5.505 MB / 0.5616 GB, free: 13.39 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.3252, allocations: 8.969 kB / 0.5616 GB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005071/0.3302, allocations: 1.01 MB / 0.5626 GB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00547/0.3357, allocations: 3.049 MB / 0.5656 GB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000185/0.3359, allocations: 308.9 kB / 0.5659 GB, free: 10.72 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000569/0.3365, allocations: 395.7 kB / 0.5663 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008231/0.3447, allocations: 5.232 MB / 0.5714 GB, free: 6.426 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.884e-05/0.3449, allocations: 3.953 kB / 0.5714 GB, free: 6.422 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000359/0.3452, allocations: 164 kB / 0.5715 GB, free: 6.262 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001391/0.3454, allocations: 168 kB / 0.5717 GB, free: 6.094 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007355/0.3527, allocations: 4.469 MB / 0.5761 GB, free: 1.613 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02415/0.3769, allocations: 16.65 MB / 0.5923 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006376/0.3833, allocations: 8.431 MB / 0.6006 GB, free: 7.379 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002439/0.3858, allocations: 1.694 MB / 0.6022 GB, free: 5.688 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00669/0.3925, allocations: 4.993 MB / 0.6071 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/0.3925, allocations: 51.88 kB / 0.6071 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of pre-optimization done (n=158): time 2.615e-06/0.3925, allocations: 0 / 0.6071 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of matching and sorting (n=161): time 0.01004/0.4026, allocations: 6.209 MB / 0.6132 GB, free: 10.17 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.4026, allocations: 68.72 kB / 0.6133 GB, free: 10.09 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002741/0.4054, allocations: 2.286 MB / 0.6155 GB, free: 7.777 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.004e-05/0.4055, allocations: 57.7 kB / 0.6156 GB, free: 7.715 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001089/0.4066, allocations: 1.899 MB / 0.6174 GB, free: 5.809 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003762/0.4069, allocations: 0.5747 MB / 0.618 GB, free: 5.242 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005279/0.4075, allocations: 399.9 kB / 0.6184 GB, free: 4.844 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.738e-05/0.4076, allocations: 305.1 kB / 0.6186 GB, free: 4.543 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001314/0.4089, allocations: 0.8475 MB / 0.6195 GB, free: 3.691 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00171/0.4106, allocations: 1.565 MB / 0.621 GB, free: 1.812 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003097/0.4137, allocations: 2.563 MB / 0.6235 GB, free: 15.02 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.237e-06/0.4137, allocations: 11.94 kB / 0.6235 GB, free: 15.01 MB / 446.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.004226/0.418, allocations: 2.908 MB / 0.6264 GB, free: 12.21 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/0.418, allocations: 12 kB / 0.6264 GB, free: 12.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.395e-05/0.418, allocations: 24.53 kB / 0.6264 GB, free: 12.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003062/0.4183, allocations: 129.6 kB / 0.6265 GB, free: 12.04 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001823/0.4202, allocations: 0.5454 MB / 0.6271 GB, free: 11.53 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001504/0.4217, allocations: 2.003 MB / 0.629 GB, free: 9.398 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001501/0.4232, allocations: 111.9 kB / 0.6291 GB, free: 9.285 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001343/0.4233, allocations: 100 kB / 0.6292 GB, free: 9.188 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.001714/0.4251, allocations: 1.201 MB / 0.6304 GB, free: 7.988 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003081/0.4254, allocations: 258.4 kB / 0.6306 GB, free: 7.734 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003709/0.4291, allocations: 2.456 MB / 0.633 GB, free: 5.223 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/0.4291, allocations: 16 kB / 0.633 GB, free: 5.207 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.4291, allocations: 4 kB / 0.633 GB, free: 5.203 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.4e-05/0.4292, allocations: 11.95 kB / 0.6331 GB, free: 5.191 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007519/0.4367, allocations: 5.794 MB / 0.6387 GB, free: 15.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5e-06/0.4367, allocations: 4.188 kB / 0.6387 GB, free: 15.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001166/0.4379, allocations: 291.6 kB / 0.639 GB, free: 15.01 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006994/0.4386, allocations: 302.2 kB / 0.6393 GB, free: 14.71 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.245e-05/0.4387, allocations: 39.98 kB / 0.6393 GB, free: 14.67 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005669/0.4444, allocations: 7.007 MB / 0.6462 GB, free: 7.27 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.4444, allocations: 4.031 kB / 0.6462 GB, free: 7.266 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004764/0.4491, allocations: 3.586 MB / 0.6497 GB, free: 3.602 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007502/0.4499, allocations: 0.4993 MB / 0.6502 GB, free: 3.082 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002667/0.4502, allocations: 43.98 kB / 0.6502 GB, free: 3.039 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/0.4512, allocations: 87.86 kB / 0.6503 GB, free: 2.953 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002182/0.4514, allocations: 109.2 kB / 0.6504 GB, free: 2.844 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.999e-05/0.4515, allocations: 51.92 kB / 0.6504 GB, free: 2.793 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001924/0.4535, allocations: 1.549 MB / 0.652 GB, free: 1.23 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4535, allocations: 4 kB / 0.652 GB, free: 1.227 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001862/0.4553, allocations: 0.6719 MB / 0.6526 GB, free: 0.5547 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.0002675/0.4556, allocations: 170.3 kB / 0.6528 GB, free: 392 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003148/0.4588, allocations: 2.283 MB / 0.655 GB, free: 14.07 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.4588, allocations: 0 / 0.655 GB, free: 14.07 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001912/0.4607, allocations: 1.449 MB / 0.6564 GB, free: 12.59 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002107/0.4628, allocations: 0.5945 MB / 0.657 GB, free: 11.99 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009595/0.4724, allocations: 7.002 MB / 0.6638 GB, free: 4.953 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002412/0.4749, allocations: 2.665 MB / 0.6664 GB, free: 2.266 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001807/0.4767, allocations: 0.5591 MB / 0.667 GB, free: 1.703 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004498/0.4771, allocations: 163.4 kB / 0.6671 GB, free: 1.543 MB / 478.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4771, allocations: 0 / 0.6671 GB, free: 1.543 MB / 478.1 MB Notification: Performance of Templates: time 0.0499/0.5271, allocations: 31 MB / 0.6974 GB, free: 2.91 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)