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.006264/0.006264, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.397/1.397, allocations: 222.9 MB / 239.4 MB, free: 4.535 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.001619/0.001619, allocations: 188.5 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03375/0.03375, allocations: 8.794 MB / 348.6 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 79.88 kB / 463.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1255, allocations: 51.57 MB / 0.5034 GB, free: 9.457 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter2): time 0.01666/0.1422, allocations: 13.14 MB / 0.5162 GB, free: 12.25 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009267/0.1515, allocations: 4.337 MB / 0.5205 GB, free: 7.902 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002843/0.1544, allocations: 87.62 kB / 0.5206 GB, free: 7.816 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003167/0.1576, allocations: 1.025 MB / 0.5216 GB, free: 6.785 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004694/0.1623, allocations: 1.285 MB / 0.5228 GB, free: 5.492 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002393/0.1647, allocations: 0.853 MB / 0.5237 GB, free: 4.641 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005606/0.1704, allocations: 4.031 MB / 0.5276 GB, free: 0.5859 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3148/0.4852, allocations: 3.521 MB / 0.531 GB, free: 5.566 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003621/0.4888, allocations: 1.935 MB / 0.5329 GB, free: 5.434 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00366/0.4925, allocations: 2.132 MB / 0.535 GB, free: 5.059 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009966/0.4935, allocations: 0.5252 MB / 0.5355 GB, free: 5.059 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001852/0.4954, allocations: 0.7222 MB / 0.5362 GB, free: 5.059 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001154/0.4965, allocations: 1.149 MB / 0.5373 GB, free: 4.926 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003051/0.4996, allocations: 2.176 MB / 0.5395 GB, free: 4.398 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01218/0.5118, allocations: 6.888 MB / 0.5462 GB, free: 3.73 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.305e-06/0.5118, allocations: 0.5312 kB / 0.5462 GB, free: 3.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.5118, allocations: 0 / 0.5462 GB, free: 3.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002978/0.5121, allocations: 0.5 kB / 0.5462 GB, free: 3.73 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.01768/0.5298, allocations: 4.444 MB / 0.5505 GB, free: 2.137 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.679e-05/0.5299, allocations: 10.16 kB / 0.5505 GB, free: 2.137 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004661/0.5346, allocations: 0.8238 MB / 0.5513 GB, free: 1.945 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006264/0.5409, allocations: 2.475 MB / 0.5538 GB, free: 1.102 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002986/0.5412, allocations: 250 kB / 0.554 GB, free: 0.9922 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007838/0.542, allocations: 334.5 kB / 0.5543 GB, free: 0.8789 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01103/0.553, allocations: 4.513 MB / 0.5587 GB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.468e-05/0.5531, allocations: 7.375 kB / 0.5587 GB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003587/0.5535, allocations: 134.9 kB / 0.5589 GB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001602/0.5537, allocations: 156.4 kB / 0.559 GB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007729/0.5614, allocations: 3.815 MB / 0.5627 GB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02229/0.5837, allocations: 14.02 MB / 0.5764 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005798/0.5895, allocations: 6.139 MB / 0.5824 GB, free: 9.879 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001742/0.5913, allocations: 1.183 MB / 0.5836 GB, free: 8.695 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005374/0.5967, allocations: 3.299 MB / 0.5868 GB, free: 5.359 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.29e-05/0.5968, allocations: 58.73 kB / 0.5869 GB, free: 5.297 MB / 398.1 MB Notification: Performance of pre-optimization done (n=115): time 2.445e-06/0.5968, allocations: 0 / 0.5869 GB, free: 5.297 MB / 398.1 MB Notification: Performance of matching and sorting (n=118): time 0.01024/0.607, allocations: 5.217 MB / 0.592 GB, free: 15.91 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.59e-05/0.6071, allocations: 68.39 kB / 0.592 GB, free: 15.83 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002607/0.6097, allocations: 1.686 MB / 0.5937 GB, free: 14.14 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.152e-05/0.6098, allocations: 49.69 kB / 0.5937 GB, free: 14.09 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001001/0.6108, allocations: 1.495 MB / 0.5952 GB, free: 12.58 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002963/0.6111, allocations: 417.2 kB / 0.5956 GB, free: 12.17 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004498/0.6116, allocations: 291.2 kB / 0.5958 GB, free: 11.88 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.6117, allocations: 301.1 kB / 0.5961 GB, free: 11.58 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009518/0.6126, allocations: 0.6207 MB / 0.5967 GB, free: 10.96 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001327/0.614, allocations: 1.137 MB / 0.5979 GB, free: 9.613 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002372/0.6164, allocations: 1.867 MB / 0.5997 GB, free: 7.586 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.286e-06/0.6164, allocations: 8 kB / 0.5997 GB, free: 7.578 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003255/0.6196, allocations: 2.186 MB / 0.6018 GB, free: 5.453 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.974e-05/0.6197, allocations: 13.78 kB / 0.6018 GB, free: 5.441 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.937e-05/0.6197, allocations: 20 kB / 0.6019 GB, free: 5.422 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003804/0.6201, allocations: 137.1 kB / 0.602 GB, free: 5.281 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00136/0.6215, allocations: 395.6 kB / 0.6024 GB, free: 4.918 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002525/0.624, allocations: 3.36 MB / 0.6056 GB, free: 1.301 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001293/0.6253, allocations: 79.8 kB / 0.6057 GB, free: 1.223 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001071/0.6254, allocations: 68 kB / 0.6058 GB, free: 1.156 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.002004/0.6274, allocations: 1.04 MB / 0.6068 GB, free: 132 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002757/0.6277, allocations: 181.8 kB / 0.607 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003395/0.6311, allocations: 2.045 MB / 0.609 GB, free: 13.87 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.958e-06/0.6311, allocations: 12 kB / 0.609 GB, free: 13.86 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/0.6312, allocations: 4 kB / 0.609 GB, free: 13.85 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.736e-05/0.6312, allocations: 11.92 kB / 0.609 GB, free: 13.84 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007153/0.6383, allocations: 4.779 MB / 0.6137 GB, free: 8.988 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.283e-06/0.6384, allocations: 4.172 kB / 0.6137 GB, free: 8.984 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006937/0.6391, allocations: 159.8 kB / 0.6138 GB, free: 8.836 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001121/0.6402, allocations: 448.1 kB / 0.6142 GB, free: 8.387 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.28e-05/0.6403, allocations: 35.92 kB / 0.6143 GB, free: 8.352 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009731/0.65, allocations: 11.07 MB / 0.6251 GB, free: 12.65 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.65, allocations: 0 / 0.6251 GB, free: 12.65 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004696/0.6548, allocations: 2.873 MB / 0.6279 GB, free: 9.711 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001144/0.6559, allocations: 394.8 kB / 0.6283 GB, free: 9.301 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005771/0.6565, allocations: 27.98 kB / 0.6283 GB, free: 9.273 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001169/0.6577, allocations: 59.95 kB / 0.6284 GB, free: 9.215 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000268/0.658, allocations: 95.5 kB / 0.6284 GB, free: 9.125 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.665e-05/0.6581, allocations: 39.98 kB / 0.6285 GB, free: 9.086 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002339/0.6604, allocations: 1.15 MB / 0.6296 GB, free: 7.941 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.6604, allocations: 0 / 0.6296 GB, free: 7.941 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002596/0.663, allocations: 0.5391 MB / 0.6301 GB, free: 7.402 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.0003696/0.6634, allocations: 158.9 kB / 0.6303 GB, free: 7.246 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003227/0.6666, allocations: 1.849 MB / 0.6321 GB, free: 5.41 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.643e-06/0.6667, allocations: 0 / 0.6321 GB, free: 5.41 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002481/0.6692, allocations: 1.49 MB / 0.6335 GB, free: 3.871 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003288/0.6725, allocations: 0.5356 MB / 0.6341 GB, free: 3.34 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01401/0.6865, allocations: 5.646 MB / 0.6396 GB, free: 13.67 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003584/0.6901, allocations: 2.37 MB / 0.6419 GB, free: 11.28 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001598/0.6917, allocations: 388.1 kB / 0.6423 GB, free: 10.89 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005154/0.6923, allocations: 119.4 kB / 0.6424 GB, free: 10.78 MB / 462.1 MB Notification: Performance of SimCode: time 1.714e-06/0.6923, allocations: 0 / 0.6424 GB, free: 10.78 MB / 462.1 MB Notification: Performance of Templates: time 0.05515/0.7474, allocations: 28.1 MB / 0.6698 GB, free: 15.01 MB / 494.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)