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.001087/0.001087, allocations: 108 kB / 16.41 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.369/1.369, allocations: 222.9 MB / 240.1 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.001629/0.001629, allocations: 191.4 kB / 290.4 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03443/0.03443, allocations: 8.793 MB / 349.3 MB, free: 4.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001561, allocations: 76.16 kB / 464.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1355, allocations: 51.57 MB / 0.5041 GB, free: 9.465 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter1): time 0.01889/0.1544, allocations: 13.13 MB / 0.5169 GB, free: 12.27 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01075/0.1652, allocations: 4.333 MB / 0.5211 GB, free: 7.922 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003414/0.1687, allocations: 83.69 kB / 0.5212 GB, free: 7.84 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003825/0.1726, allocations: 1.025 MB / 0.5222 GB, free: 6.809 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005829/0.1784, allocations: 1.285 MB / 0.5235 GB, free: 5.516 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003058/0.1815, allocations: 0.8506 MB / 0.5243 GB, free: 4.668 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00709/0.1886, allocations: 4.039 MB / 0.5282 GB, free: 0.6055 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3316/0.5202, allocations: 3.518 MB / 0.5317 GB, free: 5.551 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003527/0.5238, allocations: 1.935 MB / 0.5336 GB, free: 5.418 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00414/0.5279, allocations: 2.131 MB / 0.5356 GB, free: 5.043 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001169/0.5291, allocations: 0.5248 MB / 0.5361 GB, free: 5.043 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002131/0.5313, allocations: 0.7229 MB / 0.5369 GB, free: 5.043 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001135/0.5324, allocations: 1.147 MB / 0.538 GB, free: 4.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003321/0.5357, allocations: 2.176 MB / 0.5401 GB, free: 4.383 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01058/0.5463, allocations: 6.894 MB / 0.5468 GB, free: 3.711 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.5464, allocations: 0.5625 kB / 0.5468 GB, free: 3.711 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.5464, allocations: 0 / 0.5468 GB, free: 3.711 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002368/0.5466, allocations: 4.5 kB / 0.5468 GB, free: 3.707 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.01803/0.5647, allocations: 4.437 MB / 0.5512 GB, free: 2.117 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/0.5648, allocations: 9.469 kB / 0.5512 GB, free: 2.117 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005036/0.5698, allocations: 0.8221 MB / 0.552 GB, free: 1.926 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006426/0.5762, allocations: 2.476 MB / 0.5544 GB, free: 1.035 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002707/0.5765, allocations: 256 kB / 0.5546 GB, free: 0.9219 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001416/0.578, allocations: 331.1 kB / 0.555 GB, free: 0.8164 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01063/0.5886, allocations: 4.511 MB / 0.5594 GB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.141e-05/0.5887, allocations: 3.906 kB / 0.5594 GB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003864/0.5891, allocations: 135.9 kB / 0.5595 GB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001459/0.5893, allocations: 162.2 kB / 0.5597 GB, free: 14.03 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007553/0.5968, allocations: 3.81 MB / 0.5634 GB, free: 12 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02503/0.6219, allocations: 14.02 MB / 0.5771 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006275/0.6282, allocations: 6.144 MB / 0.5831 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001961/0.6302, allocations: 1.188 MB / 0.5842 GB, free: 8.633 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006206/0.6364, allocations: 3.299 MB / 0.5874 GB, free: 5.297 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.195e-05/0.6365, allocations: 43.56 kB / 0.5875 GB, free: 5.246 MB / 398.1 MB Notification: Performance of pre-optimization done (n=115): time 3.366e-06/0.6365, allocations: 0 / 0.5875 GB, free: 5.246 MB / 398.1 MB Notification: Performance of matching and sorting (n=118): time 0.01095/0.6475, allocations: 5.227 MB / 0.5926 GB, free: 15.85 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.495e-05/0.6476, allocations: 68.41 kB / 0.5927 GB, free: 15.77 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002799/0.6504, allocations: 1.685 MB / 0.5943 GB, free: 14.08 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001207/0.6505, allocations: 45.7 kB / 0.5943 GB, free: 14.03 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00103/0.6516, allocations: 1.495 MB / 0.5958 GB, free: 12.52 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003448/0.6519, allocations: 419.7 kB / 0.5962 GB, free: 12.11 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004446/0.6524, allocations: 291.2 kB / 0.5965 GB, free: 11.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.6525, allocations: 301.1 kB / 0.5968 GB, free: 11.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001029/0.6535, allocations: 0.6247 MB / 0.5974 GB, free: 10.9 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001356/0.6549, allocations: 1.137 MB / 0.5985 GB, free: 9.551 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002429/0.6573, allocations: 1.868 MB / 0.6003 GB, free: 7.523 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.057e-06/0.6573, allocations: 4 kB / 0.6003 GB, free: 7.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003715/0.6611, allocations: 2.189 MB / 0.6025 GB, free: 5.391 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.006e-05/0.6611, allocations: 12.06 kB / 0.6025 GB, free: 5.379 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.103e-05/0.6612, allocations: 16 kB / 0.6025 GB, free: 5.363 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004635/0.6616, allocations: 137.6 kB / 0.6026 GB, free: 5.223 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001452/0.6631, allocations: 398.4 kB / 0.603 GB, free: 4.855 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0028/0.6659, allocations: 3.363 MB / 0.6063 GB, free: 1.238 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001625/0.6675, allocations: 75.8 kB / 0.6063 GB, free: 1.164 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001191/0.6677, allocations: 68 kB / 0.6064 GB, free: 1.098 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.002228/0.6699, allocations: 1.036 MB / 0.6074 GB, free: 76 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004448/0.6704, allocations: 182 kB / 0.6076 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003651/0.674, allocations: 2.041 MB / 0.6096 GB, free: 13.81 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.34e-05/0.6741, allocations: 12 kB / 0.6096 GB, free: 13.8 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.409e-05/0.6741, allocations: 16.11 kB / 0.6096 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.559e-05/0.6741, allocations: 11.91 kB / 0.6096 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008148/0.6822, allocations: 4.781 MB / 0.6143 GB, free: 8.918 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.707e-06/0.6823, allocations: 4 kB / 0.6143 GB, free: 8.914 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007143/0.683, allocations: 159.8 kB / 0.6145 GB, free: 8.766 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001146/0.6842, allocations: 439.8 kB / 0.6149 GB, free: 8.324 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.72e-05/0.6843, allocations: 35.98 kB / 0.6149 GB, free: 8.289 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01059/0.6949, allocations: 11.06 MB / 0.6257 GB, free: 12.59 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.6949, allocations: 0 / 0.6257 GB, free: 12.59 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004839/0.6998, allocations: 2.874 MB / 0.6285 GB, free: 9.656 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001194/0.701, allocations: 390.8 kB / 0.6289 GB, free: 9.25 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002144/0.7012, allocations: 32 kB / 0.6289 GB, free: 9.219 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008026/0.702, allocations: 56.08 kB / 0.629 GB, free: 9.164 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003138/0.7023, allocations: 103.5 kB / 0.6291 GB, free: 9.066 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.295e-05/0.7024, allocations: 39.98 kB / 0.6291 GB, free: 9.027 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001789/0.7042, allocations: 1.147 MB / 0.6302 GB, free: 7.887 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.7042, allocations: 0 / 0.6302 GB, free: 7.887 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002475/0.7067, allocations: 0.543 MB / 0.6308 GB, free: 7.344 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.0003863/0.7071, allocations: 162.8 kB / 0.6309 GB, free: 7.184 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003242/0.7104, allocations: 1.845 MB / 0.6327 GB, free: 5.352 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.7104, allocations: 0.875 kB / 0.6327 GB, free: 5.352 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002324/0.7127, allocations: 1.498 MB / 0.6342 GB, free: 3.805 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002536/0.7153, allocations: 0.5348 MB / 0.6347 GB, free: 3.273 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01111/0.7264, allocations: 5.612 MB / 0.6402 GB, free: 13.63 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002236/0.7287, allocations: 2.316 MB / 0.6424 GB, free: 11.29 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000698/0.7294, allocations: 135.4 kB / 0.6426 GB, free: 11.16 MB / 462.1 MB Notification: Performance of SimCode: time 1.383e-06/0.7294, allocations: 0 / 0.6426 GB, free: 11.16 MB / 462.1 MB Notification: Performance of Templates: time 0.4198/1.149, allocations: 105.2 MB / 0.7453 GB, free: 181 MB / 0.5294 GB 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)