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.005179/0.005179, allocations: 100.7 kB / 15.73 MB, free: 6.043 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.36/1.36, allocations: 222.9 MB / 239.4 MB, free: 4.527 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.001497/0.001497, allocations: 192.5 kB / 289.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03524/0.03524, allocations: 8.784 MB / 348.6 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 79.88 kB / 463.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1077, allocations: 51.56 MB / 0.5034 GB, free: 9.461 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01471/0.1225, allocations: 13.39 MB / 0.5165 GB, free: 12.01 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009841/0.1324, allocations: 4.426 MB / 0.5208 GB, free: 7.566 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002533/0.1349, allocations: 83.69 kB / 0.5209 GB, free: 7.484 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003496/0.1385, allocations: 1.068 MB / 0.5219 GB, free: 6.41 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005954/0.1445, allocations: 1.339 MB / 0.5232 GB, free: 5.066 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.002577/0.1471, allocations: 0.8611 MB / 0.5241 GB, free: 4.203 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005187/0.1523, allocations: 3.811 MB / 0.5278 GB, free: 392 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2772/0.4295, allocations: 3.348 MB / 0.5311 GB, free: 5.535 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002784/0.4324, allocations: 1.787 MB / 0.5328 GB, free: 5.418 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003192/0.4356, allocations: 2.007 MB / 0.5348 GB, free: 5.062 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00103/0.4366, allocations: 496.5 kB / 0.5352 GB, free: 5.062 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001845/0.4385, allocations: 0.6895 MB / 0.5359 GB, free: 5.059 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009287/0.4394, allocations: 1.078 MB / 0.537 GB, free: 4.934 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002813/0.4422, allocations: 2.036 MB / 0.539 GB, free: 4.434 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009611/0.4519, allocations: 6.402 MB / 0.5452 GB, free: 3.797 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.4519, allocations: 0 / 0.5452 GB, free: 3.797 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4519, allocations: 3.281 kB / 0.5452 GB, free: 3.797 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001822/0.4521, allocations: 1.344 kB / 0.5452 GB, free: 3.797 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.01282/0.4649, allocations: 4.181 MB / 0.5493 GB, free: 2.262 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.465, allocations: 8.875 kB / 0.5493 GB, free: 2.262 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003878/0.4689, allocations: 0.7505 MB / 0.55 GB, free: 2.078 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00417/0.473, allocations: 2.319 MB / 0.5523 GB, free: 1.535 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001674/0.4732, allocations: 237.2 kB / 0.5525 GB, free: 1.527 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005317/0.4738, allocations: 311.9 kB / 0.5528 GB, free: 1.527 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007495/0.4813, allocations: 4.162 MB / 0.5569 GB, free: 15.35 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.001e-05/0.4814, allocations: 12.89 kB / 0.5569 GB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003348/0.4817, allocations: 127.3 kB / 0.557 GB, free: 15.24 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001685/0.4819, allocations: 146.1 kB / 0.5572 GB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005979/0.4879, allocations: 3.505 MB / 0.5606 GB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01997/0.5079, allocations: 13.03 MB / 0.5733 GB, free: 3.645 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005492/0.5134, allocations: 5.505 MB / 0.5787 GB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001745/0.5152, allocations: 1.056 MB / 0.5797 GB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00639/0.5216, allocations: 3.031 MB / 0.5827 GB, free: 9.504 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.512e-05/0.5217, allocations: 43.56 kB / 0.5827 GB, free: 9.449 MB / 398.1 MB Notification: Performance of pre-optimization done (n=107): time 3.146e-06/0.5217, allocations: 0 / 0.5827 GB, free: 9.449 MB / 398.1 MB Notification: Performance of matching and sorting (n=110): time 0.01052/0.5322, allocations: 4.625 MB / 0.5872 GB, free: 4.672 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.863e-05/0.5323, allocations: 64.41 kB / 0.5873 GB, free: 4.598 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002762/0.535, allocations: 1.602 MB / 0.5889 GB, free: 2.988 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.344e-05/0.5351, allocations: 45.7 kB / 0.5889 GB, free: 2.938 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001203/0.5364, allocations: 1.424 MB / 0.5903 GB, free: 1.5 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003216/0.5367, allocations: 389.5 kB / 0.5907 GB, free: 1.121 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004728/0.5372, allocations: 271.3 kB / 0.5909 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.5373, allocations: 309.1 kB / 0.5912 GB, free: 0.543 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009716/0.5383, allocations: 0.5583 MB / 0.5918 GB, free: 15.98 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001446/0.5397, allocations: 1.066 MB / 0.5928 GB, free: 14.7 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002287/0.542, allocations: 1.724 MB / 0.5945 GB, free: 12.83 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.924e-06/0.542, allocations: 4 kB / 0.5945 GB, free: 12.83 MB / 414.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.00337/0.5454, allocations: 2.044 MB / 0.5965 GB, free: 10.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.491e-05/0.5455, allocations: 12 kB / 0.5965 GB, free: 10.83 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.138e-05/0.5455, allocations: 16 kB / 0.5965 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004719/0.546, allocations: 135.8 kB / 0.5967 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001434/0.5474, allocations: 367.6 kB / 0.597 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003305/0.5508, allocations: 3.37 MB / 0.6003 GB, free: 6.719 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001608/0.5524, allocations: 67.95 kB / 0.6004 GB, free: 6.652 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001254/0.5525, allocations: 70.62 kB / 0.6004 GB, free: 6.586 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.002144/0.5547, allocations: 0.9621 MB / 0.6014 GB, free: 5.637 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003506/0.555, allocations: 173.8 kB / 0.6015 GB, free: 5.465 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003287/0.5583, allocations: 1.813 MB / 0.6033 GB, free: 3.605 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.5583, allocations: 12 kB / 0.6033 GB, free: 3.594 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.5584, allocations: 4 kB / 0.6033 GB, free: 3.59 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.262e-05/0.5584, allocations: 7.969 kB / 0.6033 GB, free: 3.582 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007551/0.5659, allocations: 4.34 MB / 0.6076 GB, free: 15.16 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/0.566, allocations: 4 kB / 0.6076 GB, free: 15.16 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008342/0.5668, allocations: 178.4 kB / 0.6077 GB, free: 14.99 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008461/0.5677, allocations: 314.1 kB / 0.608 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.746e-05/0.5678, allocations: 27.98 kB / 0.6081 GB, free: 14.65 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007795/0.5756, allocations: 8.207 MB / 0.6161 GB, free: 5.93 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.666e-06/0.5756, allocations: 3.984 kB / 0.6161 GB, free: 5.926 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004628/0.5802, allocations: 2.561 MB / 0.6186 GB, free: 3.297 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001327/0.5816, allocations: 366.9 kB / 0.6189 GB, free: 2.918 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000247/0.5818, allocations: 27.98 kB / 0.619 GB, free: 2.891 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007914/0.5826, allocations: 51.97 kB / 0.619 GB, free: 2.84 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002432/0.5829, allocations: 87.5 kB / 0.6191 GB, free: 2.758 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.671e-05/0.583, allocations: 35.98 kB / 0.6191 GB, free: 2.723 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00186/0.5849, allocations: 1.095 MB / 0.6202 GB, free: 1.633 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5849, allocations: 0 / 0.6202 GB, free: 1.633 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00236/0.5872, allocations: 0.504 MB / 0.6207 GB, free: 1.129 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.0003623/0.5876, allocations: 164.5 kB / 0.6208 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00309/0.5907, allocations: 1.718 MB / 0.6225 GB, free: 15.26 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.5907, allocations: 1.938 kB / 0.6225 GB, free: 15.26 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001932/0.5927, allocations: 1.217 MB / 0.6237 GB, free: 14.01 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002624/0.5953, allocations: 0.5077 MB / 0.6242 GB, free: 13.51 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01118/0.6065, allocations: 5.356 MB / 0.6294 GB, free: 8.121 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002099/0.6086, allocations: 2.241 MB / 0.6316 GB, free: 5.852 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00143/0.6101, allocations: 375.3 kB / 0.632 GB, free: 5.48 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003259/0.6104, allocations: 119.4 kB / 0.6321 GB, free: 5.363 MB / 446.1 MB Notification: Performance of SimCode: time 7.91e-07/0.6104, allocations: 3.938 kB / 0.6321 GB, free: 5.359 MB / 446.1 MB Notification: Performance of Templates: time 0.0485/0.6589, allocations: 25.81 MB / 0.6573 GB, free: 11.88 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)