Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.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_Inverter1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1") translateModel(HanserModelica.InductionMachines.IMC_Inverter1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007857/0.007857, allocations: 104.2 kB / 15.73 MB, free: 5.992 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.423/1.423, allocations: 222.9 MB / 239.4 MB, free: 4.508 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.001619/0.001619, allocations: 192.5 kB / 289.7 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03412/0.03411, allocations: 8.806 MB / 348.6 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001819/0.00182, allocations: 87.88 kB / 463.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1243, allocations: 51.56 MB / 0.5034 GB, free: 9.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter1): time 0.01584/0.1402, allocations: 13.13 MB / 0.5162 GB, free: 12.29 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0102/0.1504, allocations: 4.341 MB / 0.5204 GB, free: 7.934 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003226/0.1537, allocations: 83.69 kB / 0.5205 GB, free: 7.852 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003989/0.1578, allocations: 1.021 MB / 0.5215 GB, free: 6.824 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005703/0.1635, allocations: 1.293 MB / 0.5228 GB, free: 5.523 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002818/0.1663, allocations: 0.8534 MB / 0.5236 GB, free: 4.668 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007697/0.174, allocations: 4.035 MB / 0.5276 GB, free: 0.6133 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3264/0.5005, allocations: 3.518 MB / 0.531 GB, free: 5.598 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003708/0.5042, allocations: 1.936 MB / 0.5329 GB, free: 5.465 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004182/0.5084, allocations: 2.129 MB / 0.535 GB, free: 5.09 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001475/0.5099, allocations: 0.5256 MB / 0.5355 GB, free: 5.09 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002445/0.5124, allocations: 0.7229 MB / 0.5362 GB, free: 5.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001177/0.5136, allocations: 1.142 MB / 0.5373 GB, free: 4.957 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004015/0.5176, allocations: 2.18 MB / 0.5394 GB, free: 4.43 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01211/0.5297, allocations: 6.887 MB / 0.5462 GB, free: 3.762 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.969e-06/0.5298, allocations: 2.625 kB / 0.5462 GB, free: 3.762 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.866e-06/0.5298, allocations: 0.5625 kB / 0.5462 GB, free: 3.762 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002761/0.5301, allocations: 4 kB / 0.5462 GB, free: 3.758 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: 880 * Number of variables: 880 Notification: Performance of Generate backend data structure: time 0.01945/0.5495, allocations: 4.44 MB / 0.5505 GB, free: 2.168 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.45e-05/0.5496, allocations: 9.219 kB / 0.5505 GB, free: 2.168 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005147/0.5548, allocations: 0.8225 MB / 0.5513 GB, free: 1.977 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007489/0.5623, allocations: 2.481 MB / 0.5537 GB, free: 1.145 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003414/0.5627, allocations: 254.7 kB / 0.554 GB, free: 1.027 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001419/0.5641, allocations: 330.3 kB / 0.5543 GB, free: 0.9219 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01265/0.5768, allocations: 4.511 MB / 0.5587 GB, free: 14.28 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-05/0.5769, allocations: 7.906 kB / 0.5587 GB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003869/0.5773, allocations: 132.8 kB / 0.5588 GB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000165/0.5775, allocations: 162.9 kB / 0.559 GB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008778/0.5862, allocations: 3.804 MB / 0.5627 GB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02651/0.6128, allocations: 14.03 MB / 0.5764 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006538/0.6194, allocations: 6.137 MB / 0.5824 GB, free: 9.895 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001993/0.6214, allocations: 1.18 MB / 0.5835 GB, free: 8.715 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0064/0.6278, allocations: 3.303 MB / 0.5868 GB, free: 5.375 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.607e-05/0.6279, allocations: 45.53 kB / 0.5868 GB, free: 5.324 MB / 398.1 MB Notification: Performance of pre-optimization done (n=115): time 4.419e-06/0.6279, allocations: 3.984 kB / 0.5868 GB, free: 5.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=118): time 0.01104/0.639, allocations: 5.225 MB / 0.5919 GB, free: 15.92 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.385e-05/0.639, allocations: 72.06 kB / 0.592 GB, free: 15.84 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002692/0.6417, allocations: 1.678 MB / 0.5936 GB, free: 14.16 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001024/0.6419, allocations: 49.7 kB / 0.5937 GB, free: 14.11 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001012/0.6429, allocations: 1.493 MB / 0.5951 GB, free: 12.6 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003424/0.6432, allocations: 413 kB / 0.5955 GB, free: 12.2 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004472/0.6437, allocations: 295.2 kB / 0.5958 GB, free: 11.9 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.6438, allocations: 305.1 kB / 0.5961 GB, free: 11.6 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001016/0.6448, allocations: 0.6247 MB / 0.5967 GB, free: 10.97 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00152/0.6464, allocations: 1.13 MB / 0.5978 GB, free: 9.633 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002579/0.649, allocations: 1.871 MB / 0.5996 GB, free: 7.602 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.716e-06/0.649, allocations: 4 kB / 0.5996 GB, free: 7.598 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.00372/0.6527, allocations: 2.189 MB / 0.6018 GB, free: 5.469 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.199e-05/0.6527, allocations: 17.41 kB / 0.6018 GB, free: 5.457 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.278e-05/0.6528, allocations: 16 kB / 0.6018 GB, free: 5.441 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004122/0.6532, allocations: 134.5 kB / 0.6019 GB, free: 5.301 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001426/0.6546, allocations: 402.2 kB / 0.6023 GB, free: 4.934 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002777/0.6574, allocations: 3.356 MB / 0.6056 GB, free: 1.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001641/0.6591, allocations: 75.81 kB / 0.6057 GB, free: 1.246 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001181/0.6592, allocations: 72.08 kB / 0.6057 GB, free: 1.176 MB / 414.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.002443/0.6617, allocations: 1.043 MB / 0.6068 GB, free: 152 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004584/0.6621, allocations: 178 kB / 0.6069 GB, free: 15.97 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003583/0.6657, allocations: 2.041 MB / 0.6089 GB, free: 13.89 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.079e-05/0.6657, allocations: 12 kB / 0.6089 GB, free: 13.88 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.482e-05/0.6658, allocations: 8 kB / 0.6089 GB, free: 13.87 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.517e-05/0.6658, allocations: 15.91 kB / 0.609 GB, free: 13.86 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007904/0.6737, allocations: 4.777 MB / 0.6136 GB, free: 9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/0.6737, allocations: 4 kB / 0.6136 GB, free: 8.996 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006969/0.6744, allocations: 163.8 kB / 0.6138 GB, free: 8.844 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001125/0.6756, allocations: 438.7 kB / 0.6142 GB, free: 8.402 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.966e-05/0.6757, allocations: 39.98 kB / 0.6142 GB, free: 8.363 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009987/0.6857, allocations: 11.06 MB / 0.625 GB, free: 12.66 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.6857, allocations: 5.25 kB / 0.6251 GB, free: 12.66 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004752/0.6904, allocations: 2.873 MB / 0.6279 GB, free: 9.727 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001128/0.6916, allocations: 394.8 kB / 0.6282 GB, free: 9.316 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001973/0.6918, allocations: 28 kB / 0.6283 GB, free: 9.289 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000789/0.6926, allocations: 59.95 kB / 0.6283 GB, free: 9.23 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002643/0.6929, allocations: 104.2 kB / 0.6284 GB, free: 9.133 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.517e-05/0.693, allocations: 35.98 kB / 0.6285 GB, free: 9.098 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001804/0.6948, allocations: 1.147 MB / 0.6296 GB, free: 7.957 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.7e-07/0.6948, allocations: 0 / 0.6296 GB, free: 7.957 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002195/0.697, allocations: 0.543 MB / 0.6301 GB, free: 7.414 MB / 446.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.0003406/0.6973, allocations: 160.9 kB / 0.6303 GB, free: 7.254 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002942/0.7003, allocations: 1.844 MB / 0.6321 GB, free: 5.422 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.7003, allocations: 0 / 0.6321 GB, free: 5.422 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002155/0.7025, allocations: 1.498 MB / 0.6335 GB, free: 3.875 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002401/0.7049, allocations: 0.5257 MB / 0.634 GB, free: 3.352 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01276/0.7176, allocations: 5.643 MB / 0.6395 GB, free: 13.69 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002512/0.7202, allocations: 2.366 MB / 0.6419 GB, free: 11.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001516/0.7217, allocations: 388 kB / 0.6422 GB, free: 10.92 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003803/0.7221, allocations: 123.4 kB / 0.6423 GB, free: 10.8 MB / 462.1 MB Notification: Performance of SimCode: time 1.583e-06/0.7221, allocations: 0 / 0.6423 GB, free: 10.8 MB / 462.1 MB Notification: Performance of Templates: time 0.05959/0.7817, allocations: 28.45 MB / 0.6701 GB, free: 14.69 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.makefile (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.sim & ./HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe 2>&1)