Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.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_Steinmetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz") translateModel(HanserModelica.InductionMachines.IMC_Steinmetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008514/0.008514, allocations: 102 kB / 15.73 MB, free: 6.039 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.435/1.435, allocations: 222.9 MB / 239.4 MB, free: 4.555 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.001499/0.001499, allocations: 192.4 kB / 289.7 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03495/0.03495, allocations: 8.804 MB / 348.6 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 83.88 kB / 463.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1332, allocations: 51.56 MB / 0.5034 GB, free: 9.484 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.01623/0.1495, allocations: 13.59 MB / 0.5167 GB, free: 11.82 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01222/0.1617, allocations: 4.442 MB / 0.521 GB, free: 7.367 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003611/0.1654, allocations: 79.69 kB / 0.5211 GB, free: 7.289 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004064/0.1695, allocations: 0.9823 MB / 0.522 GB, free: 6.301 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007148/0.1768, allocations: 1.297 MB / 0.5233 GB, free: 4.996 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00336/0.1801, allocations: 0.8999 MB / 0.5242 GB, free: 4.098 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.3231/0.5033, allocations: 4.168 MB / 0.5283 GB, free: 5.816 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004498/0.5078, allocations: 3.188 MB / 0.5314 GB, free: 5.258 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003484/0.5113, allocations: 1.918 MB / 0.5332 GB, free: 5.121 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004552/0.5159, allocations: 2.074 MB / 0.5353 GB, free: 4.742 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001804/0.5178, allocations: 0.5092 MB / 0.5358 GB, free: 4.742 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002973/0.5208, allocations: 0.7072 MB / 0.5365 GB, free: 4.742 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001303/0.5221, allocations: 1.1 MB / 0.5375 GB, free: 4.609 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005031/0.5271, allocations: 2.139 MB / 0.5396 GB, free: 4.086 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01249/0.5396, allocations: 6.69 MB / 0.5461 GB, free: 3.414 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.386e-05/0.5397, allocations: 1.125 kB / 0.5461 GB, free: 3.414 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.905e-06/0.5397, allocations: 0 / 0.5461 GB, free: 3.414 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003986/0.5401, allocations: 4 kB / 0.5462 GB, free: 3.41 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: 852 * Number of variables: 852 Notification: Performance of Generate backend data structure: time 0.0198/0.5599, allocations: 4.406 MB / 0.5505 GB, free: 1.805 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/0.56, allocations: 10.44 kB / 0.5505 GB, free: 1.805 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006231/0.5663, allocations: 0.8228 MB / 0.5513 GB, free: 1.609 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007913/0.5742, allocations: 2.442 MB / 0.5537 GB, free: 1.047 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004545/0.5747, allocations: 242.6 kB / 0.5539 GB, free: 1.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002169/0.5769, allocations: 336.8 kB / 0.5542 GB, free: 0.9062 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01745/0.5944, allocations: 4.314 MB / 0.5584 GB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002422/0.5946, allocations: 7.062 kB / 0.5584 GB, free: 14.35 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001604/0.5963, allocations: 131.5 kB / 0.5586 GB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001979/0.5965, allocations: 150.9 kB / 0.5587 GB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01064/0.6071, allocations: 3.592 MB / 0.5622 GB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0357/0.6429, allocations: 13.67 MB / 0.5756 GB, free: 1.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007525/0.6504, allocations: 6.642 MB / 0.582 GB, free: 9.969 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002591/0.6531, allocations: 1.393 MB / 0.5834 GB, free: 8.578 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009211/0.6623, allocations: 3.658 MB / 0.587 GB, free: 4.883 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001674/0.664, allocations: 0.9516 MB / 0.5879 GB, free: 3.906 MB / 398.1 MB Notification: Performance of pre-optimization done (n=143): time 5.32e-06/0.664, allocations: 0 / 0.5879 GB, free: 3.906 MB / 398.1 MB Notification: Performance of matching and sorting (n=146): time 0.014/0.678, allocations: 5.984 MB / 0.5937 GB, free: 13.74 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001344/0.6782, allocations: 226.5 kB / 0.594 GB, free: 13.47 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003917/0.6821, allocations: 1.784 MB / 0.5957 GB, free: 11.69 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002117/0.6824, allocations: 57.7 kB / 0.5958 GB, free: 11.62 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001669/0.684, allocations: 1.469 MB / 0.5972 GB, free: 10.14 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000592/0.6847, allocations: 0.4905 MB / 0.5977 GB, free: 9.656 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007471/0.6854, allocations: 343.2 kB / 0.598 GB, free: 9.316 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.6856, allocations: 309.1 kB / 0.5983 GB, free: 9.012 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001506/0.6871, allocations: 0.6871 MB / 0.599 GB, free: 8.324 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00211/0.6892, allocations: 1.357 MB / 0.6003 GB, free: 6.695 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003488/0.6927, allocations: 2.106 MB / 0.6023 GB, free: 4.406 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.723e-05/0.6927, allocations: 4 kB / 0.6024 GB, free: 4.402 MB / 414.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.005483/0.6982, allocations: 2.643 MB / 0.6049 GB, free: 1.848 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.166e-05/0.6983, allocations: 21.39 kB / 0.605 GB, free: 1.828 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.825e-05/0.6983, allocations: 22.56 kB / 0.605 GB, free: 1.809 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001149/0.6995, allocations: 373.5 kB / 0.6053 GB, free: 1.438 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001567/0.7011, allocations: 390.3 kB / 0.6057 GB, free: 1.082 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01022/0.7113, allocations: 8.439 MB / 0.6139 GB, free: 8.141 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002366/0.7137, allocations: 99.86 kB / 0.614 GB, free: 8.043 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002633/0.714, allocations: 80 kB / 0.6141 GB, free: 7.965 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition3,$whenCondition2,$whenCondition1,rmsI[3].mean.y_last,$PRE.rmsI[3].mean.y_last,rmsI[2].mean.y_last,$PRE.rmsI[2].mean.y_last,rmsI[1].mean.y_last,$PRE.rmsI[1].mean.y_last,idealOpener.control,idealCloser.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (210): * Single equations (assignments): 205 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003079/0.7171, allocations: 1.031 MB / 0.6151 GB, free: 6.949 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008427/0.7179, allocations: 189.7 kB / 0.6153 GB, free: 6.762 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004865/0.7228, allocations: 2.346 MB / 0.6176 GB, free: 4.375 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.892e-05/0.7228, allocations: 12 kB / 0.6176 GB, free: 4.363 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-05/0.7229, allocations: 15.94 kB / 0.6176 GB, free: 4.348 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.558e-05/0.7229, allocations: 3.984 kB / 0.6176 GB, free: 4.344 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01141/0.7343, allocations: 5.126 MB / 0.6226 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.107e-05/0.7343, allocations: 4 kB / 0.6226 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007811/0.7351, allocations: 176.3 kB / 0.6228 GB, free: 14.97 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001523/0.7367, allocations: 0.5347 MB / 0.6233 GB, free: 14.43 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001321/0.7368, allocations: 39.98 kB / 0.6234 GB, free: 14.39 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01306/0.7499, allocations: 13.25 MB / 0.6363 GB, free: 392 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.75, allocations: 3.938 kB / 0.6363 GB, free: 388 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00689/0.7569, allocations: 3.288 MB / 0.6395 GB, free: 13.04 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001597/0.7585, allocations: 430.6 kB / 0.6399 GB, free: 12.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008103/0.7593, allocations: 40 kB / 0.64 GB, free: 12.56 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001522/0.7609, allocations: 63.89 kB / 0.64 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003697/0.7612, allocations: 119.8 kB / 0.6401 GB, free: 12.38 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001041/0.7614, allocations: 39.98 kB / 0.6402 GB, free: 12.34 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002777/0.7641, allocations: 1.211 MB / 0.6414 GB, free: 11.14 MB / 462.1 MB Notification: Performance of sort global known variables: time 8.12e-07/0.7642, allocations: 4 kB / 0.6414 GB, free: 11.14 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003449/0.7676, allocations: 0.5938 MB / 0.6419 GB, free: 10.54 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 (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,quadraticLoadTorque.phi,cRun.v,cStart.v,rmsI[1].mean.x,rmsI[2].mean.x,rmsI[3].mean.x) * Number of discrete variables: 8 ($whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control,idealOpener.control,rmsI[1].mean.y_last,rmsI[2].mean.y_last,rmsI[3].mean.y_last) * Number of discrete states: 3 (rmsI[1].mean.x,rmsI[2].mean.x,rmsI[3].mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,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.0004891/0.7681, allocations: 182.4 kB / 0.6421 GB, free: 10.37 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004888/0.773, allocations: 2.414 MB / 0.6445 GB, free: 7.941 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.291e-05/0.7731, allocations: 0 / 0.6445 GB, free: 7.941 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003773/0.7768, allocations: 1.744 MB / 0.6462 GB, free: 6.141 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00529/0.7822, allocations: 0.5485 MB / 0.6467 GB, free: 5.598 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01537/0.7976, allocations: 5.913 MB / 0.6525 GB, free: 15.66 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004194/0.8018, allocations: 2.331 MB / 0.6548 GB, free: 13.3 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001904/0.8037, allocations: 417.3 kB / 0.6552 GB, free: 12.89 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005744/0.8043, allocations: 127.5 kB / 0.6553 GB, free: 12.77 MB / 478.1 MB Notification: Performance of SimCode: time 1.172e-06/0.8043, allocations: 7.875 kB / 0.6553 GB, free: 12.76 MB / 478.1 MB Notification: Performance of Templates: time 0.06706/0.8714, allocations: 31.85 MB / 0.6864 GB, free: 13.29 MB / 0.4981 GB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.makefile (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.sim & ./HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe 2>&1)