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.001619/0.001619, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.381/1.381, allocations: 222.9 MB / 240 MB, free: 4.543 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.001259/0.001259, allocations: 188.5 kB / 290.3 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03562/0.03562, allocations: 8.8 MB / 349.3 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 79.14 kB / 412.5 MB, free: 41.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09632/0.09779, allocations: 51.57 MB / 464.1 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter1): time 0.01422/0.1121, allocations: 13.12 MB / 477.2 MB, free: 372 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008677/0.1208, allocations: 4.337 MB / 481.5 MB, free: 12.01 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002008/0.1229, allocations: 83.69 kB / 481.6 MB, free: 11.93 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003054/0.1259, allocations: 1.025 MB / 482.7 MB, free: 10.9 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004584/0.1305, allocations: 1.289 MB / 483.9 MB, free: 9.602 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00207/0.1326, allocations: 0.8491 MB / 484.8 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00504/0.1377, allocations: 4.055 MB / 488.8 MB, free: 4.691 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003712/0.1414, allocations: 3.525 MB / 492.4 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002813/0.1442, allocations: 1.916 MB / 494.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003155/0.1474, allocations: 2.133 MB / 496.4 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007448/0.1481, allocations: 0.5234 MB / 496.9 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001443/0.1496, allocations: 0.7224 MB / 497.7 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009456/0.1505, allocations: 1.153 MB / 498.8 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00253/0.1531, allocations: 2.171 MB / 0.4892 GB, free: 8.449 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006622/0.1597, allocations: 6.882 MB / 0.496 GB, free: 1.547 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1597, allocations: 3.938 kB / 0.496 GB, free: 1.543 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1598, allocations: 4 kB / 0.496 GB, free: 1.539 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.576e-05/0.1598, allocations: 0 / 0.496 GB, free: 1.539 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.01062/0.1705, allocations: 4.438 MB / 0.5003 GB, free: 13.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.1705, allocations: 12.03 kB / 0.5003 GB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004173/0.1747, allocations: 0.824 MB / 0.5011 GB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004578/0.1793, allocations: 2.473 MB / 0.5035 GB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001517/0.1795, allocations: 255.1 kB / 0.5038 GB, free: 9.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004935/0.18, allocations: 336 kB / 0.5041 GB, free: 9.082 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006837/0.1868, allocations: 4.511 MB / 0.5085 GB, free: 4.527 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.39e-05/0.1869, allocations: 0 / 0.5085 GB, free: 4.527 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002954/0.1872, allocations: 132 kB / 0.5086 GB, free: 4.398 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001335/0.1873, allocations: 158.7 kB / 0.5088 GB, free: 4.242 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005987/0.1933, allocations: 3.817 MB / 0.5125 GB, free: 428 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01927/0.2126, allocations: 14.01 MB / 0.5262 GB, free: 1.992 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2054/0.418, allocations: 6.141 MB / 0.5322 GB, free: 58.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002063/0.4201, allocations: 1.204 MB / 0.5334 GB, free: 58.87 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005257/0.4254, allocations: 3.302 MB / 0.5366 GB, free: 58.3 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.874e-05/0.4255, allocations: 44.41 kB / 0.5366 GB, free: 58.26 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 2.966e-06/0.4255, allocations: 0 / 0.5366 GB, free: 58.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.01007/0.4355, allocations: 5.233 MB / 0.5417 GB, free: 56.84 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.719e-05/0.4356, allocations: 67.3 kB / 0.5418 GB, free: 56.77 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002649/0.4383, allocations: 1.691 MB / 0.5435 GB, free: 56.58 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.186e-05/0.4384, allocations: 46.23 kB / 0.5435 GB, free: 56.55 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001039/0.4394, allocations: 1.493 MB / 0.545 GB, free: 55.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002641/0.4397, allocations: 415.6 kB / 0.5454 GB, free: 55.56 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004303/0.4401, allocations: 293.9 kB / 0.5456 GB, free: 55.51 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.726e-05/0.4402, allocations: 301.8 kB / 0.5459 GB, free: 55.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009809/0.4412, allocations: 0.6253 MB / 0.5465 GB, free: 54.97 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001172/0.4423, allocations: 1.128 MB / 0.5476 GB, free: 54.11 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00246/0.4448, allocations: 1.871 MB / 0.5495 GB, free: 52.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.929e-06/0.4448, allocations: 5.5 kB / 0.5495 GB, free: 52.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003994/0.4488, allocations: 2.192 MB / 0.5516 GB, free: 51.93 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.31e-05/0.4489, allocations: 12 kB / 0.5516 GB, free: 51.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.6e-05/0.4489, allocations: 15.78 kB / 0.5516 GB, free: 51.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003791/0.4493, allocations: 136.1 kB / 0.5518 GB, free: 51.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001449/0.4508, allocations: 398.1 kB / 0.5521 GB, free: 51.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002005/0.4528, allocations: 3.353 MB / 0.5554 GB, free: 48.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001262/0.454, allocations: 81.98 kB / 0.5555 GB, free: 48.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001392/0.4542, allocations: 67.78 kB / 0.5556 GB, free: 48.61 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.001833/0.456, allocations: 1.045 MB / 0.5566 GB, free: 48.01 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002503/0.4563, allocations: 181.5 kB / 0.5568 GB, free: 47.92 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002888/0.4592, allocations: 2.046 MB / 0.5588 GB, free: 46.89 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.4592, allocations: 11.84 kB / 0.5588 GB, free: 46.89 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/0.4592, allocations: 11.88 kB / 0.5588 GB, free: 46.89 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.116e-05/0.4592, allocations: 8.578 kB / 0.5588 GB, free: 46.89 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006374/0.4656, allocations: 4.778 MB / 0.5635 GB, free: 44.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.4656, allocations: 0.5 kB / 0.5635 GB, free: 44.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000652/0.4663, allocations: 160.1 kB / 0.5636 GB, free: 44.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009413/0.4672, allocations: 448.2 kB / 0.564 GB, free: 43.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.107e-05/0.4673, allocations: 33.89 kB / 0.5641 GB, free: 43.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007514/0.4748, allocations: 11.06 MB / 0.5749 GB, free: 33.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.4749, allocations: 2.531 kB / 0.5749 GB, free: 33.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00366/0.4785, allocations: 2.872 MB / 0.5777 GB, free: 31.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000738/0.4793, allocations: 390.8 kB / 0.578 GB, free: 31.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002114/0.4795, allocations: 31.98 kB / 0.5781 GB, free: 31.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008182/0.4803, allocations: 63.95 kB / 0.5781 GB, free: 31.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002742/0.4806, allocations: 100.7 kB / 0.5782 GB, free: 31.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.936e-05/0.4807, allocations: 32 kB / 0.5783 GB, free: 31.12 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001559/0.4823, allocations: 1.15 MB / 0.5794 GB, free: 29.97 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.02e-07/0.4823, allocations: 0 / 0.5794 GB, free: 29.97 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002469/0.4847, allocations: 0.5469 MB / 0.5799 GB, free: 29.43 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.0003366/0.4851, allocations: 164 kB / 0.5801 GB, free: 29.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002656/0.4878, allocations: 1.844 MB / 0.5819 GB, free: 27.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.4878, allocations: 64 / 0.5819 GB, free: 27.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001913/0.4897, allocations: 1.494 MB / 0.5833 GB, free: 25.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002049/0.4918, allocations: 0.5259 MB / 0.5838 GB, free: 25.33 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007837/0.4996, allocations: 5.641 MB / 0.5894 GB, free: 19.69 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001501/0.5011, allocations: 2.367 MB / 0.5917 GB, free: 17.3 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0009788/0.5021, allocations: 387.7 kB / 0.592 GB, free: 16.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000257/0.5024, allocations: 119.4 kB / 0.5922 GB, free: 16.81 MB / 366.1 MB Notification: Performance of SimCode: time 2.074e-06/0.5024, allocations: 7.938 kB / 0.5922 GB, free: 16.8 MB / 366.1 MB Notification: Performance of Templates: time 0.04264/0.545, allocations: 27.59 MB / 0.6191 GB, free: 5.508 MB / 382.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 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe 2>&1)