Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Rectifier.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.SMEE_Rectifier,tolerance=1e-07,outputFormat="empty",numberOfIntervals=22000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Rectifier") translateModel(HanserModelica.SynchronousMachines.SMEE_Rectifier,tolerance=1e-07,outputFormat="empty",numberOfIntervals=22000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001577/0.001577, allocations: 176.1 kB / 7.643 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06306/0.06306, allocations: 8.714 MB / 16.79 MB, free: 3.375 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 221.5 MB / 240.9 MB, free: 13.17 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.000902/0.0009022, allocations: 97.61 kB / 293.9 MB, free: 7.184 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.705e-05/1.707e-05, allocations: 4 kB / 352.6 MB, free: 1.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1144, allocations: 52.55 MB / 405.2 MB, free: 12.62 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.415/0.5295, allocations: 133.1 MB / 0.5256 GB, free: 2.809 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000238/0.5298, allocations: 79.2 kB / 0.5257 GB, free: 2.734 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4847/1.014, allocations: 96.96 MB / 0.6204 GB, free: 82.95 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.242e-06/1.015, allocations: 0 / 0.6204 GB, free: 82.95 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003877/1.015, allocations: 90.62 kB / 0.6205 GB, free: 82.94 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 984 * Number of variables: 984 Notification: Performance of Generate backend data structure: time 0.01322/1.028, allocations: 3.819 MB / 0.6242 GB, free: 81.4 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.275e-05/1.028, allocations: 16.86 kB / 0.6242 GB, free: 81.39 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006595/1.035, allocations: 0.9167 MB / 0.6251 GB, free: 81.15 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01014/1.045, allocations: 3.72 MB / 0.6288 GB, free: 79.67 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001498/1.045, allocations: 119.6 kB / 0.6289 GB, free: 79.67 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008239/1.046, allocations: 230.3 kB / 0.6291 GB, free: 79.66 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006625/1.053, allocations: 3.656 MB / 0.6327 GB, free: 78.07 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006982/1.06, allocations: 4.196 MB / 0.6368 GB, free: 76.14 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-05/1.06, allocations: 11.81 kB / 0.6368 GB, free: 76.13 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003224/1.06, allocations: 3.969 kB / 0.6368 GB, free: 76.13 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001482/1.06, allocations: 165.4 kB / 0.6369 GB, free: 76.11 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02534/1.086, allocations: 15.9 MB / 0.6525 GB, free: 67.11 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006098/1.092, allocations: 7.946 MB / 0.6602 GB, free: 60.18 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002603/1.094, allocations: 1.727 MB / 0.6619 GB, free: 59.53 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00941/1.104, allocations: 5.159 MB / 0.6669 GB, free: 56.62 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.548e-05/1.104, allocations: 57.81 kB / 0.667 GB, free: 56.56 MB / 442.7 MB Notification: Performance of pre-optimization done (n=181): time 3.908e-06/1.104, allocations: 0 / 0.667 GB, free: 56.56 MB / 442.7 MB Notification: Performance of matching and sorting (n=184): time 0.009615/1.114, allocations: 5.459 MB / 0.6723 GB, free: 53.88 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.506e-05/1.114, allocations: 177.2 kB / 0.6725 GB, free: 53.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00248/1.116, allocations: 1.611 MB / 0.6741 GB, free: 52.99 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001882/1.116, allocations: 33.33 kB / 0.6741 GB, free: 52.96 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009255/1.117, allocations: 1.738 MB / 0.6758 GB, free: 51.62 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004004/1.118, allocations: 0.6018 MB / 0.6764 GB, free: 51.15 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.923e-05/1.118, allocations: 0 / 0.6764 GB, free: 51.15 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001174/1.118, allocations: 396 kB / 0.6768 GB, free: 50.8 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001038/1.119, allocations: 0.8099 MB / 0.6776 GB, free: 50.46 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001285/1.12, allocations: 1.439 MB / 0.679 GB, free: 49.3 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001835/1.122, allocations: 1.205 MB / 0.6801 GB, free: 48.82 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-05/1.122, allocations: 7.688 kB / 0.6802 GB, free: 48.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.00453/1.127, allocations: 2.993 MB / 0.6831 GB, free: 47.57 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001581/1.128, allocations: 7.742 MB / 0.6906 GB, free: 39.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.554e-05/1.128, allocations: 17.78 kB / 0.6907 GB, free: 39.32 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001037/1.129, allocations: 493.3 kB / 0.6911 GB, free: 39.14 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001789/1.131, allocations: 491.1 kB / 0.6916 GB, free: 39.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005626/1.137, allocations: 8.052 MB / 0.6995 GB, free: 32.58 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0022/1.139, allocations: 59.25 kB / 0.6995 GB, free: 32.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002808/1.139, allocations: 91.44 kB / 0.6996 GB, free: 32.49 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.012e-05/1.139, allocations: 4 kB / 0.6996 GB, free: 32.49 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004292/1.144, allocations: 2.721 MB / 0.7023 GB, free: 30.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-05/1.144, allocations: 20 kB / 0.7023 GB, free: 30.05 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008507/1.145, allocations: 0.5022 MB / 0.7028 GB, free: 29.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001641/1.146, allocations: 483.2 kB / 0.7032 GB, free: 29.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005745/1.152, allocations: 8.034 MB / 0.7111 GB, free: 21.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002377/1.154, allocations: 45.94 kB / 0.7111 GB, free: 21.26 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002708/1.155, allocations: 99.42 kB / 0.7112 GB, free: 21.17 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * Number of states: 0 () * Number of discrete variables: 7 (rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,voltageController.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (259): * Single equations (assignments): 252 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005805/1.155, allocations: 176.9 kB / 0.7114 GB, free: 20.99 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004443/1.156, allocations: 237.1 kB / 0.7116 GB, free: 20.75 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004456/1.16, allocations: 2.796 MB / 0.7143 GB, free: 18.25 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.608e-05/1.16, allocations: 27.89 kB / 0.7144 GB, free: 18.22 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/1.16, allocations: 4 kB / 0.7144 GB, free: 18.22 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.737e-05/1.16, allocations: 11.97 kB / 0.7144 GB, free: 18.21 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009124/1.169, allocations: 5.648 MB / 0.7199 GB, free: 12.47 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/1.17, allocations: 0 / 0.7199 GB, free: 12.47 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00119/1.171, allocations: 263.6 kB / 0.7201 GB, free: 12.21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00149/1.172, allocations: 0.6397 MB / 0.7208 GB, free: 11.56 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001606/1.172, allocations: 19.98 kB / 0.7208 GB, free: 11.54 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009606/1.182, allocations: 12.38 MB / 0.7329 GB, free: 14.47 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.825e-06/1.182, allocations: 7.938 kB / 0.7329 GB, free: 14.46 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00677/1.189, allocations: 4.075 MB / 0.7369 GB, free: 10.24 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001455/1.19, allocations: 0.4941 MB / 0.7374 GB, free: 9.723 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003271/1.191, allocations: 15.98 kB / 0.7374 GB, free: 9.707 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/1.192, allocations: 56.5 kB / 0.7374 GB, free: 9.652 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003577/1.192, allocations: 141.9 kB / 0.7376 GB, free: 9.512 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001124/1.192, allocations: 55.98 kB / 0.7376 GB, free: 9.457 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0021/1.194, allocations: 1.201 MB / 0.7388 GB, free: 8.238 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.825e-06/1.194, allocations: 0 / 0.7388 GB, free: 8.238 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004923/1.199, allocations: 1.207 MB / 0.74 GB, free: 7.031 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 12 (smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,speed.phi,speed.w,voltageController.I.y,capacitor1.v,capacitor2.v,filter.x[1],filter.x[2]) * Number of discrete variables: 6 (rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (131): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 15} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008599/1.2, allocations: 435.9 kB / 0.7404 GB, free: 6.637 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007106/1.207, allocations: 4.649 MB / 0.7449 GB, free: 1.859 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.597e-06/1.207, allocations: 4 kB / 0.7449 GB, free: 1.855 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2881/1.496, allocations: 1.879 MB / 0.7468 GB, free: 87.95 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003474/1.499, allocations: 0.5003 MB / 0.7472 GB, free: 87.94 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01168/1.511, allocations: 5.636 MB / 0.7528 GB, free: 86.76 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002185/1.513, allocations: 2.638 MB / 0.7553 GB, free: 86 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003683/1.517, allocations: 0.8152 MB / 0.7561 GB, free: 85.91 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003048/1.517, allocations: 121.2 kB / 0.7562 GB, free: 85.9 MB / 458.7 MB Notification: Performance of SimCode: time 1.472e-06/1.517, allocations: 4 kB / 0.7562 GB, free: 85.9 MB / 458.7 MB Notification: Performance of Templates: time 0.077/1.594, allocations: 40.21 MB / 0.7955 GB, free: 83.72 MB / 458.7 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Rectifier.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Rectifier.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Rectifier.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Rectifier.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Rectifier.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Rectifier -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Rectifier.pipe 2>&1)