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.001502/0.001502, allocations: 102 kB / 16.4 MB, free: 6.461 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.446/1.446, allocations: 222.9 MB / 240.1 MB, free: 4.551 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.001799/0.001799, allocations: 196.5 kB / 290.4 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0341/0.0341, allocations: 8.795 MB / 349.3 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001721/0.001721, allocations: 75.88 kB / 464.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1342, allocations: 51.57 MB / 0.5041 GB, free: 9.469 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter2): time 0.01654/0.1508, allocations: 13.14 MB / 0.5169 GB, free: 12.27 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01295/0.1638, allocations: 4.337 MB / 0.5211 GB, free: 7.914 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003182/0.167, allocations: 83.69 kB / 0.5212 GB, free: 7.832 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004171/0.1713, allocations: 1.025 MB / 0.5222 GB, free: 6.801 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006195/0.1775, allocations: 1.289 MB / 0.5235 GB, free: 5.504 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003611/0.1811, allocations: 0.853 MB / 0.5243 GB, free: 4.652 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008555/0.1897, allocations: 4.035 MB / 0.5283 GB, free: 0.5938 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3002/0.49, allocations: 3.524 MB / 0.5317 GB, free: 5.699 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003748/0.4938, allocations: 1.935 MB / 0.5336 GB, free: 5.562 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004692/0.4985, allocations: 2.126 MB / 0.5357 GB, free: 5.191 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001814/0.5004, allocations: 0.5251 MB / 0.5362 GB, free: 5.191 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003014/0.5034, allocations: 0.7257 MB / 0.5369 GB, free: 5.191 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001384/0.5048, allocations: 1.142 MB / 0.538 GB, free: 5.059 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004189/0.509, allocations: 2.181 MB / 0.5401 GB, free: 4.531 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01121/0.5202, allocations: 6.892 MB / 0.5469 GB, free: 3.863 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.5203, allocations: 4 kB / 0.5469 GB, free: 3.859 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.5203, allocations: 0.5938 kB / 0.5469 GB, free: 3.859 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002348/0.5205, allocations: 0 / 0.5469 GB, free: 3.859 MB / 366.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.01653/0.537, allocations: 4.436 MB / 0.5512 GB, free: 2.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.194e-05/0.5371, allocations: 9.594 kB / 0.5512 GB, free: 2.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004728/0.5419, allocations: 0.8194 MB / 0.552 GB, free: 2.078 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006091/0.548, allocations: 2.479 MB / 0.5544 GB, free: 1.188 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002895/0.5483, allocations: 249.2 kB / 0.5547 GB, free: 1.074 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008376/0.5491, allocations: 331.9 kB / 0.555 GB, free: 0.9688 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01051/0.5597, allocations: 4.515 MB / 0.5594 GB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.821e-05/0.5598, allocations: 7.344 kB / 0.5594 GB, free: 14.31 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003778/0.5602, allocations: 131.9 kB / 0.5595 GB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001911/0.5604, allocations: 157.9 kB / 0.5597 GB, free: 14.19 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007422/0.5678, allocations: 3.821 MB / 0.5634 GB, free: 12.15 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02407/0.5919, allocations: 14.01 MB / 0.5771 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006208/0.5982, allocations: 6.144 MB / 0.5831 GB, free: 9.918 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001794/0.6, allocations: 1.177 MB / 0.5842 GB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005449/0.6054, allocations: 3.312 MB / 0.5875 GB, free: 5.391 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.063e-05/0.6055, allocations: 43.56 kB / 0.5875 GB, free: 5.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=115): time 3.036e-06/0.6055, allocations: 0 / 0.5875 GB, free: 5.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=118): time 0.01066/0.6162, allocations: 5.224 MB / 0.5926 GB, free: 15.94 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.683e-05/0.6163, allocations: 64.41 kB / 0.5927 GB, free: 15.87 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00274/0.619, allocations: 1.682 MB / 0.5943 GB, free: 14.18 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001004/0.6191, allocations: 48.8 kB / 0.5944 GB, free: 14.13 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001073/0.6202, allocations: 1.494 MB / 0.5958 GB, free: 12.62 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003342/0.6205, allocations: 419.6 kB / 0.5962 GB, free: 12.21 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004246/0.621, allocations: 295.2 kB / 0.5965 GB, free: 11.92 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.826e-05/0.6211, allocations: 305.1 kB / 0.5968 GB, free: 11.62 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009624/0.622, allocations: 0.6207 MB / 0.5974 GB, free: 11 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001283/0.6233, allocations: 1.134 MB / 0.5985 GB, free: 9.652 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002358/0.6257, allocations: 1.869 MB / 0.6003 GB, free: 7.621 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.115e-06/0.6257, allocations: 4 kB / 0.6003 GB, free: 7.617 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003282/0.629, allocations: 2.191 MB / 0.6025 GB, free: 5.488 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.936e-05/0.6291, allocations: 12 kB / 0.6025 GB, free: 5.477 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.68e-05/0.6291, allocations: 16 kB / 0.6025 GB, free: 5.461 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003673/0.6295, allocations: 137.9 kB / 0.6026 GB, free: 5.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001401/0.6309, allocations: 395.8 kB / 0.603 GB, free: 4.957 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002697/0.6336, allocations: 3.361 MB / 0.6063 GB, free: 1.336 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001298/0.6349, allocations: 79.97 kB / 0.6064 GB, free: 1.258 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/0.635, allocations: 71.98 kB / 0.6065 GB, free: 1.188 MB / 414.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.002032/0.6371, allocations: 1.039 MB / 0.6075 GB, free: 168 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002949/0.6374, allocations: 177.9 kB / 0.6076 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003429/0.6408, allocations: 2.044 MB / 0.6096 GB, free: 13.91 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.229e-05/0.6408, allocations: 16 kB / 0.6096 GB, free: 13.89 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.6408, allocations: 8 kB / 0.6097 GB, free: 13.89 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.459e-05/0.6409, allocations: 7.922 kB / 0.6097 GB, free: 13.88 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007837/0.6487, allocations: 4.783 MB / 0.6143 GB, free: 9.02 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/0.6487, allocations: 0 / 0.6143 GB, free: 9.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007255/0.6495, allocations: 160 kB / 0.6145 GB, free: 8.871 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00112/0.6506, allocations: 447.1 kB / 0.6149 GB, free: 8.426 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.442e-05/0.6507, allocations: 35.98 kB / 0.6149 GB, free: 8.391 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0113/0.662, allocations: 11.06 MB / 0.6258 GB, free: 12.69 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.662, allocations: 2.625 kB / 0.6258 GB, free: 12.69 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004865/0.6669, allocations: 2.873 MB / 0.6286 GB, free: 9.754 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001197/0.6681, allocations: 390.8 kB / 0.6289 GB, free: 9.348 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002154/0.6684, allocations: 31.98 kB / 0.629 GB, free: 9.316 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008248/0.6692, allocations: 63.95 kB / 0.629 GB, free: 9.254 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002763/0.6695, allocations: 99.48 kB / 0.6291 GB, free: 9.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.15e-05/0.6696, allocations: 32 kB / 0.6291 GB, free: 9.129 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001806/0.6714, allocations: 1.154 MB / 0.6303 GB, free: 7.98 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6714, allocations: 0 / 0.6303 GB, free: 7.98 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002233/0.6736, allocations: 0.5391 MB / 0.6308 GB, free: 7.441 MB / 446.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.0003698/0.674, allocations: 162.8 kB / 0.631 GB, free: 7.281 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003015/0.677, allocations: 1.841 MB / 0.6328 GB, free: 5.453 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.034e-06/0.677, allocations: 4.125 kB / 0.6328 GB, free: 5.449 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002272/0.6793, allocations: 1.497 MB / 0.6342 GB, free: 3.902 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002589/0.6819, allocations: 0.5297 MB / 0.6347 GB, free: 3.379 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01064/0.6926, allocations: 5.617 MB / 0.6402 GB, free: 13.73 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002106/0.6947, allocations: 2.312 MB / 0.6425 GB, free: 11.39 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006482/0.6954, allocations: 135.4 kB / 0.6426 GB, free: 11.26 MB / 462.1 MB Notification: Performance of SimCode: time 1.133e-06/0.6954, allocations: 0 / 0.6426 GB, free: 11.26 MB / 462.1 MB Notification: Performance of Templates: time 0.4072/1.103, allocations: 105.2 MB / 0.7454 GB, free: 181.2 MB / 0.5294 GB 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)