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.001114/0.001114, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 222.9 MB / 239.2 MB, free: 4.594 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.001414/0.001414, allocations: 184.5 kB / 289.5 MB, free: 2.316 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03602/0.03602, allocations: 8.793 MB / 348.5 MB, free: 4.688 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001902/0.001902, allocations: 79.03 kB / 411.1 MB, free: 41.99 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1336, allocations: 51.57 MB / 462.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter2): time 0.01743/0.1511, allocations: 13.13 MB / 475.8 MB, free: 1.125 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01015/0.1613, allocations: 4.341 MB / 480.1 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004485/0.1658, allocations: 87.62 kB / 480.2 MB, free: 12.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004837/0.1707, allocations: 1.025 MB / 481.2 MB, free: 11.65 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005794/0.1766, allocations: 1.284 MB / 482.5 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002899/0.1796, allocations: 0.8608 MB / 483.4 MB, free: 9.504 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00685/0.1864, allocations: 4.024 MB / 487.4 MB, free: 5.469 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006339/0.1928, allocations: 3.521 MB / 490.9 MB, free: 1.875 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003897/0.1967, allocations: 1.912 MB / 492.8 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005153/0.2019, allocations: 2.125 MB / 495 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002073/0.204, allocations: 0.5234 MB / 495.5 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003385/0.2074, allocations: 0.7342 MB / 496.2 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002293/0.2097, allocations: 1.145 MB / 497.4 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005941/0.2157, allocations: 2.178 MB / 499.5 MB, free: 9.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01244/0.2282, allocations: 6.839 MB / 0.4945 GB, free: 2.371 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.2282, allocations: 0 / 0.4945 GB, free: 2.371 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2283, allocations: 0 / 0.4945 GB, free: 2.371 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003236/0.2286, allocations: 0 / 0.4945 GB, free: 2.371 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.01727/0.2459, allocations: 4.45 MB / 0.4988 GB, free: 13.85 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.233e-05/0.2459, allocations: 8.031 kB / 0.4989 GB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005629/0.2516, allocations: 0.8318 MB / 0.4997 GB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006723/0.2583, allocations: 2.403 MB / 0.502 GB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003487/0.2587, allocations: 251.1 kB / 0.5023 GB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00169/0.2604, allocations: 336 kB / 0.5026 GB, free: 9.973 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01307/0.2735, allocations: 4.5 MB / 0.507 GB, free: 5.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001332/0.2737, allocations: 7.938 kB / 0.507 GB, free: 5.422 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009816/0.2747, allocations: 136 kB / 0.5071 GB, free: 5.289 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002048/0.2749, allocations: 162.7 kB / 0.5073 GB, free: 5.129 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009338/0.2842, allocations: 3.805 MB / 0.511 GB, free: 1.316 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02923/0.3135, allocations: 14.2 MB / 0.5248 GB, free: 2.703 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2883/0.6018, allocations: 6.136 MB / 0.5308 GB, free: 60.38 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002334/0.6042, allocations: 1.2 MB / 0.532 GB, free: 60.36 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005416/0.6096, allocations: 3.313 MB / 0.5352 GB, free: 59.78 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.392e-05/0.6097, allocations: 46.27 kB / 0.5353 GB, free: 59.74 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 6.663e-06/0.6097, allocations: 7.516 kB / 0.5353 GB, free: 59.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.01052/0.6202, allocations: 5.233 MB / 0.5404 GB, free: 58.31 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.225e-05/0.6203, allocations: 63.72 kB / 0.5405 GB, free: 58.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002959/0.6233, allocations: 1.686 MB / 0.5421 GB, free: 58.06 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001188/0.6234, allocations: 46.14 kB / 0.5422 GB, free: 58.03 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001062/0.6245, allocations: 1.493 MB / 0.5436 GB, free: 57.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000311/0.6248, allocations: 418.7 kB / 0.544 GB, free: 56.85 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004531/0.6253, allocations: 290.5 kB / 0.5443 GB, free: 56.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.389e-05/0.6253, allocations: 301.1 kB / 0.5446 GB, free: 56.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00105/0.6264, allocations: 0.6247 MB / 0.5452 GB, free: 56.17 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001223/0.6276, allocations: 1.133 MB / 0.5463 GB, free: 55.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002385/0.63, allocations: 1.869 MB / 0.5481 GB, free: 54.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.16e-05/0.63, allocations: 4.562 kB / 0.5481 GB, free: 54.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003844/0.6339, allocations: 2.186 MB / 0.5503 GB, free: 53.1 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.569e-05/0.6339, allocations: 13.52 kB / 0.5503 GB, free: 53.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.984e-05/0.634, allocations: 16.56 kB / 0.5503 GB, free: 53.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004245/0.6344, allocations: 136.4 kB / 0.5504 GB, free: 53.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001484/0.6359, allocations: 398.1 kB / 0.5508 GB, free: 53 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002316/0.6382, allocations: 3.356 MB / 0.5541 GB, free: 49.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001567/0.6398, allocations: 78.83 kB / 0.5541 GB, free: 49.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001674/0.64, allocations: 71.7 kB / 0.5542 GB, free: 49.77 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.002093/0.6421, allocations: 1.049 MB / 0.5552 GB, free: 49.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003284/0.6424, allocations: 177.5 kB / 0.5554 GB, free: 49.08 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002949/0.6454, allocations: 2.04 MB / 0.5574 GB, free: 48.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.307e-06/0.6454, allocations: 16.88 kB / 0.5574 GB, free: 48.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/0.6454, allocations: 11.73 kB / 0.5574 GB, free: 48.06 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/0.6454, allocations: 7.5 kB / 0.5574 GB, free: 48.06 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006538/0.652, allocations: 4.785 MB / 0.5621 GB, free: 45.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.652, allocations: 1.844 kB / 0.5621 GB, free: 45.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006796/0.6527, allocations: 167.9 kB / 0.5623 GB, free: 45.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001009/0.6537, allocations: 442.7 kB / 0.5627 GB, free: 45.13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.271e-05/0.6538, allocations: 39.47 kB / 0.5627 GB, free: 45.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00765/0.6615, allocations: 11.07 MB / 0.5735 GB, free: 35.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.888e-06/0.6615, allocations: 9.938 kB / 0.5735 GB, free: 35.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003965/0.6655, allocations: 2.86 MB / 0.5763 GB, free: 32.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008858/0.6664, allocations: 390.8 kB / 0.5767 GB, free: 32.19 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002087/0.6666, allocations: 35.98 kB / 0.5767 GB, free: 32.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007663/0.6674, allocations: 59.95 kB / 0.5768 GB, free: 32.1 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000265/0.6676, allocations: 100.7 kB / 0.5769 GB, free: 32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.151e-05/0.6677, allocations: 32 kB / 0.5769 GB, free: 31.97 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001421/0.6691, allocations: 1.158 MB / 0.5781 GB, free: 30.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6691, allocations: 0 / 0.5781 GB, free: 30.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002198/0.6713, allocations: 0.5391 MB / 0.5786 GB, free: 30.28 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.0002941/0.6716, allocations: 167.2 kB / 0.5788 GB, free: 30.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003448/0.6751, allocations: 2.115 MB / 0.5808 GB, free: 27.97 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.6751, allocations: 4.062 kB / 0.5808 GB, free: 27.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001804/0.6769, allocations: 1.49 MB / 0.5823 GB, free: 26.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002369/0.6793, allocations: 0.5232 MB / 0.5828 GB, free: 25.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008522/0.6879, allocations: 5.715 MB / 0.5884 GB, free: 20.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001522/0.6894, allocations: 2.365 MB / 0.5907 GB, free: 17.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001392/0.6908, allocations: 384.2 kB / 0.591 GB, free: 17.44 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002574/0.6911, allocations: 123.4 kB / 0.5912 GB, free: 17.32 MB / 366.1 MB Notification: Performance of SimCode: time 1.102e-06/0.6911, allocations: 0 / 0.5912 GB, free: 17.32 MB / 366.1 MB Notification: Performance of Templates: time 0.04845/0.7395, allocations: 27.66 MB / 0.6182 GB, free: 5.941 MB / 382.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)