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.001511/0.001511, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.536/1.536, allocations: 222.9 MB / 240.1 MB, free: 4.367 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.00155/0.00155, allocations: 192.5 kB / 290.4 MB, free: 2.098 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03451/0.03451, allocations: 8.807 MB / 349.3 MB, free: 4.566 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 76.16 kB / 464.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1087, allocations: 51.57 MB / 0.5041 GB, free: 9.426 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter2): time 0.0194/0.1282, allocations: 13.15 MB / 0.5169 GB, free: 12.21 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01088/0.1391, allocations: 4.333 MB / 0.5212 GB, free: 7.863 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003278/0.1425, allocations: 83.69 kB / 0.5212 GB, free: 7.781 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004046/0.1466, allocations: 1.025 MB / 0.5222 GB, free: 6.75 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005709/0.1523, allocations: 1.289 MB / 0.5235 GB, free: 5.453 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003131/0.1555, allocations: 0.8602 MB / 0.5243 GB, free: 4.594 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006783/0.1623, allocations: 4.027 MB / 0.5283 GB, free: 0.543 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3147/0.477, allocations: 3.521 MB / 0.5317 GB, free: 5.613 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003642/0.4807, allocations: 1.933 MB / 0.5336 GB, free: 5.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004913/0.4856, allocations: 2.132 MB / 0.5357 GB, free: 5.105 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00158/0.4872, allocations: 0.5251 MB / 0.5362 GB, free: 5.105 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002732/0.49, allocations: 0.7221 MB / 0.5369 GB, free: 5.105 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001318/0.4913, allocations: 1.147 MB / 0.538 GB, free: 4.973 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004423/0.4957, allocations: 2.175 MB / 0.5401 GB, free: 4.445 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01191/0.5077, allocations: 6.887 MB / 0.5469 GB, free: 3.777 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.245e-06/0.5077, allocations: 0.5 kB / 0.5469 GB, free: 3.777 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.837e-06/0.5077, allocations: 4.781 kB / 0.5469 GB, free: 3.773 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003159/0.5081, allocations: 3.375 kB / 0.5469 GB, free: 3.773 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.01728/0.5253, allocations: 4.437 MB / 0.5512 GB, free: 2.184 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/0.5254, allocations: 11.91 kB / 0.5512 GB, free: 2.184 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004649/0.5301, allocations: 0.819 MB / 0.552 GB, free: 1.992 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006748/0.5368, allocations: 2.476 MB / 0.5544 GB, free: 1.137 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003552/0.5372, allocations: 253.6 kB / 0.5547 GB, free: 1.023 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001206/0.5384, allocations: 331.2 kB / 0.555 GB, free: 0.9141 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01416/0.5526, allocations: 4.522 MB / 0.5594 GB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001357/0.5528, allocations: 3.906 kB / 0.5594 GB, free: 14.26 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008202/0.5536, allocations: 139.1 kB / 0.5595 GB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001872/0.5538, allocations: 155.7 kB / 0.5597 GB, free: 14.13 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01002/0.5638, allocations: 3.811 MB / 0.5634 GB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03173/0.5956, allocations: 14.03 MB / 0.5771 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006833/0.6025, allocations: 6.137 MB / 0.5831 GB, free: 9.871 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002153/0.6047, allocations: 1.184 MB / 0.5843 GB, free: 8.688 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006722/0.6114, allocations: 3.301 MB / 0.5875 GB, free: 5.348 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.371e-05/0.6115, allocations: 43.56 kB / 0.5875 GB, free: 5.297 MB / 398.1 MB Notification: Performance of pre-optimization done (n=115): time 3.567e-06/0.6115, allocations: 0 / 0.5875 GB, free: 5.297 MB / 398.1 MB Notification: Performance of matching and sorting (n=118): time 0.01273/0.6243, allocations: 5.225 MB / 0.5926 GB, free: 15.9 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.695e-05/0.6244, allocations: 64.41 kB / 0.5927 GB, free: 15.82 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005813/0.6302, allocations: 1.686 MB / 0.5943 GB, free: 14.13 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002066/0.6305, allocations: 45.7 kB / 0.5944 GB, free: 14.08 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001746/0.6322, allocations: 1.491 MB / 0.5958 GB, free: 12.58 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005419/0.6328, allocations: 425.1 kB / 0.5962 GB, free: 12.17 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000609/0.6334, allocations: 291.2 kB / 0.5965 GB, free: 11.88 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.6335, allocations: 301.1 kB / 0.5968 GB, free: 11.58 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001228/0.6348, allocations: 0.6286 MB / 0.5974 GB, free: 10.95 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0016/0.6364, allocations: 1.129 MB / 0.5985 GB, free: 9.613 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002854/0.6393, allocations: 1.871 MB / 0.6004 GB, free: 7.578 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.155e-05/0.6393, allocations: 4 kB / 0.6004 GB, free: 7.574 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004441/0.6437, allocations: 2.191 MB / 0.6025 GB, free: 5.445 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.648e-05/0.6438, allocations: 14.03 kB / 0.6025 GB, free: 5.434 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.65e-05/0.6438, allocations: 16 kB / 0.6025 GB, free: 5.418 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004582/0.6443, allocations: 137.1 kB / 0.6027 GB, free: 5.277 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001527/0.6459, allocations: 391.9 kB / 0.603 GB, free: 4.918 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003099/0.649, allocations: 3.367 MB / 0.6063 GB, free: 1.293 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001774/0.6508, allocations: 75.81 kB / 0.6064 GB, free: 1.219 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000198/0.651, allocations: 72.12 kB / 0.6065 GB, free: 1.148 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.002888/0.6539, allocations: 1.037 MB / 0.6075 GB, free: 128 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000737/0.6546, allocations: 178 kB / 0.6076 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004474/0.6591, allocations: 2.044 MB / 0.6096 GB, free: 13.86 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-05/0.6591, allocations: 12 kB / 0.6096 GB, free: 13.85 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.94e-05/0.6592, allocations: 12 kB / 0.6097 GB, free: 13.84 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.567e-05/0.6592, allocations: 7.922 kB / 0.6097 GB, free: 13.83 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.011/0.6702, allocations: 4.786 MB / 0.6143 GB, free: 8.977 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/0.6703, allocations: 128 / 0.6143 GB, free: 8.977 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007705/0.671, allocations: 167.8 kB / 0.6145 GB, free: 8.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001294/0.6723, allocations: 441.6 kB / 0.6149 GB, free: 8.379 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001322/0.6725, allocations: 39.98 kB / 0.615 GB, free: 8.34 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01219/0.6847, allocations: 11.06 MB / 0.6258 GB, free: 12.64 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.6847, allocations: 0 / 0.6258 GB, free: 12.64 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005455/0.6902, allocations: 2.872 MB / 0.6286 GB, free: 9.711 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001286/0.6915, allocations: 394.8 kB / 0.6289 GB, free: 9.301 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007538/0.6923, allocations: 35.98 kB / 0.629 GB, free: 9.266 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001423/0.6937, allocations: 55.95 kB / 0.629 GB, free: 9.211 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003313/0.6941, allocations: 99.48 kB / 0.6291 GB, free: 9.117 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001032/0.6942, allocations: 32 kB / 0.6292 GB, free: 9.086 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002782/0.697, allocations: 1.15 MB / 0.6303 GB, free: 7.941 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.697, allocations: 0 / 0.6303 GB, free: 7.941 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003186/0.7002, allocations: 0.5469 MB / 0.6308 GB, free: 7.395 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.0004498/0.7007, allocations: 158.9 kB / 0.631 GB, free: 7.238 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003465/0.7041, allocations: 1.849 MB / 0.6328 GB, free: 5.402 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/0.7042, allocations: 0 / 0.6328 GB, free: 5.402 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002488/0.7067, allocations: 1.502 MB / 0.6342 GB, free: 3.852 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003556/0.7102, allocations: 0.5136 MB / 0.6347 GB, free: 3.34 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01344/0.7237, allocations: 5.62 MB / 0.6402 GB, free: 13.69 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00351/0.7273, allocations: 2.316 MB / 0.6425 GB, free: 11.35 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007052/0.728, allocations: 131.4 kB / 0.6426 GB, free: 11.22 MB / 462.1 MB Notification: Performance of SimCode: time 1.243e-06/0.728, allocations: 0 / 0.6426 GB, free: 11.22 MB / 462.1 MB Notification: Performance of Templates: time 0.4158/1.144, allocations: 105.2 MB / 0.7454 GB, free: 181.2 MB / 0.5294 GB 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)