Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.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.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter") translateModel(HanserModelica.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01069/0.01069, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.456/1.456, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001216/0.001216, allocations: 188.5 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.03428/0.03428, allocations: 8.795 MB / 348.6 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0026/0.0026, allocations: 75.88 kB / 463.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1195, allocations: 51.57 MB / 0.5034 GB, free: 9.484 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01383/0.1334, allocations: 13.39 MB / 0.5165 GB, free: 12.04 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008962/0.1424, allocations: 4.423 MB / 0.5208 GB, free: 7.598 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002566/0.145, allocations: 87.62 kB / 0.5209 GB, free: 7.512 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003723/0.1487, allocations: 1.025 MB / 0.5219 GB, free: 6.48 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005257/0.154, allocations: 1.297 MB / 0.5231 GB, free: 5.18 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMR_Inverter.mo:88:3-88:33:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.002706/0.1568, allocations: 0.8704 MB / 0.524 GB, free: 4.309 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005107/0.1619, allocations: 3.804 MB / 0.5277 GB, free: 0.4922 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2391/0.401, allocations: 3.345 MB / 0.531 GB, free: 5.605 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003054/0.4041, allocations: 1.788 MB / 0.5327 GB, free: 5.484 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003003/0.4071, allocations: 2.008 MB / 0.5347 GB, free: 5.129 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008396/0.408, allocations: 499.3 kB / 0.5352 GB, free: 5.129 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001589/0.4096, allocations: 0.6924 MB / 0.5358 GB, free: 5.129 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008208/0.4104, allocations: 1.071 MB / 0.5369 GB, free: 5.004 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002368/0.4128, allocations: 2.038 MB / 0.5389 GB, free: 4.504 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007756/0.4205, allocations: 6.404 MB / 0.5451 GB, free: 3.867 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.575e-06/0.4206, allocations: 0 / 0.5451 GB, free: 3.867 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4206, allocations: 0 / 0.5451 GB, free: 3.867 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002166/0.4208, allocations: 0 / 0.5451 GB, free: 3.867 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01395/0.4348, allocations: 4.183 MB / 0.5492 GB, free: 2.332 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.4348, allocations: 15.12 kB / 0.5492 GB, free: 2.328 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00391/0.4388, allocations: 0.7449 MB / 0.55 GB, free: 2.148 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00453/0.4433, allocations: 2.317 MB / 0.5522 GB, free: 1.605 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001937/0.4435, allocations: 238.3 kB / 0.5524 GB, free: 1.598 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000676/0.4442, allocations: 309.2 kB / 0.5527 GB, free: 1.598 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008961/0.4532, allocations: 4.17 MB / 0.5568 GB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.724e-05/0.4533, allocations: 4.969 kB / 0.5568 GB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004692/0.4538, allocations: 130.5 kB / 0.5569 GB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002789/0.4541, allocations: 142 kB / 0.5571 GB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009526/0.4636, allocations: 3.51 MB / 0.5605 GB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02225/0.4859, allocations: 13.03 MB / 0.5732 GB, free: 3.695 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005409/0.4914, allocations: 5.515 MB / 0.5786 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00188/0.4933, allocations: 1.059 MB / 0.5796 GB, free: 12.63 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005742/0.499, allocations: 3.027 MB / 0.5826 GB, free: 9.562 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.605e-05/0.4991, allocations: 47.56 kB / 0.5826 GB, free: 9.504 MB / 398.1 MB Notification: Performance of pre-optimization done (n=107): time 4.949e-06/0.4991, allocations: 4 kB / 0.5827 GB, free: 9.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=110): time 0.009444/0.5086, allocations: 4.614 MB / 0.5872 GB, free: 4.734 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.196e-05/0.5087, allocations: 64.41 kB / 0.5872 GB, free: 4.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002363/0.511, allocations: 1.606 MB / 0.5888 GB, free: 3.047 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000106/0.5111, allocations: 45.7 kB / 0.5888 GB, free: 2.996 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009621/0.5121, allocations: 1.417 MB / 0.5902 GB, free: 1.562 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002858/0.5124, allocations: 388.2 kB / 0.5906 GB, free: 1.188 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004012/0.5128, allocations: 271.4 kB / 0.5908 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.765e-05/0.5129, allocations: 309 kB / 0.5911 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009227/0.5138, allocations: 0.5661 MB / 0.5917 GB, free: 44 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001317/0.5152, allocations: 1.058 MB / 0.5927 GB, free: 14.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002269/0.5175, allocations: 1.726 MB / 0.5944 GB, free: 12.89 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.785e-06/0.5175, allocations: 4 kB / 0.5944 GB, free: 12.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.003158/0.5206, allocations: 2.041 MB / 0.5964 GB, free: 10.91 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.746e-05/0.5207, allocations: 12 kB / 0.5964 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.236e-05/0.5207, allocations: 16 kB / 0.5964 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003772/0.5211, allocations: 138.9 kB / 0.5966 GB, free: 10.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001273/0.5224, allocations: 364.4 kB / 0.5969 GB, free: 10.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002838/0.5252, allocations: 3.377 MB / 0.6002 GB, free: 6.781 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001377/0.5266, allocations: 72.11 kB / 0.6003 GB, free: 6.711 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001203/0.5268, allocations: 68 kB / 0.6003 GB, free: 6.645 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 182 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001913/0.5287, allocations: 0.9635 MB / 0.6013 GB, free: 5.695 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003136/0.529, allocations: 176.7 kB / 0.6015 GB, free: 5.523 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003307/0.5323, allocations: 1.809 MB / 0.6032 GB, free: 3.668 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.116e-05/0.5323, allocations: 12 kB / 0.6032 GB, free: 3.656 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.5324, allocations: 4 kB / 0.6032 GB, free: 3.652 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.164e-05/0.5324, allocations: 3.984 kB / 0.6032 GB, free: 3.648 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007399/0.5398, allocations: 4.348 MB / 0.6075 GB, free: 15.22 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.028e-05/0.5398, allocations: 8 kB / 0.6075 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008415/0.5407, allocations: 180 kB / 0.6077 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009215/0.5416, allocations: 309.7 kB / 0.608 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.298e-05/0.5417, allocations: 27.98 kB / 0.608 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007619/0.5493, allocations: 8.192 MB / 0.616 GB, free: 5.996 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.95e-06/0.5494, allocations: 4.078 kB / 0.616 GB, free: 5.992 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004367/0.5537, allocations: 2.565 MB / 0.6185 GB, free: 3.359 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001164/0.5549, allocations: 366.9 kB / 0.6188 GB, free: 2.98 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002785/0.5552, allocations: 27.98 kB / 0.6189 GB, free: 2.953 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008746/0.5561, allocations: 55.97 kB / 0.6189 GB, free: 2.898 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002444/0.5563, allocations: 87.78 kB / 0.619 GB, free: 2.816 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.772e-05/0.5564, allocations: 31.98 kB / 0.619 GB, free: 2.785 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001667/0.5581, allocations: 1.098 MB / 0.6201 GB, free: 1.691 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.5581, allocations: 0 / 0.6201 GB, free: 1.691 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002119/0.5602, allocations: 0.504 MB / 0.6206 GB, free: 1.188 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (smr.inertiaRotor.w,smr.stator.zeroInductor.i0,smr.stator.core.Phi.re,smr.stator.core.Phi.im,smr.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003397/0.5606, allocations: 168 kB / 0.6208 GB, free: 1.027 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002902/0.5635, allocations: 1.713 MB / 0.6224 GB, free: 15.32 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.672e-06/0.5635, allocations: 8 kB / 0.6224 GB, free: 15.32 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001835/0.5654, allocations: 1.214 MB / 0.6236 GB, free: 14.07 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002512/0.5679, allocations: 0.5036 MB / 0.6241 GB, free: 13.57 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009905/0.5778, allocations: 5.36 MB / 0.6294 GB, free: 8.176 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002102/0.58, allocations: 2.229 MB / 0.6315 GB, free: 5.918 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00144/0.5814, allocations: 379.3 kB / 0.6319 GB, free: 5.543 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003354/0.5818, allocations: 119.4 kB / 0.632 GB, free: 5.426 MB / 446.1 MB Notification: Performance of SimCode: time 1.032e-06/0.5818, allocations: 0 / 0.632 GB, free: 5.426 MB / 446.1 MB Notification: Performance of Templates: time 0.05169/0.6335, allocations: 26.14 MB / 0.6575 GB, free: 11.62 MB / 478.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe 2>&1)