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.0009908/0.0009908, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.321/1.321, allocations: 223.3 MB / 240 MB, free: 5.52 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.0009545/0.0009544, allocations: 172.3 kB / 291.3 MB, free: 2.191 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03537/0.03537, allocations: 8.816 MB / 351.2 MB, free: 4.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003345/0.0003345, allocations: 11.3 kB / 414.5 MB, free: 42.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06584/0.06618, allocations: 52.56 MB / 467 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter1): time 0.01157/0.07779, allocations: 12.34 MB / 479.4 MB, free: 0.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006228/0.08405, allocations: 4.236 MB / 483.6 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008224/0.08489, allocations: 75.69 kB / 483.7 MB, free: 12.43 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001805/0.0867, allocations: 0.8863 MB / 484.6 MB, free: 11.54 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002371/0.08909, allocations: 1.164 MB / 485.7 MB, free: 10.37 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001484/0.09059, allocations: 0.783 MB / 486.5 MB, free: 9.586 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003931/0.09453, allocations: 4.306 MB / 490.8 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003049/0.09759, allocations: 2.904 MB / 493.7 MB, free: 2.289 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001433/0.09904, allocations: 1.326 MB / 495.1 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001696/0.1007, allocations: 1.696 MB / 496.7 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002989/0.1011, allocations: 216 kB / 497 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008315/0.1019, allocations: 423.7 kB / 497.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005996/0.1025, allocations: 0.7743 MB / 498.1 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00144/0.104, allocations: 1.782 MB / 499.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004211/0.1082, allocations: 5.656 MB / 0.4937 GB, free: 6.383 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.1082, allocations: 0 / 0.4937 GB, free: 6.383 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1082, allocations: 0 / 0.4937 GB, free: 6.383 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.981e-05/0.1083, allocations: 0 / 0.4937 GB, free: 6.383 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.008442/0.1167, allocations: 3.76 MB / 0.4974 GB, free: 2.555 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.1168, allocations: 12.03 kB / 0.4974 GB, free: 2.543 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004381/0.1211, allocations: 0.8279 MB / 0.4982 GB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003576/0.1247, allocations: 2.368 MB / 0.5005 GB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000166/0.1249, allocations: 251 kB / 0.5008 GB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004989/0.1254, allocations: 344 kB / 0.5011 GB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007096/0.1325, allocations: 4.515 MB / 0.5055 GB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.97e-05/0.1326, allocations: 3.938 kB / 0.5055 GB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003148/0.1329, allocations: 136 kB / 0.5056 GB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001425/0.1331, allocations: 158.7 kB / 0.5058 GB, free: 9.852 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0062/0.1393, allocations: 3.825 MB / 0.5095 GB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01861/0.1579, allocations: 14.25 MB / 0.5235 GB, free: 7.348 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005926/0.1639, allocations: 6.146 MB / 0.5295 GB, free: 408 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1528/0.3167, allocations: 1.21 MB / 0.5306 GB, free: 63.81 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004483/0.3212, allocations: 3.329 MB / 0.5339 GB, free: 63.21 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.287e-05/0.3212, allocations: 49.03 kB / 0.5339 GB, free: 63.18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 2.284e-06/0.3212, allocations: 0 / 0.5339 GB, free: 63.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.00925/0.3305, allocations: 5.29 MB / 0.5391 GB, free: 61.7 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.618e-05/0.3305, allocations: 65.34 kB / 0.5392 GB, free: 61.64 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002204/0.3328, allocations: 1.685 MB / 0.5408 GB, free: 61.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.342e-05/0.3328, allocations: 45.92 kB / 0.5409 GB, free: 61.42 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008252/0.3337, allocations: 1.493 MB / 0.5423 GB, free: 60.69 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002706/0.3339, allocations: 416.3 kB / 0.5427 GB, free: 60.43 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001912/0.3341, allocations: 131.8 kB / 0.5428 GB, free: 60.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.098e-05/0.3342, allocations: 307.8 kB / 0.5431 GB, free: 60.11 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001092/0.3353, allocations: 0.6364 MB / 0.5437 GB, free: 60.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001184/0.3365, allocations: 1.144 MB / 0.5449 GB, free: 59.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002234/0.3387, allocations: 1.889 MB / 0.5467 GB, free: 58.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.029e-05/0.3387, allocations: 3.719 kB / 0.5467 GB, free: 58.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003214/0.342, allocations: 2.21 MB / 0.5489 GB, free: 57.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.602e-05/0.342, allocations: 13.81 kB / 0.5489 GB, free: 57.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.31e-05/0.342, allocations: 16.22 kB / 0.5489 GB, free: 57.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003457/0.3424, allocations: 138.5 kB / 0.549 GB, free: 57.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0015/0.3439, allocations: 399.3 kB / 0.5494 GB, free: 57.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00186/0.3458, allocations: 3.088 MB / 0.5524 GB, free: 54.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/0.3469, allocations: 74.91 kB / 0.5525 GB, free: 54.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001134/0.347, allocations: 74.91 kB / 0.5526 GB, free: 54.12 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.001508/0.3485, allocations: 1.038 MB / 0.5536 GB, free: 53.53 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002641/0.3488, allocations: 179.6 kB / 0.5538 GB, free: 53.44 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003184/0.352, allocations: 2.077 MB / 0.5558 GB, free: 52.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.352, allocations: 11.75 kB / 0.5558 GB, free: 52.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.555e-06/0.352, allocations: 7.906 kB / 0.5558 GB, free: 52.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.352, allocations: 3.938 kB / 0.5558 GB, free: 52.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005937/0.358, allocations: 4.804 MB / 0.5605 GB, free: 49.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.358, allocations: 7.938 kB / 0.5605 GB, free: 49.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007223/0.3587, allocations: 166.2 kB / 0.5607 GB, free: 49.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001034/0.3598, allocations: 445.2 kB / 0.5611 GB, free: 49.62 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.213e-05/0.3598, allocations: 35.8 kB / 0.5611 GB, free: 49.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007261/0.3671, allocations: 10.1 MB / 0.571 GB, free: 40.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.3671, allocations: 3.938 kB / 0.571 GB, free: 40.46 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003784/0.3709, allocations: 2.892 MB / 0.5738 GB, free: 38.15 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005039/0.3714, allocations: 390.8 kB / 0.5742 GB, free: 37.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002032/0.3717, allocations: 31.98 kB / 0.5742 GB, free: 37.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008194/0.3725, allocations: 78.84 kB / 0.5743 GB, free: 37.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001764/0.3727, allocations: 96.8 kB / 0.5744 GB, free: 37.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.553e-05/0.3727, allocations: 32 kB / 0.5744 GB, free: 37.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001309/0.3741, allocations: 1.158 MB / 0.5755 GB, free: 36.37 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3741, allocations: 0 / 0.5755 GB, free: 36.37 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001727/0.3758, allocations: 0.5447 MB / 0.5761 GB, free: 35.82 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.0002261/0.376, allocations: 145.8 kB / 0.5762 GB, free: 35.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00236/0.3784, allocations: 1.861 MB / 0.578 GB, free: 33.78 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.3784, allocations: 0 / 0.578 GB, free: 33.78 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001792/0.3802, allocations: 1.487 MB / 0.5795 GB, free: 32.22 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002385/0.3826, allocations: 0.5087 MB / 0.58 GB, free: 31.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007484/0.3901, allocations: 7.217 MB / 0.587 GB, free: 24.47 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001452/0.3916, allocations: 2.314 MB / 0.5893 GB, free: 22.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003727/0.392, allocations: 131.4 kB / 0.5894 GB, free: 22.01 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.392, allocations: 0 / 0.5894 GB, free: 22.01 MB / 366.1 MB Notification: Performance of Templates: time 0.09596/0.4879, allocations: 104.5 MB / 0.6914 GB, free: 13.52 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)