Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.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.InductionMachines.IMC_Inverter2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2") translateModel(HanserModelica.InductionMachines.IMC_Inverter2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2") 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: 100.3 kB / 15.87 MB, free: 5.867 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.12/2.12, allocations: 222.9 MB / 239.5 MB, free: 4.82 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.003231/0.003231, allocations: 196.5 kB / 289.8 MB, free: 2.555 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06577/0.06577, allocations: 8.792 MB / 348.7 MB, free: 4.957 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 76.69 kB / 411 MB, free: 42.41 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1259, allocations: 51.57 MB / 462.6 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter2): time 0.01676/0.1427, allocations: 13 MB / 475.6 MB, free: 1.941 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0111/0.1538, allocations: 4.295 MB / 479.9 MB, free: 13.63 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003932/0.1578, allocations: 79.69 kB / 480 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004347/0.1622, allocations: 0.9019 MB / 480.9 MB, free: 12.65 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006351/0.1686, allocations: 1.166 MB / 482.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003147/0.1718, allocations: 0.7919 MB / 482.8 MB, free: 10.69 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00807/0.1798, allocations: 4.308 MB / 487.2 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004445/0.1844, allocations: 2.927 MB / 490.1 MB, free: 3.363 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002905/0.1873, allocations: 1.537 MB / 491.6 MB, free: 1.82 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00312/0.1904, allocations: 1.965 MB / 493.6 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007924/0.1913, allocations: 312 kB / 493.9 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001695/0.193, allocations: 0.5154 MB / 494.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009492/0.1939, allocations: 0.9148 MB / 495.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002925/0.1969, allocations: 1.94 MB / 497.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006633/0.2035, allocations: 5.815 MB / 0.4913 GB, free: 6.332 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.2036, allocations: 0 / 0.4913 GB, free: 6.332 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.995e-06/0.2036, allocations: 0 / 0.4913 GB, free: 6.332 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000211/0.2038, allocations: 0 / 0.4913 GB, free: 6.332 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 880 * Number of variables: 880 Notification: Performance of Generate backend data structure: time 0.01435/0.2182, allocations: 4.426 MB / 0.4956 GB, free: 1.836 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.9e-05/0.2183, allocations: 8.031 kB / 0.4956 GB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005122/0.2234, allocations: 0.8357 MB / 0.4964 GB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005486/0.2289, allocations: 2.364 MB / 0.4987 GB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002528/0.2292, allocations: 251 kB / 0.499 GB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000724/0.2299, allocations: 336 kB / 0.4993 GB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01074/0.2407, allocations: 4.508 MB / 0.5037 GB, free: 9.441 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.58e-05/0.2408, allocations: 4 kB / 0.5037 GB, free: 9.438 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003355/0.2411, allocations: 132 kB / 0.5038 GB, free: 9.309 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001743/0.2413, allocations: 166.7 kB / 0.504 GB, free: 9.145 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01252/0.2539, allocations: 3.817 MB / 0.5077 GB, free: 5.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02769/0.2816, allocations: 14.18 MB / 0.5216 GB, free: 6.723 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3269/0.6085, allocations: 6.141 MB / 0.5276 GB, free: 64.39 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00308/0.6116, allocations: 1.2 MB / 0.5287 GB, free: 64.37 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006567/0.6182, allocations: 3.313 MB / 0.532 GB, free: 63.79 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.589e-05/0.6183, allocations: 47.75 kB / 0.532 GB, free: 63.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 3.616e-06/0.6183, allocations: 0 / 0.532 GB, free: 63.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.01252/0.6309, allocations: 5.231 MB / 0.5371 GB, free: 62.33 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.365e-05/0.631, allocations: 61.12 kB / 0.5372 GB, free: 62.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004179/0.6352, allocations: 1.696 MB / 0.5388 GB, free: 62.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001737/0.6354, allocations: 44.61 kB / 0.5389 GB, free: 62.04 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001598/0.637, allocations: 1.49 MB / 0.5403 GB, free: 61.31 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004232/0.6374, allocations: 419.4 kB / 0.5407 GB, free: 61.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005859/0.638, allocations: 289.8 kB / 0.541 GB, free: 61.03 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.444e-05/0.6381, allocations: 301.1 kB / 0.5413 GB, free: 60.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001363/0.6395, allocations: 0.6253 MB / 0.5419 GB, free: 60.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001618/0.6411, allocations: 1.137 MB / 0.543 GB, free: 59.67 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003071/0.6442, allocations: 1.865 MB / 0.5448 GB, free: 58.46 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.555e-05/0.6442, allocations: 9.062 kB / 0.5448 GB, free: 58.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.005075/0.6493, allocations: 2.19 MB / 0.547 GB, free: 57.46 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.408e-05/0.6494, allocations: 13.78 kB / 0.547 GB, free: 57.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-05/0.6494, allocations: 16.31 kB / 0.547 GB, free: 57.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005356/0.65, allocations: 139 kB / 0.5471 GB, free: 57.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001825/0.6518, allocations: 395.5 kB / 0.5475 GB, free: 57.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003296/0.6551, allocations: 3.081 MB / 0.5505 GB, free: 54.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002082/0.6572, allocations: 74.61 kB / 0.5506 GB, free: 54.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002441/0.6575, allocations: 73.05 kB / 0.5507 GB, free: 54.4 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * 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 (196): * Single equations (assignments): 193 * 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.002795/0.6603, allocations: 1.053 MB / 0.5517 GB, free: 53.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005756/0.6609, allocations: 173.5 kB / 0.5519 GB, free: 53.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003696/0.6646, allocations: 2.045 MB / 0.5539 GB, free: 52.69 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.201e-05/0.6646, allocations: 12.61 kB / 0.5539 GB, free: 52.69 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/0.6646, allocations: 7.938 kB / 0.5539 GB, free: 52.69 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.32e-05/0.6646, allocations: 11.69 kB / 0.5539 GB, free: 52.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008263/0.6729, allocations: 4.784 MB / 0.5586 GB, free: 50.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/0.673, allocations: 2.562 kB / 0.5586 GB, free: 50.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000827/0.6738, allocations: 160.5 kB / 0.5587 GB, free: 50 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001359/0.6752, allocations: 447.2 kB / 0.5592 GB, free: 49.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.97e-05/0.6753, allocations: 32.17 kB / 0.5592 GB, free: 49.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008526/0.6838, allocations: 10.11 MB / 0.5691 GB, free: 40.6 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/0.6839, allocations: 3.906 kB / 0.5691 GB, free: 40.6 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0049/0.6888, allocations: 2.86 MB / 0.5718 GB, free: 37.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001084/0.6899, allocations: 390.8 kB / 0.5722 GB, free: 37.46 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006042/0.6905, allocations: 35.92 kB / 0.5723 GB, free: 37.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001296/0.6918, allocations: 63.95 kB / 0.5723 GB, free: 37.37 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003388/0.6922, allocations: 96.98 kB / 0.5724 GB, free: 37.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.511e-05/0.6923, allocations: 32 kB / 0.5724 GB, free: 37.24 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002514/0.6948, allocations: 1.154 MB / 0.5736 GB, free: 36.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.6948, allocations: 0 / 0.5736 GB, free: 36.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003453/0.6983, allocations: 0.5533 MB / 0.5741 GB, free: 35.54 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].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 (81): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (1,13,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.0005035/0.6988, allocations: 154.3 kB / 0.5743 GB, free: 35.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003527/0.7023, allocations: 1.831 MB / 0.576 GB, free: 33.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.7024, allocations: 0 / 0.576 GB, free: 33.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002926/0.7053, allocations: 1.485 MB / 0.5775 GB, free: 31.97 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005614/0.7109, allocations: 0.5099 MB / 0.578 GB, free: 31.48 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0205/0.7315, allocations: 7.066 MB / 0.5849 GB, free: 24.42 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004358/0.7359, allocations: 2.304 MB / 0.5871 GB, free: 22.1 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00107/0.737, allocations: 135.4 kB / 0.5873 GB, free: 21.96 MB / 366.1 MB Notification: Performance of SimCode: time 2.184e-06/0.7371, allocations: 0 / 0.5873 GB, free: 21.96 MB / 366.1 MB Notification: Performance of Templates: time 0.1909/0.9279, allocations: 105 MB / 0.6898 GB, free: 12.99 MB / 462.1 MB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.makefile (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.sim & ./HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe 2>&1)