Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.conf.json 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) Running command: translateModel(HanserModelica.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter") translateModel(HanserModelica.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001061/0.00106, allocations: 182.8 kB / 15.98 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03765/0.03765, allocations: 8.793 MB / 25.52 MB, free: 3.758 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 222.9 MB / 251.3 MB, free: 7.328 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001013/0.001013, allocations: 97.27 kB / 303.6 MB, free: 14.5 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 63.91 kB / 366 MB, free: 164 kB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1848/0.186, allocations: 51.55 MB / 417.5 MB, free: 20.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.009913/0.1959, allocations: 13.25 MB / 430.8 MB, free: 7.594 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005931/0.2019, allocations: 4.376 MB / 435.2 MB, free: 3.199 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001512/0.2034, allocations: 83.69 kB / 435.2 MB, free: 3.117 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001983/0.2054, allocations: 0.8978 MB / 436.1 MB, free: 2.215 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002607/0.2081, allocations: 1.17 MB / 437.3 MB, free: 1.039 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMR_Inverter.mo:88:3-88:33:writable] Warning: Conditional component ‘ir‘ is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.001392/0.2095, allocations: 0.8046 MB / 438.1 MB, free: 240 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003948/0.2134, allocations: 4.104 MB / 442.2 MB, free: 12.12 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002854/0.2163, allocations: 2.793 MB / 445 MB, free: 9.262 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001576/0.2179, allocations: 1.452 MB / 446.5 MB, free: 7.805 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001759/0.2197, allocations: 1.852 MB / 448.3 MB, free: 5.945 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003882/0.2201, allocations: 296 kB / 448.6 MB, free: 5.656 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009604/0.221, allocations: 0.4997 MB / 449.1 MB, free: 5.156 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006681/0.2217, allocations: 0.8642 MB / 450 MB, free: 4.289 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001627/0.2233, allocations: 1.827 MB / 451.8 MB, free: 2.453 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005259/0.2286, allocations: 6.212 MB / 458 MB, free: 12.22 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2286, allocations: 8 kB / 458 MB, free: 12.21 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.51e-07/0.2286, allocations: 0 / 458 MB, free: 12.21 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001482/0.2288, allocations: 3.938 kB / 458 MB, free: 12.21 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01017/0.239, allocations: 4.164 MB / 462.2 MB, free: 7.973 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.239, allocations: 12.03 kB / 462.2 MB, free: 7.961 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003428/0.2425, allocations: 0.754 MB / 462.9 MB, free: 7.203 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003598/0.2461, allocations: 2.207 MB / 465.2 MB, free: 4.938 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001361/0.2462, allocations: 238.7 kB / 465.4 MB, free: 4.703 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004027/0.2466, allocations: 316 kB / 465.7 MB, free: 4.395 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006169/0.2528, allocations: 4.165 MB / 469.9 MB, free: 184 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.679e-05/0.2529, allocations: 0 / 469.9 MB, free: 184 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002611/0.2532, allocations: 132 kB / 470 MB, free: 52 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000148/0.2533, allocations: 146.3 kB / 470.1 MB, free: 15.91 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005315/0.2586, allocations: 3.503 MB / 473.6 MB, free: 12.39 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01724/0.2759, allocations: 13.2 MB / 486.8 MB, free: 14.78 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004711/0.2806, allocations: 5.494 MB / 492.3 MB, free: 8.551 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00159/0.2822, allocations: 1.079 MB / 493.4 MB, free: 7.469 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004348/0.2866, allocations: 3.048 MB / 496.5 MB, free: 4.332 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.906e-05/0.2866, allocations: 51.5 kB / 496.5 MB, free: 4.273 MB / 362.7 MB Notification: Performance of pre-optimization done (n=107): time 2.174e-06/0.2867, allocations: 4 kB / 496.5 MB, free: 4.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=110): time 0.1718/0.4585, allocations: 4.608 MB / 0.4894 GB, free: 68.97 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/0.4585, allocations: 63.03 kB / 0.4894 GB, free: 68.91 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002406/0.4609, allocations: 1.601 MB / 0.491 GB, free: 68.45 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001367/0.4611, allocations: 42.42 kB / 0.491 GB, free: 68.4 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007533/0.4618, allocations: 1.42 MB / 0.4924 GB, free: 67.72 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002075/0.4621, allocations: 393.6 kB / 0.4928 GB, free: 67.43 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003611/0.4624, allocations: 273.9 kB / 0.4931 GB, free: 67.29 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 3.91e-05/0.4625, allocations: 311 kB / 0.4934 GB, free: 66.99 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008945/0.4634, allocations: 0.5661 MB / 0.4939 GB, free: 66.77 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009912/0.4644, allocations: 1.058 MB / 0.4949 GB, free: 65.95 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001747/0.4661, allocations: 1.728 MB / 0.4966 GB, free: 64.79 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/0.4661, allocations: 3.781 kB / 0.4966 GB, free: 64.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.002739/0.4689, allocations: 2.036 MB / 0.4986 GB, free: 63.86 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.4689, allocations: 14.22 kB / 0.4986 GB, free: 63.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.701e-05/0.4689, allocations: 15.78 kB / 0.4987 GB, free: 63.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003159/0.4693, allocations: 138 kB / 0.4988 GB, free: 63.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001192/0.4705, allocations: 368 kB / 0.4991 GB, free: 63.76 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00171/0.4722, allocations: 3.083 MB / 0.5021 GB, free: 60.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009519/0.4732, allocations: 73.64 kB / 0.5022 GB, free: 60.81 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.257e-05/0.4733, allocations: 63.41 kB / 0.5023 GB, free: 60.8 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (185): * Single equations (assignments): 182 * 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.001233/0.4745, allocations: 0.9733 MB / 0.5032 GB, free: 60.23 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002145/0.4747, allocations: 169.8 kB / 0.5034 GB, free: 60.15 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002812/0.4775, allocations: 1.809 MB / 0.5052 GB, free: 59.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.876e-06/0.4775, allocations: 10.78 kB / 0.5052 GB, free: 59.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.134e-06/0.4776, allocations: 4.969 kB / 0.5052 GB, free: 59.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.4776, allocations: 5.625 kB / 0.5052 GB, free: 59.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005297/0.4829, allocations: 4.349 MB / 0.5094 GB, free: 57.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.4829, allocations: 7.391 kB / 0.5094 GB, free: 57.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007412/0.4836, allocations: 173.8 kB / 0.5096 GB, free: 57.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006976/0.4844, allocations: 311.1 kB / 0.5099 GB, free: 57 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.391e-05/0.4844, allocations: 35 kB / 0.5099 GB, free: 56.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004661/0.4891, allocations: 7.469 MB / 0.5172 GB, free: 50.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.4891, allocations: 0 / 0.5172 GB, free: 50.11 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02065/0.5098, allocations: 19.97 MB / 0.5367 GB, free: 30.05 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000503/0.5103, allocations: 374.8 kB / 0.5371 GB, free: 29.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001608/0.5105, allocations: 28 kB / 0.5371 GB, free: 29.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006969/0.5112, allocations: 51.95 kB / 0.5372 GB, free: 29.58 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002084/0.5114, allocations: 92.75 kB / 0.5372 GB, free: 29.49 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.593e-05/0.5115, allocations: 35.98 kB / 0.5373 GB, free: 29.45 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001166/0.5126, allocations: 1.091 MB / 0.5383 GB, free: 28.37 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5126, allocations: 0 / 0.5383 GB, free: 28.37 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002003/0.5147, allocations: 0.7018 MB / 0.539 GB, free: 27.67 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (smr.inertiaRotor.w,smr.stator.zeroInductor.i0,smr.stator.core.Phi.re,smr.stator.core.Phi.im,smr.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].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 (86): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,5,100.0%), (1,1,100.0%), (1,8,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.0002821/0.5149, allocations: 146.2 kB / 0.5392 GB, free: 27.52 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002198/0.5171, allocations: 1.708 MB / 0.5408 GB, free: 25.77 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.5172, allocations: 3.938 kB / 0.5408 GB, free: 25.77 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001404/0.5186, allocations: 1.23 MB / 0.542 GB, free: 24.49 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001831/0.5204, allocations: 490.3 kB / 0.5425 GB, free: 24.02 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008494/0.5289, allocations: 8.089 MB / 0.5504 GB, free: 15.83 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001341/0.5303, allocations: 2.269 MB / 0.5526 GB, free: 13.53 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001264/0.5316, allocations: 387.3 kB / 0.553 GB, free: 13.15 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002826/0.5319, allocations: 127.4 kB / 0.5531 GB, free: 13.02 MB / 362.7 MB Notification: Performance of SimCode: time 4.6e-07/0.5319, allocations: 0 / 0.5531 GB, free: 13.02 MB / 362.7 MB Notification: Performance of Templates: time 0.04229/0.5742, allocations: 28.61 MB / 0.5811 GB, free: 0.7109 MB / 378.7 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe 2>&1)