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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001494/0.001495, allocations: 104 kB / 16.41 MB, free: 6.461 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.496/1.496, allocations: 222.9 MB / 240.1 MB, free: 4.344 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.001514/0.001514, allocations: 192.5 kB / 290.4 MB, free: 2.074 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0354/0.0354, allocations: 8.81 MB / 349.3 MB, free: 4.555 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001647/0.001647, allocations: 79.81 kB / 464.6 MB, free: 13.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.107, allocations: 51.57 MB / 0.5041 GB, free: 9.402 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01553/0.1225, allocations: 13.39 MB / 0.5172 GB, free: 11.95 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00954/0.1321, allocations: 4.434 MB / 0.5215 GB, free: 7.504 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002826/0.135, allocations: 83.69 kB / 0.5216 GB, free: 7.422 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003961/0.1391, allocations: 1.029 MB / 0.5226 GB, free: 6.387 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004937/0.144, allocations: 1.293 MB / 0.5238 GB, free: 5.086 MB / 366.1 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.00287/0.1469, allocations: 0.8534 MB / 0.5247 GB, free: 4.23 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005851/0.1528, allocations: 3.815 MB / 0.5284 GB, free: 416 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2364/0.3892, allocations: 3.347 MB / 0.5317 GB, free: 5.535 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002938/0.3922, allocations: 1.79 MB / 0.5334 GB, free: 5.414 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003637/0.3958, allocations: 2.003 MB / 0.5354 GB, free: 5.059 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001389/0.3973, allocations: 0.4906 MB / 0.5358 GB, free: 5.059 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002166/0.3994, allocations: 0.6855 MB / 0.5365 GB, free: 5.059 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001054/0.4005, allocations: 1.072 MB / 0.5376 GB, free: 4.934 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003047/0.4036, allocations: 2.042 MB / 0.5396 GB, free: 4.434 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009056/0.4126, allocations: 6.404 MB / 0.5458 GB, free: 3.797 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.887e-06/0.4127, allocations: 0 / 0.5458 GB, free: 3.797 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4127, allocations: 3.469 kB / 0.5458 GB, free: 3.797 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002137/0.4129, allocations: 0 / 0.5458 GB, free: 3.797 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01488/0.4278, allocations: 4.179 MB / 0.5499 GB, free: 2.262 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/0.4279, allocations: 8.938 kB / 0.5499 GB, free: 2.262 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004677/0.4326, allocations: 0.7525 MB / 0.5506 GB, free: 2.078 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00553/0.4381, allocations: 2.32 MB / 0.5529 GB, free: 1.535 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002295/0.4384, allocations: 234.8 kB / 0.5531 GB, free: 1.527 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001173/0.4396, allocations: 312.3 kB / 0.5534 GB, free: 1.527 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009624/0.4492, allocations: 4.167 MB / 0.5575 GB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.073e-05/0.4493, allocations: 5.438 kB / 0.5575 GB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003784/0.4497, allocations: 129.8 kB / 0.5576 GB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001602/0.4499, allocations: 144.8 kB / 0.5578 GB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006783/0.4567, allocations: 3.506 MB / 0.5612 GB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02056/0.4773, allocations: 13.03 MB / 0.5739 GB, free: 3.602 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005211/0.4825, allocations: 5.513 MB / 0.5793 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001784/0.4844, allocations: 1.052 MB / 0.5803 GB, free: 12.5 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005217/0.4896, allocations: 3.031 MB / 0.5833 GB, free: 9.43 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.544e-05/0.4897, allocations: 51.55 kB / 0.5833 GB, free: 9.367 MB / 398.1 MB Notification: Performance of pre-optimization done (n=107): time 3.596e-06/0.4897, allocations: 0 / 0.5833 GB, free: 9.367 MB / 398.1 MB Notification: Performance of matching and sorting (n=110): time 0.009826/0.4995, allocations: 4.613 MB / 0.5878 GB, free: 4.602 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.8e-05/0.4996, allocations: 60.41 kB / 0.5879 GB, free: 4.531 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003074/0.5027, allocations: 1.613 MB / 0.5895 GB, free: 2.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001609/0.5029, allocations: 41.7 kB / 0.5895 GB, free: 2.863 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009967/0.5039, allocations: 1.423 MB / 0.5909 GB, free: 1.43 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003729/0.5043, allocations: 386.2 kB / 0.5913 GB, free: 1.055 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004771/0.5047, allocations: 275.3 kB / 0.5915 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.232e-05/0.5048, allocations: 305.1 kB / 0.5918 GB, free: 488 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001014/0.5059, allocations: 0.5676 MB / 0.5924 GB, free: 15.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001278/0.5072, allocations: 1.062 MB / 0.5934 GB, free: 14.63 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002353/0.5095, allocations: 1.72 MB / 0.5951 GB, free: 12.76 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.318e-05/0.5096, allocations: 4 kB / 0.5951 GB, free: 12.76 MB / 414.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.003576/0.5131, allocations: 2.042 MB / 0.5971 GB, free: 10.77 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.38e-05/0.5132, allocations: 12 kB / 0.5971 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.166e-05/0.5132, allocations: 16 kB / 0.5971 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004227/0.5137, allocations: 134.3 kB / 0.5972 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001348/0.515, allocations: 364.1 kB / 0.5976 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002737/0.5178, allocations: 3.379 MB / 0.6009 GB, free: 6.645 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00162/0.5194, allocations: 68.12 kB / 0.6009 GB, free: 6.578 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002273/0.5197, allocations: 71.98 kB / 0.601 GB, free: 6.508 MB / 414.1 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.002031/0.5217, allocations: 0.958 MB / 0.602 GB, free: 5.562 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004814/0.5222, allocations: 173.8 kB / 0.6021 GB, free: 5.391 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00347/0.5257, allocations: 1.815 MB / 0.6039 GB, free: 3.531 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.347e-05/0.5257, allocations: 12 kB / 0.6039 GB, free: 3.52 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.371e-05/0.5257, allocations: 7.844 kB / 0.6039 GB, free: 3.516 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.48e-05/0.5258, allocations: 3.984 kB / 0.6039 GB, free: 3.512 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008524/0.5343, allocations: 4.345 MB / 0.6082 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.003e-05/0.5343, allocations: 4 kB / 0.6082 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008414/0.5352, allocations: 182.6 kB / 0.6083 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008507/0.5361, allocations: 313.8 kB / 0.6086 GB, free: 14.6 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001076/0.5362, allocations: 27.98 kB / 0.6087 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007538/0.5437, allocations: 8.189 MB / 0.6167 GB, free: 5.867 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.5438, allocations: 7.219 kB / 0.6167 GB, free: 5.863 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004739/0.5485, allocations: 2.558 MB / 0.6192 GB, free: 3.238 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001061/0.5496, allocations: 370.8 kB / 0.6195 GB, free: 2.855 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006597/0.5503, allocations: 28.05 kB / 0.6195 GB, free: 2.828 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00119/0.5515, allocations: 63.41 kB / 0.6196 GB, free: 2.77 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002621/0.5518, allocations: 84.88 kB / 0.6197 GB, free: 2.688 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.657e-05/0.5519, allocations: 31.98 kB / 0.6197 GB, free: 2.656 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002142/0.5541, allocations: 1.091 MB / 0.6208 GB, free: 1.57 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5541, allocations: 0 / 0.6208 GB, free: 1.57 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002619/0.5567, allocations: 0.5042 MB / 0.6213 GB, free: 1.066 MB / 430.1 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.0003896/0.5571, allocations: 169 kB / 0.6214 GB, free: 0.9023 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003116/0.5602, allocations: 1.72 MB / 0.6231 GB, free: 15.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.676e-06/0.5603, allocations: 4.375 kB / 0.6231 GB, free: 15.19 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001954/0.5622, allocations: 1.218 MB / 0.6243 GB, free: 13.94 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003234/0.5655, allocations: 0.5067 MB / 0.6248 GB, free: 13.43 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01131/0.5768, allocations: 5.331 MB / 0.63 GB, free: 8.074 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002694/0.5795, allocations: 2.176 MB / 0.6321 GB, free: 5.871 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006023/0.5802, allocations: 135.4 kB / 0.6323 GB, free: 5.738 MB / 446.1 MB Notification: Performance of SimCode: time 9.91e-07/0.5802, allocations: 4 kB / 0.6323 GB, free: 5.734 MB / 446.1 MB Notification: Performance of Templates: time 0.1089/0.6891, allocations: 90.34 MB / 0.7205 GB, free: 11.43 MB / 0.5294 GB 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)