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.001418/0.001418, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.408/1.408, allocations: 222.9 MB / 239 MB, free: 4.719 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.001556/0.001556, allocations: 200.3 kB / 289.3 MB, free: 2.449 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03212/0.03212, allocations: 8.794 MB / 348.2 MB, free: 4.836 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001717/0.001717, allocations: 75.27 kB / 410.6 MB, free: 42.33 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1249, allocations: 51.57 MB / 462.1 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter1): time 0.0163/0.1413, allocations: 12.98 MB / 475.1 MB, free: 1.688 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01034/0.1517, allocations: 4.271 MB / 479.4 MB, free: 13.4 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003438/0.1552, allocations: 83.69 kB / 479.5 MB, free: 13.32 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004442/0.1598, allocations: 0.9096 MB / 480.4 MB, free: 12.41 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00629/0.1661, allocations: 1.153 MB / 481.5 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003159/0.1693, allocations: 0.7814 MB / 482.3 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007794/0.1771, allocations: 4.173 MB / 486.5 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007013/0.1841, allocations: 3.518 MB / 490 MB, free: 2.695 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004224/0.1884, allocations: 1.814 MB / 491.8 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004613/0.193, allocations: 2.105 MB / 493.9 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002026/0.1951, allocations: 0.5195 MB / 494.4 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003237/0.1984, allocations: 0.7341 MB / 495.2 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002473/0.2009, allocations: 1.141 MB / 496.3 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005925/0.2068, allocations: 2.167 MB / 498.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0129/0.2198, allocations: 6.824 MB / 0.4935 GB, free: 3.344 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.411e-05/0.2199, allocations: 4 kB / 0.4935 GB, free: 3.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.2199, allocations: 0 / 0.4935 GB, free: 3.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003359/0.2202, allocations: 0 / 0.4935 GB, free: 3.34 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.01745/0.2377, allocations: 4.422 MB / 0.4978 GB, free: 14.85 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.515e-05/0.2378, allocations: 8.031 kB / 0.4978 GB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005628/0.2434, allocations: 0.8357 MB / 0.4986 GB, free: 14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006972/0.2504, allocations: 2.36 MB / 0.5009 GB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003233/0.2508, allocations: 255.1 kB / 0.5012 GB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001534/0.2523, allocations: 340 kB / 0.5015 GB, free: 11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0141/0.2664, allocations: 4.504 MB / 0.5059 GB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001769/0.2667, allocations: 4 kB / 0.5059 GB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001099/0.2678, allocations: 136 kB / 0.506 GB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002044/0.268, allocations: 162.7 kB / 0.5062 GB, free: 6.156 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009726/0.2777, allocations: 3.813 MB / 0.5099 GB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03346/0.3113, allocations: 14.19 MB / 0.5238 GB, free: 3.727 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2663/0.5776, allocations: 6.134 MB / 0.5297 GB, free: 61.21 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002299/0.5799, allocations: 1.198 MB / 0.5309 GB, free: 61.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006763/0.5867, allocations: 3.32 MB / 0.5342 GB, free: 60.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.75e-05/0.5868, allocations: 48.5 kB / 0.5342 GB, free: 60.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 4.359e-06/0.5868, allocations: 0 / 0.5342 GB, free: 60.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.01236/0.5992, allocations: 5.223 MB / 0.5393 GB, free: 59.14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.317e-05/0.5993, allocations: 65.59 kB / 0.5394 GB, free: 59.08 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003341/0.6027, allocations: 1.687 MB / 0.541 GB, free: 58.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001236/0.6028, allocations: 46.72 kB / 0.5411 GB, free: 58.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00125/0.6041, allocations: 1.495 MB / 0.5425 GB, free: 58.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003502/0.6044, allocations: 420.4 kB / 0.5429 GB, free: 57.87 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000524/0.605, allocations: 288.9 kB / 0.5432 GB, free: 57.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.48e-05/0.605, allocations: 303.3 kB / 0.5435 GB, free: 57.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001119/0.6062, allocations: 0.6244 MB / 0.5441 GB, free: 57.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001521/0.6077, allocations: 1.138 MB / 0.5452 GB, free: 56.44 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002609/0.6103, allocations: 1.863 MB / 0.547 GB, free: 55.23 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.446e-05/0.6103, allocations: 5.312 kB / 0.547 GB, free: 55.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004047/0.6144, allocations: 2.188 MB / 0.5492 GB, free: 54.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.9e-05/0.6144, allocations: 11 kB / 0.5492 GB, free: 54.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.699e-05/0.6145, allocations: 17.67 kB / 0.5492 GB, free: 54.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004517/0.615, allocations: 139.8 kB / 0.5493 GB, free: 54.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001507/0.6165, allocations: 397.2 kB / 0.5497 GB, free: 54.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003357/0.6198, allocations: 3.355 MB / 0.553 GB, free: 50.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002158/0.622, allocations: 80.47 kB / 0.5531 GB, free: 50.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002542/0.6223, allocations: 68.03 kB / 0.5531 GB, free: 50.89 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.002358/0.6247, allocations: 1.042 MB / 0.5541 GB, free: 50.31 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000447/0.6251, allocations: 181.1 kB / 0.5543 GB, free: 50.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003472/0.6286, allocations: 2.046 MB / 0.5563 GB, free: 49.19 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.331e-05/0.6286, allocations: 15.88 kB / 0.5563 GB, free: 49.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.311e-05/0.6286, allocations: 5.781 kB / 0.5563 GB, free: 49.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.61e-05/0.6287, allocations: 11.41 kB / 0.5563 GB, free: 49.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007514/0.6362, allocations: 4.775 MB / 0.561 GB, free: 46.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/0.6362, allocations: 0 / 0.561 GB, free: 46.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006793/0.6369, allocations: 166.4 kB / 0.5612 GB, free: 46.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001087/0.638, allocations: 447.4 kB / 0.5616 GB, free: 46.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.904e-05/0.6381, allocations: 35.42 kB / 0.5616 GB, free: 46.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0083/0.6464, allocations: 11.07 MB / 0.5724 GB, free: 36.2 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.6465, allocations: 4 kB / 0.5724 GB, free: 36.19 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004189/0.6507, allocations: 2.866 MB / 0.5752 GB, free: 33.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008934/0.6516, allocations: 390.8 kB / 0.5756 GB, free: 33.14 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002087/0.6518, allocations: 31.98 kB / 0.5756 GB, free: 33.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007851/0.6526, allocations: 63.95 kB / 0.5757 GB, free: 33.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003011/0.6529, allocations: 100.7 kB / 0.5758 GB, free: 32.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.527e-05/0.653, allocations: 32 kB / 0.5758 GB, free: 32.92 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001524/0.6545, allocations: 1.154 MB / 0.577 GB, free: 31.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6545, allocations: 0 / 0.577 GB, free: 31.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002198/0.6567, allocations: 0.5455 MB / 0.5775 GB, free: 31.23 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.0002935/0.657, allocations: 155.6 kB / 0.5776 GB, free: 31.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003552/0.6606, allocations: 2.118 MB / 0.5797 GB, free: 28.93 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.6606, allocations: 8.188 kB / 0.5797 GB, free: 28.92 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001862/0.6625, allocations: 1.483 MB / 0.5812 GB, free: 27.37 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002327/0.6648, allocations: 0.5324 MB / 0.5817 GB, free: 26.86 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009491/0.6743, allocations: 7.087 MB / 0.5886 GB, free: 19.78 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00186/0.6762, allocations: 2.37 MB / 0.5909 GB, free: 17.4 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001608/0.6779, allocations: 384.2 kB / 0.5913 GB, free: 17.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002945/0.6782, allocations: 127.4 kB / 0.5914 GB, free: 16.89 MB / 366.1 MB Notification: Performance of SimCode: time 1.042e-06/0.6782, allocations: 0 / 0.5914 GB, free: 16.89 MB / 366.1 MB Notification: Performance of Templates: time 0.04902/0.7272, allocations: 27.55 MB / 0.6183 GB, free: 5.633 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 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe 2>&1)