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.006462/0.006462, allocations: 100.5 kB / 15.87 MB, free: 5.863 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.269/2.269, allocations: 222.9 MB / 239.5 MB, free: 4.809 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.002252/0.002252, allocations: 192.3 kB / 289.8 MB, free: 2.539 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05604/0.05604, allocations: 8.793 MB / 348.7 MB, free: 4.957 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002604/0.002604, allocations: 76.23 kB / 411 MB, free: 42.39 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.174/0.1766, allocations: 51.57 MB / 462.6 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter1): time 0.02612/0.2028, allocations: 12.98 MB / 475.6 MB, free: 1.965 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01397/0.2168, allocations: 4.291 MB / 479.9 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004177/0.221, allocations: 83.69 kB / 480 MB, free: 13.58 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005757/0.2268, allocations: 0.9018 MB / 480.9 MB, free: 12.67 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008692/0.2356, allocations: 1.168 MB / 482 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004557/0.2402, allocations: 0.8026 MB / 482.8 MB, free: 10.7 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01078/0.251, allocations: 4.3 MB / 487.1 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007573/0.2587, allocations: 2.923 MB / 490.1 MB, free: 3.387 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004707/0.2634, allocations: 1.533 MB / 491.6 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005732/0.2692, allocations: 1.961 MB / 493.6 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001654/0.2709, allocations: 312 kB / 493.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003193/0.2741, allocations: 0.5193 MB / 494.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001415/0.2756, allocations: 0.9148 MB / 495.3 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004873/0.2805, allocations: 1.94 MB / 497.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01001/0.2905, allocations: 5.815 MB / 0.4913 GB, free: 6.359 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.2906, allocations: 0 / 0.4913 GB, free: 6.359 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.2906, allocations: 3.938 kB / 0.4913 GB, free: 6.355 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002486/0.2908, allocations: 0 / 0.4913 GB, free: 6.355 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.0207/0.3115, allocations: 4.43 MB / 0.4956 GB, free: 1.855 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.793e-05/0.3116, allocations: 12.03 kB / 0.4956 GB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007633/0.3193, allocations: 0.8279 MB / 0.4964 GB, free: 1.012 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008079/0.3274, allocations: 2.356 MB / 0.4987 GB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003479/0.3278, allocations: 255.1 kB / 0.499 GB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001568/0.3293, allocations: 340 kB / 0.4993 GB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01539/0.3448, allocations: 4.507 MB / 0.5037 GB, free: 9.465 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001003/0.3449, allocations: 4 kB / 0.5037 GB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005115/0.3454, allocations: 132 kB / 0.5038 GB, free: 9.332 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002475/0.3457, allocations: 162.7 kB / 0.504 GB, free: 9.172 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01273/0.3584, allocations: 3.813 MB / 0.5077 GB, free: 5.352 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04376/0.4022, allocations: 14.2 MB / 0.5216 GB, free: 6.738 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4195/0.8218, allocations: 6.131 MB / 0.5275 GB, free: 64.37 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003767/0.8256, allocations: 1.202 MB / 0.5287 GB, free: 64.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009307/0.835, allocations: 3.31 MB / 0.5319 GB, free: 63.77 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.752e-05/0.8351, allocations: 47.94 kB / 0.532 GB, free: 63.73 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 6.302e-06/0.8351, allocations: 0 / 0.532 GB, free: 63.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.0183/0.8534, allocations: 5.232 MB / 0.5371 GB, free: 62.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.689e-05/0.8535, allocations: 70.78 kB / 0.5372 GB, free: 62.24 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005506/0.8591, allocations: 1.686 MB / 0.5388 GB, free: 62.05 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002827/0.8594, allocations: 46.92 kB / 0.5389 GB, free: 62.02 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002103/0.8615, allocations: 1.489 MB / 0.5403 GB, free: 61.29 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007374/0.8622, allocations: 417.8 kB / 0.5407 GB, free: 61.03 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007622/0.863, allocations: 290 kB / 0.541 GB, free: 61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.092e-05/0.8631, allocations: 302.3 kB / 0.5413 GB, free: 60.71 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002054/0.8652, allocations: 0.6258 MB / 0.5419 GB, free: 60.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002591/0.8678, allocations: 1.137 MB / 0.543 GB, free: 59.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004578/0.8724, allocations: 1.866 MB / 0.5448 GB, free: 58.44 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.911e-05/0.8724, allocations: 5.594 kB / 0.5448 GB, free: 58.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.006675/0.8791, allocations: 2.191 MB / 0.547 GB, free: 57.44 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.315e-05/0.8792, allocations: 12.81 kB / 0.547 GB, free: 57.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.82e-05/0.8793, allocations: 15.03 kB / 0.547 GB, free: 57.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000632/0.8799, allocations: 140.4 kB / 0.5471 GB, free: 57.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002467/0.8824, allocations: 391.8 kB / 0.5475 GB, free: 57.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003805/0.8862, allocations: 3.089 MB / 0.5505 GB, free: 54.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002564/0.8888, allocations: 73.42 kB / 0.5506 GB, free: 54.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003202/0.8891, allocations: 76.44 kB / 0.5507 GB, free: 54.38 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.003437/0.8926, allocations: 1.042 MB / 0.5517 GB, free: 53.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007705/0.8934, allocations: 178.1 kB / 0.5518 GB, free: 53.7 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005158/0.8985, allocations: 2.048 MB / 0.5538 GB, free: 52.67 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.682e-05/0.8986, allocations: 12.44 kB / 0.5539 GB, free: 52.67 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.307e-05/0.8986, allocations: 7.938 kB / 0.5539 GB, free: 52.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.832e-05/0.8986, allocations: 7.828 kB / 0.5539 GB, free: 52.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01123/0.9099, allocations: 4.779 MB / 0.5585 GB, free: 50.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.349e-05/0.9099, allocations: 0.75 kB / 0.5585 GB, free: 50.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/0.911, allocations: 166.9 kB / 0.5587 GB, free: 49.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001968/0.913, allocations: 446.6 kB / 0.5591 GB, free: 49.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001871/0.9132, allocations: 38.58 kB / 0.5592 GB, free: 49.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01173/0.9249, allocations: 10.1 MB / 0.569 GB, free: 40.58 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.925, allocations: 4.422 kB / 0.569 GB, free: 40.58 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006379/0.9314, allocations: 2.857 MB / 0.5718 GB, free: 37.88 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001465/0.9329, allocations: 390.8 kB / 0.5722 GB, free: 37.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003523/0.9332, allocations: 35.92 kB / 0.5722 GB, free: 37.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/0.9345, allocations: 66.39 kB / 0.5723 GB, free: 37.38 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003801/0.9349, allocations: 96.8 kB / 0.5724 GB, free: 37.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001065/0.935, allocations: 37.2 kB / 0.5724 GB, free: 37.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002298/0.9373, allocations: 1.15 MB / 0.5735 GB, free: 36.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.9373, allocations: 4 kB / 0.5735 GB, free: 36.1 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00329/0.9406, allocations: 0.5457 MB / 0.5741 GB, free: 35.56 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.0004575/0.9411, allocations: 155.6 kB / 0.5742 GB, free: 35.4 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004148/0.9452, allocations: 1.839 MB / 0.576 GB, free: 33.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.9453, allocations: 0 / 0.576 GB, free: 33.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002875/0.9481, allocations: 1.486 MB / 0.5775 GB, free: 31.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003484/0.9516, allocations: 0.5068 MB / 0.578 GB, free: 31.49 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01481/0.9665, allocations: 7.056 MB / 0.5849 GB, free: 24.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002373/0.9689, allocations: 2.312 MB / 0.5871 GB, free: 22.1 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007024/0.9696, allocations: 127.4 kB / 0.5872 GB, free: 21.98 MB / 366.1 MB Notification: Performance of SimCode: time 1.072e-06/0.9696, allocations: 4 kB / 0.5872 GB, free: 21.97 MB / 366.1 MB Notification: Performance of Templates: time 0.1938/1.163, allocations: 105 MB / 0.6897 GB, free: 13 MB / 462.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)