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.00137/0.00137, allocations: 106.3 kB / 16.27 MB, free: 5.969 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.436/1.436, allocations: 222.9 MB / 239.9 MB, free: 4.641 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.001577/0.001577, allocations: 196.5 kB / 290.2 MB, free: 2.355 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0359/0.0359, allocations: 8.79 MB / 349.2 MB, free: 4.742 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001634/0.001634, allocations: 78.53 kB / 411.7 MB, free: 42.13 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1135, allocations: 51.56 MB / 463.3 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter2): time 0.01507/0.1286, allocations: 13.15 MB / 476.5 MB, free: 1.219 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01126/0.1399, allocations: 4.333 MB / 480.8 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002954/0.1429, allocations: 83.69 kB / 480.9 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003819/0.1467, allocations: 1.029 MB / 481.9 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005084/0.1519, allocations: 1.285 MB / 483.2 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002667/0.1546, allocations: 0.8448 MB / 484 MB, free: 9.617 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006053/0.1606, allocations: 4.033 MB / 488.1 MB, free: 5.574 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00588/0.1665, allocations: 3.518 MB / 491.6 MB, free: 1.984 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003475/0.17, allocations: 1.924 MB / 493.5 MB, free: 56 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004049/0.1741, allocations: 2.113 MB / 495.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001758/0.1759, allocations: 0.5273 MB / 496.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002887/0.1788, allocations: 0.738 MB / 496.9 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001935/0.1808, allocations: 1.149 MB / 498 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004626/0.1854, allocations: 2.171 MB / 0.4885 GB, free: 9.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008895/0.1943, allocations: 6.843 MB / 0.4952 GB, free: 2.473 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1944, allocations: 4 kB / 0.4952 GB, free: 2.469 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1944, allocations: 3.938 kB / 0.4952 GB, free: 2.465 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002379/0.1946, allocations: 0 / 0.4952 GB, free: 2.465 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.0136/0.2082, allocations: 4.438 MB / 0.4995 GB, free: 13.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.85e-05/0.2083, allocations: 12.03 kB / 0.4995 GB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004842/0.2132, allocations: 0.8318 MB / 0.5003 GB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004435/0.2176, allocations: 2.395 MB / 0.5027 GB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001977/0.2178, allocations: 251.1 kB / 0.5029 GB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005208/0.2184, allocations: 344 kB / 0.5032 GB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008091/0.2265, allocations: 4.504 MB / 0.5076 GB, free: 5.527 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.465e-05/0.2266, allocations: 4 kB / 0.5076 GB, free: 5.523 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003088/0.2269, allocations: 132 kB / 0.5078 GB, free: 5.395 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001617/0.227, allocations: 158.7 kB / 0.5079 GB, free: 5.238 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006643/0.2337, allocations: 3.813 MB / 0.5116 GB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02298/0.2567, allocations: 14.2 MB / 0.5255 GB, free: 2.801 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2621/0.5189, allocations: 6.131 MB / 0.5315 GB, free: 60.58 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002494/0.5214, allocations: 1.202 MB / 0.5327 GB, free: 60.55 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006193/0.5276, allocations: 3.316 MB / 0.5359 GB, free: 59.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.821e-05/0.5277, allocations: 47.5 kB / 0.536 GB, free: 59.94 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 3.797e-06/0.5277, allocations: 0 / 0.536 GB, free: 59.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.01133/0.539, allocations: 5.232 MB / 0.5411 GB, free: 58.51 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.84e-05/0.5391, allocations: 63.56 kB / 0.5411 GB, free: 58.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00329/0.5424, allocations: 1.688 MB / 0.5428 GB, free: 58.26 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001664/0.5426, allocations: 46.77 kB / 0.5428 GB, free: 58.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001214/0.5438, allocations: 1.493 MB / 0.5443 GB, free: 57.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003863/0.5442, allocations: 419.1 kB / 0.5447 GB, free: 57.04 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005232/0.5447, allocations: 292.2 kB / 0.545 GB, free: 56.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.937e-05/0.5448, allocations: 303.5 kB / 0.5452 GB, free: 56.6 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001236/0.5461, allocations: 0.625 MB / 0.5459 GB, free: 56.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001473/0.5476, allocations: 1.132 MB / 0.547 GB, free: 55.49 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002682/0.5503, allocations: 1.864 MB / 0.5488 GB, free: 54.27 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.366e-05/0.5503, allocations: 6.062 kB / 0.5488 GB, free: 54.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004242/0.5545, allocations: 2.191 MB / 0.5509 GB, free: 53.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.548e-05/0.5546, allocations: 10.94 kB / 0.5509 GB, free: 53.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.739e-05/0.5546, allocations: 16.12 kB / 0.5509 GB, free: 53.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004708/0.5551, allocations: 137.1 kB / 0.5511 GB, free: 53.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001574/0.5567, allocations: 394.6 kB / 0.5515 GB, free: 53.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002431/0.5591, allocations: 3.359 MB / 0.5547 GB, free: 50 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00166/0.5608, allocations: 73.94 kB / 0.5548 GB, free: 49.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001756/0.561, allocations: 71.83 kB / 0.5549 GB, free: 49.96 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.002215/0.5632, allocations: 1.051 MB / 0.5559 GB, free: 49.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004427/0.5637, allocations: 181 kB / 0.5561 GB, free: 49.27 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003205/0.5669, allocations: 2.04 MB / 0.5581 GB, free: 48.26 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.184e-05/0.5669, allocations: 11.88 kB / 0.5581 GB, free: 48.26 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.5669, allocations: 11.78 kB / 0.5581 GB, free: 48.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.5669, allocations: 4.734 kB / 0.5581 GB, free: 48.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006907/0.5739, allocations: 4.789 MB / 0.5628 GB, free: 45.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.095e-06/0.5739, allocations: 2.562 kB / 0.5628 GB, free: 45.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006933/0.5746, allocations: 166.1 kB / 0.5629 GB, free: 45.51 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001096/0.5757, allocations: 444.3 kB / 0.5634 GB, free: 45.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.193e-05/0.5758, allocations: 39.45 kB / 0.5634 GB, free: 45.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008079/0.5839, allocations: 11.07 MB / 0.5742 GB, free: 35.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.5839, allocations: 3.625 kB / 0.5742 GB, free: 35.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004173/0.5881, allocations: 2.866 MB / 0.577 GB, free: 32.72 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008617/0.589, allocations: 390.8 kB / 0.5774 GB, free: 32.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002136/0.5892, allocations: 32.19 kB / 0.5774 GB, free: 32.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007721/0.59, allocations: 55.95 kB / 0.5775 GB, free: 32.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002611/0.5903, allocations: 109.9 kB / 0.5776 GB, free: 32.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.267e-05/0.5903, allocations: 36.75 kB / 0.5776 GB, free: 32.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001483/0.5918, allocations: 1.15 MB / 0.5787 GB, free: 30.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5918, allocations: 0 / 0.5787 GB, free: 30.95 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002092/0.5939, allocations: 0.543 MB / 0.5793 GB, free: 30.41 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.0003176/0.5943, allocations: 165.6 kB / 0.5794 GB, free: 30.25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003574/0.5978, allocations: 2.119 MB / 0.5815 GB, free: 28.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.5979, allocations: 7.5 kB / 0.5815 GB, free: 28.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001807/0.5997, allocations: 1.482 MB / 0.5829 GB, free: 26.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002329/0.602, allocations: 0.5256 MB / 0.5834 GB, free: 26.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008781/0.6108, allocations: 5.697 MB / 0.589 GB, free: 20.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001612/0.6125, allocations: 2.308 MB / 0.5913 GB, free: 18.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005314/0.613, allocations: 131.4 kB / 0.5914 GB, free: 17.89 MB / 366.1 MB Notification: Performance of SimCode: time 9.51e-07/0.613, allocations: 0 / 0.5914 GB, free: 17.89 MB / 366.1 MB Notification: Performance of Templates: time 0.1202/0.7332, allocations: 105 MB / 0.6939 GB, free: 8.887 MB / 462.1 MB 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)