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.0008535/0.0008535, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.355/1.355, allocations: 223.3 MB / 239.4 MB, free: 5.48 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.001216/0.001216, allocations: 176.5 kB / 290.6 MB, free: 2.152 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03428/0.03428, allocations: 8.813 MB / 350.5 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003981/0.0003982, allocations: 10.06 kB / 413.8 MB, free: 42.76 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.121, allocations: 52.56 MB / 466.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter2): time 0.01243/0.1335, allocations: 12.35 MB / 478.7 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008798/0.1423, allocations: 4.24 MB / 483 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002269/0.1446, allocations: 75.69 kB / 483 MB, free: 12.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002669/0.1473, allocations: 0.8979 MB / 483.9 MB, free: 11.49 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004145/0.1515, allocations: 1.152 MB / 485.1 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002163/0.1537, allocations: 0.7841 MB / 485.9 MB, free: 9.555 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006067/0.1597, allocations: 4.308 MB / 490.2 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003803/0.1636, allocations: 2.908 MB / 493.1 MB, free: 2.25 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002598/0.1662, allocations: 1.315 MB / 494.4 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00234/0.1685, allocations: 1.696 MB / 496.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004112/0.169, allocations: 215.9 kB / 496.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001206/0.1702, allocations: 419.7 kB / 496.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007004/0.1709, allocations: 0.7782 MB / 497.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001963/0.1729, allocations: 1.793 MB / 499.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007479/0.1804, allocations: 6.443 MB / 0.4939 GB, free: 5.551 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.104e-06/0.1804, allocations: 0 / 0.4939 GB, free: 5.551 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.526e-06/0.1804, allocations: 0 / 0.4939 GB, free: 5.551 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001749/0.1806, allocations: 0 / 0.4939 GB, free: 5.551 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.01033/0.1909, allocations: 3.756 MB / 0.4976 GB, free: 1.727 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.41e-05/0.191, allocations: 12.03 kB / 0.4976 GB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004547/0.1956, allocations: 0.8318 MB / 0.4984 GB, free: 0.8789 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004288/0.1999, allocations: 2.364 MB / 0.5007 GB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001797/0.2001, allocations: 251 kB / 0.5009 GB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005044/0.2006, allocations: 340 kB / 0.5012 GB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007759/0.2084, allocations: 4.515 MB / 0.5057 GB, free: 9.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.875e-05/0.2085, allocations: 0 / 0.5057 GB, free: 9.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003013/0.2088, allocations: 140 kB / 0.5058 GB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001524/0.2089, allocations: 158.7 kB / 0.5059 GB, free: 9.027 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006393/0.2153, allocations: 3.833 MB / 0.5097 GB, free: 5.188 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02301/0.2384, allocations: 14.25 MB / 0.5236 GB, free: 6.52 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2629/0.5014, allocations: 6.131 MB / 0.5296 GB, free: 63.13 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002516/0.5039, allocations: 1.221 MB / 0.5308 GB, free: 63.11 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005465/0.5094, allocations: 3.331 MB / 0.534 GB, free: 62.52 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.911e-05/0.5095, allocations: 49.19 kB / 0.5341 GB, free: 62.48 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 3.637e-06/0.5095, allocations: 0.75 kB / 0.5341 GB, free: 62.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.01081/0.5203, allocations: 5.296 MB / 0.5393 GB, free: 61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.01e-05/0.5204, allocations: 66.97 kB / 0.5393 GB, free: 60.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003262/0.5236, allocations: 1.681 MB / 0.541 GB, free: 60.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.503e-05/0.5238, allocations: 48.58 kB / 0.541 GB, free: 60.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001358/0.5251, allocations: 1.492 MB / 0.5425 GB, free: 59.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003924/0.5255, allocations: 418.5 kB / 0.5429 GB, free: 59.72 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002563/0.5258, allocations: 130.1 kB / 0.543 GB, free: 59.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.294e-05/0.5259, allocations: 305.6 kB / 0.5433 GB, free: 59.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001166/0.527, allocations: 0.6362 MB / 0.5439 GB, free: 59.4 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001399/0.5284, allocations: 1.141 MB / 0.545 GB, free: 58.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002709/0.5312, allocations: 1.892 MB / 0.5469 GB, free: 57.35 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.636e-05/0.5312, allocations: 3.844 kB / 0.5469 GB, free: 57.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004198/0.5354, allocations: 2.21 MB / 0.549 GB, free: 56.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.218e-05/0.5355, allocations: 11.28 kB / 0.549 GB, free: 56.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.414e-05/0.5355, allocations: 16.38 kB / 0.549 GB, free: 56.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000448/0.536, allocations: 134.2 kB / 0.5492 GB, free: 56.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001496/0.5375, allocations: 399.4 kB / 0.5496 GB, free: 56.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002183/0.5397, allocations: 3.087 MB / 0.5526 GB, free: 53.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001444/0.5411, allocations: 82.22 kB / 0.5527 GB, free: 53.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001307/0.5413, allocations: 68.06 kB / 0.5527 GB, free: 53.27 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.002275/0.5435, allocations: 1.042 MB / 0.5537 GB, free: 52.69 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003605/0.5439, allocations: 176.5 kB / 0.5539 GB, free: 52.6 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003199/0.5471, allocations: 2.073 MB / 0.5559 GB, free: 51.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-05/0.5471, allocations: 13.19 kB / 0.5559 GB, free: 51.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.894e-06/0.5472, allocations: 3.969 kB / 0.5559 GB, free: 51.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/0.5472, allocations: 7.641 kB / 0.556 GB, free: 51.56 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006567/0.5537, allocations: 4.81 MB / 0.5606 GB, free: 48.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.5538, allocations: 0 / 0.5606 GB, free: 48.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006526/0.5544, allocations: 169.6 kB / 0.5608 GB, free: 48.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001051/0.5555, allocations: 450.8 kB / 0.5612 GB, free: 48.69 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.451e-05/0.5556, allocations: 34.7 kB / 0.5613 GB, free: 48.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007573/0.5631, allocations: 10.1 MB / 0.5711 GB, free: 39.54 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.5632, allocations: 4.062 kB / 0.5711 GB, free: 39.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003956/0.5671, allocations: 2.894 MB / 0.574 GB, free: 37.14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006538/0.5678, allocations: 394 kB / 0.5743 GB, free: 36.74 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001866/0.568, allocations: 39.92 kB / 0.5744 GB, free: 36.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007666/0.5688, allocations: 67.95 kB / 0.5744 GB, free: 36.63 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002128/0.569, allocations: 92.86 kB / 0.5745 GB, free: 36.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.891e-05/0.5691, allocations: 32 kB / 0.5746 GB, free: 36.51 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00145/0.5705, allocations: 1.154 MB / 0.5757 GB, free: 35.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5705, allocations: 0 / 0.5757 GB, free: 35.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001906/0.5724, allocations: 0.543 MB / 0.5762 GB, free: 34.82 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.0002934/0.5727, allocations: 161.8 kB / 0.5764 GB, free: 34.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002525/0.5753, allocations: 1.847 MB / 0.5782 GB, free: 32.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.5753, allocations: 0 / 0.5782 GB, free: 32.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001765/0.5771, allocations: 1.499 MB / 0.5796 GB, free: 31.21 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002387/0.5795, allocations: 0.5079 MB / 0.5801 GB, free: 30.72 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01016/0.5896, allocations: 7.244 MB / 0.5872 GB, free: 23.44 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002451/0.5921, allocations: 2.358 MB / 0.5895 GB, free: 21.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001574/0.5937, allocations: 388 kB / 0.5899 GB, free: 20.67 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004086/0.5941, allocations: 123.4 kB / 0.59 GB, free: 20.55 MB / 366.1 MB Notification: Performance of SimCode: time 1.392e-06/0.5941, allocations: 1.75 kB / 0.59 GB, free: 20.55 MB / 366.1 MB Notification: Performance of Templates: time 0.04861/0.6428, allocations: 26.28 MB / 0.6157 GB, free: 10.52 MB / 382.1 MB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: