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.005505/0.005505, allocations: 97 kB / 15.73 MB, free: 5.949 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.278/1.278, allocations: 222.9 MB / 239.4 MB, free: 4.508 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.001274/0.001274, allocations: 184.5 kB / 289.7 MB, free: 2.223 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03269/0.03269, allocations: 8.802 MB / 348.7 MB, free: 4.59 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 83.8 kB / 463.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09287/0.09426, allocations: 51.57 MB / 0.5034 GB, free: 9.449 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter1): time 0.01422/0.1085, allocations: 13.12 MB / 0.5162 GB, free: 12.26 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007548/0.1161, allocations: 4.329 MB / 0.5204 GB, free: 7.918 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001653/0.1178, allocations: 87.62 kB / 0.5205 GB, free: 7.832 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002416/0.1202, allocations: 1.025 MB / 0.5215 GB, free: 6.801 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003356/0.1236, allocations: 1.281 MB / 0.5228 GB, free: 5.512 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00183/0.1255, allocations: 0.8623 MB / 0.5236 GB, free: 4.652 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00427/0.1298, allocations: 4.039 MB / 0.5276 GB, free: 0.5898 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.215/0.3448, allocations: 3.52 MB / 0.531 GB, free: 5.629 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00267/0.3475, allocations: 1.916 MB / 0.5329 GB, free: 5.492 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003201/0.3507, allocations: 2.132 MB / 0.535 GB, free: 5.121 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009875/0.3517, allocations: 0.5256 MB / 0.5355 GB, free: 5.121 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001781/0.3535, allocations: 0.7214 MB / 0.5362 GB, free: 5.121 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009064/0.3544, allocations: 1.146 MB / 0.5373 GB, free: 4.988 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002728/0.3572, allocations: 2.174 MB / 0.5394 GB, free: 4.461 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009117/0.3663, allocations: 6.908 MB / 0.5462 GB, free: 3.727 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.3663, allocations: 4.594 kB / 0.5462 GB, free: 3.723 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.3663, allocations: 2.672 kB / 0.5462 GB, free: 3.723 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.00021/0.3665, allocations: 0.5 kB / 0.5462 GB, free: 3.723 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.01605/0.3826, allocations: 4.534 MB / 0.5506 GB, free: 2.035 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.3827, allocations: 9.344 kB / 0.5506 GB, free: 2.035 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005017/0.3877, allocations: 0.8429 MB / 0.5514 GB, free: 1.824 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005475/0.3932, allocations: 2.489 MB / 0.5539 GB, free: 0.9648 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002281/0.3934, allocations: 246.4 kB / 0.5541 GB, free: 0.8555 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001271/0.3947, allocations: 337 kB / 0.5544 GB, free: 0.7461 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009063/0.4038, allocations: 4.513 MB / 0.5588 GB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-05/0.4039, allocations: 3.953 kB / 0.5588 GB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003441/0.4043, allocations: 133.3 kB / 0.559 GB, free: 13.99 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001514/0.4044, allocations: 160.2 kB / 0.5591 GB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006439/0.4109, allocations: 3.819 MB / 0.5628 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01955/0.4304, allocations: 14.06 MB / 0.5766 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005563/0.436, allocations: 6.141 MB / 0.5826 GB, free: 9.672 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001789/0.4379, allocations: 1.177 MB / 0.5837 GB, free: 8.492 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005308/0.4432, allocations: 3.304 MB / 0.5869 GB, free: 5.152 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.963e-05/0.4433, allocations: 43.56 kB / 0.587 GB, free: 5.102 MB / 398.1 MB Notification: Performance of pre-optimization done (n=115): time 3.116e-06/0.4433, allocations: 0 / 0.587 GB, free: 5.102 MB / 398.1 MB Notification: Performance of matching and sorting (n=118): time 0.01038/0.4536, allocations: 5.284 MB / 0.5921 GB, free: 15.66 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.616e-05/0.4537, allocations: 64.41 kB / 0.5922 GB, free: 15.58 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002337/0.4561, allocations: 1.682 MB / 0.5939 GB, free: 13.89 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.369e-05/0.4562, allocations: 49.64 kB / 0.5939 GB, free: 13.84 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009269/0.4571, allocations: 1.535 MB / 0.5954 GB, free: 12.29 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002923/0.4574, allocations: 437.9 kB / 0.5958 GB, free: 11.87 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000408/0.4578, allocations: 283.5 kB / 0.5961 GB, free: 11.59 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.141e-05/0.4579, allocations: 309.1 kB / 0.5964 GB, free: 11.28 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009504/0.4589, allocations: 0.6208 MB / 0.597 GB, free: 10.66 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001247/0.4601, allocations: 1.134 MB / 0.5981 GB, free: 9.316 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002275/0.4624, allocations: 1.869 MB / 0.5999 GB, free: 7.285 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.426e-06/0.4624, allocations: 4 kB / 0.5999 GB, free: 7.281 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003277/0.4657, allocations: 2.199 MB / 0.6021 GB, free: 5.145 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/0.4657, allocations: 12 kB / 0.6021 GB, free: 5.133 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.958e-05/0.4658, allocations: 19.98 kB / 0.6021 GB, free: 5.113 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003499/0.4661, allocations: 141.1 kB / 0.6022 GB, free: 4.969 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001326/0.4675, allocations: 399.7 kB / 0.6026 GB, free: 4.605 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002408/0.4699, allocations: 3.366 MB / 0.6059 GB, free: 0.9844 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001355/0.4713, allocations: 76.02 kB / 0.606 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001502/0.4714, allocations: 75.98 kB / 0.606 GB, free: 0.8359 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.001842/0.4733, allocations: 1.038 MB / 0.6071 GB, free: 15.81 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004086/0.4737, allocations: 186.8 kB / 0.6072 GB, free: 15.63 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003462/0.4771, allocations: 2.034 MB / 0.6092 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.431e-05/0.4772, allocations: 20.11 kB / 0.6092 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.105e-05/0.4772, allocations: 12 kB / 0.6093 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.373e-05/0.4772, allocations: 14.25 kB / 0.6093 GB, free: 13.51 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008062/0.4853, allocations: 4.779 MB / 0.6139 GB, free: 8.656 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.197e-06/0.4853, allocations: 4 kB / 0.6139 GB, free: 8.652 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006787/0.486, allocations: 160 kB / 0.6141 GB, free: 8.504 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00114/0.4872, allocations: 449.2 kB / 0.6145 GB, free: 8.055 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.908e-05/0.4873, allocations: 35.98 kB / 0.6146 GB, free: 8.02 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009515/0.4968, allocations: 11.06 MB / 0.6254 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.4968, allocations: 4.062 kB / 0.6254 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004641/0.5015, allocations: 2.87 MB / 0.6282 GB, free: 9.402 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000924/0.5024, allocations: 403.7 kB / 0.6285 GB, free: 8.988 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004953/0.5029, allocations: 35.94 kB / 0.6286 GB, free: 8.953 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001066/0.504, allocations: 60.08 kB / 0.6286 GB, free: 8.895 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002655/0.5043, allocations: 103.5 kB / 0.6287 GB, free: 8.797 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.771e-05/0.5044, allocations: 35.98 kB / 0.6288 GB, free: 8.762 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002026/0.5064, allocations: 1.15 MB / 0.6299 GB, free: 7.617 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5064, allocations: 0 / 0.6299 GB, free: 7.617 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002379/0.5088, allocations: 0.543 MB / 0.6304 GB, free: 7.074 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.0003615/0.5092, allocations: 158.3 kB / 0.6306 GB, free: 6.918 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002946/0.5122, allocations: 1.848 MB / 0.6324 GB, free: 5.086 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.5122, allocations: 8.188 kB / 0.6324 GB, free: 5.078 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002085/0.5143, allocations: 1.494 MB / 0.6338 GB, free: 3.535 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00277/0.5171, allocations: 0.5205 MB / 0.6344 GB, free: 3.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0099/0.527, allocations: 5.752 MB / 0.64 GB, free: 13.25 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002426/0.5294, allocations: 2.362 MB / 0.6423 GB, free: 10.86 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00128/0.5307, allocations: 388 kB / 0.6427 GB, free: 10.48 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003711/0.5311, allocations: 123.4 kB / 0.6428 GB, free: 10.36 MB / 462.1 MB Notification: Performance of SimCode: time 6.51e-07/0.5311, allocations: 0 / 0.6428 GB, free: 10.36 MB / 462.1 MB Notification: Performance of Templates: time 0.04403/0.5752, allocations: 28.09 MB / 0.6702 GB, free: 14.6 MB / 494.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)