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.0009928/0.0009928, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.229/1.229, allocations: 222.9 MB / 238.8 MB, free: 4.734 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.001083/0.001083, allocations: 200.4 kB / 289.1 MB, free: 2.473 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03225/0.03225, allocations: 8.796 MB / 348.1 MB, free: 4.875 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 72.91 kB / 410.4 MB, free: 42.33 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0894/0.09068, allocations: 51.56 MB / 462 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01333/0.104, allocations: 13.23 MB / 475.2 MB, free: 1.566 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008044/0.1121, allocations: 4.392 MB / 479.6 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002283/0.1145, allocations: 79.69 kB / 479.7 MB, free: 13.08 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003/0.1175, allocations: 0.894 MB / 480.5 MB, free: 12.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004534/0.1221, allocations: 1.185 MB / 481.7 MB, free: 10.99 MB / 318.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.002392/0.1245, allocations: 0.7884 MB / 482.5 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005206/0.1297, allocations: 4.051 MB / 486.6 MB, free: 6.137 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004103/0.1338, allocations: 2.785 MB / 489.4 MB, free: 3.285 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002194/0.136, allocations: 1.448 MB / 490.8 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002752/0.1388, allocations: 1.852 MB / 492.7 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009275/0.1397, allocations: 296 kB / 492.9 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001786/0.1415, allocations: 0.4997 MB / 493.4 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001186/0.1427, allocations: 0.8643 MB / 494.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002539/0.1453, allocations: 1.827 MB / 496.1 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005018/0.1503, allocations: 6.208 MB / 0.4906 GB, free: 6.254 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.1503, allocations: 0 / 0.4906 GB, free: 6.254 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1503, allocations: 0 / 0.4906 GB, free: 6.254 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.869e-05/0.1504, allocations: 0 / 0.4906 GB, free: 6.254 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.009145/0.1596, allocations: 4.175 MB / 0.4946 GB, free: 2.008 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.1596, allocations: 8.031 kB / 0.4947 GB, free: 2 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003639/0.1633, allocations: 0.754 MB / 0.4954 GB, free: 1.242 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00347/0.1668, allocations: 2.215 MB / 0.4976 GB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001494/0.167, allocations: 234.7 kB / 0.4978 GB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004234/0.1674, allocations: 315.9 kB / 0.4981 GB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006609/0.174, allocations: 4.161 MB / 0.5021 GB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.946e-05/0.1741, allocations: 7.922 kB / 0.5022 GB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002741/0.1744, allocations: 132 kB / 0.5023 GB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001226/0.1745, allocations: 142.3 kB / 0.5024 GB, free: 9.941 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005524/0.18, allocations: 3.503 MB / 0.5058 GB, free: 6.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01754/0.1976, allocations: 13.21 MB / 0.5187 GB, free: 8.812 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005084/0.2027, allocations: 5.501 MB / 0.5241 GB, free: 2.578 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001702/0.2044, allocations: 1.079 MB / 0.5252 GB, free: 1.496 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.18/0.3844, allocations: 3.039 MB / 0.5281 GB, free: 64.94 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.464e-05/0.3845, allocations: 44.28 kB / 0.5282 GB, free: 64.9 MB / 366.1 MB Notification: Performance of pre-optimization done (n=107): time 3.938e-06/0.3845, allocations: 0 / 0.5282 GB, free: 64.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=110): time 0.008261/0.3928, allocations: 4.618 MB / 0.5327 GB, free: 63.69 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.816e-05/0.3928, allocations: 63.75 kB / 0.5327 GB, free: 63.62 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002217/0.395, allocations: 1.6 MB / 0.5343 GB, free: 63.44 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.037e-05/0.3951, allocations: 49.25 kB / 0.5344 GB, free: 63.41 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007822/0.3959, allocations: 1.421 MB / 0.5357 GB, free: 62.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002258/0.3961, allocations: 391.3 kB / 0.5361 GB, free: 62.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003715/0.3965, allocations: 274.7 kB / 0.5364 GB, free: 62.44 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.549e-05/0.3966, allocations: 307 kB / 0.5367 GB, free: 62.14 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000922/0.3975, allocations: 0.5612 MB / 0.5372 GB, free: 62.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001117/0.3986, allocations: 1.059 MB / 0.5382 GB, free: 61.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002077/0.4007, allocations: 1.733 MB / 0.5399 GB, free: 60.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.027e-06/0.4007, allocations: 8.125 kB / 0.5399 GB, free: 60.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.003137/0.4039, allocations: 2.031 MB / 0.5419 GB, free: 60.39 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.853e-05/0.4039, allocations: 13.45 kB / 0.5419 GB, free: 60.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.121e-05/0.4039, allocations: 19.28 kB / 0.542 GB, free: 60.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003836/0.4043, allocations: 142.9 kB / 0.5421 GB, free: 60.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001306/0.4056, allocations: 367.8 kB / 0.5425 GB, free: 60.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001954/0.4076, allocations: 3.087 MB / 0.5455 GB, free: 57.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001046/0.4087, allocations: 72.02 kB / 0.5455 GB, free: 57.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/0.4088, allocations: 69.23 kB / 0.5456 GB, free: 57.32 MB / 366.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.001602/0.4104, allocations: 0.9595 MB / 0.5465 GB, free: 56.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002253/0.4106, allocations: 170.1 kB / 0.5467 GB, free: 56.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002821/0.4134, allocations: 1.814 MB / 0.5485 GB, free: 55.76 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.4135, allocations: 11.25 kB / 0.5485 GB, free: 55.76 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.4135, allocations: 3.594 kB / 0.5485 GB, free: 55.76 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.848e-06/0.4135, allocations: 9.047 kB / 0.5485 GB, free: 55.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005689/0.4192, allocations: 4.35 MB / 0.5527 GB, free: 53.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.4192, allocations: 4.469 kB / 0.5527 GB, free: 53.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007409/0.42, allocations: 185.2 kB / 0.5529 GB, free: 53.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007105/0.4207, allocations: 299.5 kB / 0.5532 GB, free: 53.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.562e-05/0.4207, allocations: 27.73 kB / 0.5532 GB, free: 53.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004901/0.4257, allocations: 7.481 MB / 0.5605 GB, free: 46.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.4257, allocations: 4.062 kB / 0.5605 GB, free: 46.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00332/0.429, allocations: 2.565 MB / 0.563 GB, free: 45.28 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004889/0.4295, allocations: 371.7 kB / 0.5634 GB, free: 44.97 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001935/0.4297, allocations: 27.69 kB / 0.5634 GB, free: 44.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007236/0.4304, allocations: 55.08 kB / 0.5635 GB, free: 44.92 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001712/0.4306, allocations: 89.03 kB / 0.5636 GB, free: 44.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.679e-05/0.4307, allocations: 27.47 kB / 0.5636 GB, free: 44.87 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001299/0.432, allocations: 1.097 MB / 0.5647 GB, free: 44.27 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.432, allocations: 0 / 0.5647 GB, free: 44.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001601/0.4336, allocations: 0.5035 MB / 0.5652 GB, free: 44.23 MB / 366.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.0002599/0.4339, allocations: 160.2 kB / 0.5653 GB, free: 44.1 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002189/0.4361, allocations: 1.717 MB / 0.567 GB, free: 42.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.4361, allocations: 3.938 kB / 0.567 GB, free: 42.63 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001375/0.4375, allocations: 1.223 MB / 0.5682 GB, free: 41.36 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001903/0.4394, allocations: 486.3 kB / 0.5686 GB, free: 40.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009538/0.4489, allocations: 6.719 MB / 0.5752 GB, free: 34.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002166/0.4511, allocations: 2.241 MB / 0.5774 GB, free: 31.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001327/0.4524, allocations: 371.3 kB / 0.5778 GB, free: 31.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003709/0.4528, allocations: 123.4 kB / 0.5779 GB, free: 31.42 MB / 366.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4528, allocations: 0 / 0.5779 GB, free: 31.42 MB / 366.1 MB Notification: Performance of Templates: time 0.03687/0.4897, allocations: 24.37 MB / 0.6017 GB, free: 7.305 MB / 366.1 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)