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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007805/0.0007805, allocations: 94.91 kB / 15.37 MB, free: 0.7266 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.324/1.324, allocations: 223.3 MB / 239.4 MB, free: 5.508 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.0009323/0.0009324, allocations: 188.5 kB / 290.6 MB, free: 2.176 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03288/0.03288, allocations: 8.803 MB / 350.5 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003424/0.0003425, allocations: 11.8 kB / 413.8 MB, free: 42.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09506/0.09542, allocations: 52.55 MB / 466.4 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Rectifier): time 0.01667/0.1121, allocations: 16.27 MB / 482.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01577/0.1279, allocations: 8.446 MB / 491.1 MB, free: 4.332 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003214/0.1312, allocations: 91.69 kB / 491.2 MB, free: 4.242 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003728/0.135, allocations: 1.108 MB / 492.3 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005989/0.141, allocations: 1.498 MB / 493.8 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00597/0.147, allocations: 2.072 MB / 495.9 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008113/0.1551, allocations: 5.483 MB / 0.4896 GB, free: 10.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004611/0.1598, allocations: 2.848 MB / 0.4924 GB, free: 7.148 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002914/0.1627, allocations: 1.598 MB / 0.4939 GB, free: 5.543 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003432/0.1662, allocations: 2.045 MB / 0.4959 GB, free: 3.488 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008019/0.167, allocations: 244 kB / 0.4962 GB, free: 3.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001823/0.1688, allocations: 0.5775 MB / 0.4967 GB, free: 2.672 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001056/0.1699, allocations: 0.9064 MB / 0.4976 GB, free: 1.762 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002529/0.1724, allocations: 2.124 MB / 0.4997 GB, free: 15.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007005/0.1795, allocations: 7.4 MB / 0.5069 GB, free: 8.195 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1795, allocations: 0 / 0.5069 GB, free: 8.195 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.1795, allocations: 0 / 0.5069 GB, free: 8.195 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001758/0.1797, allocations: 0 / 0.5069 GB, free: 8.195 MB / 350.1 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.01124/0.1909, allocations: 4.472 MB / 0.5113 GB, free: 3.652 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.191, allocations: 8.031 kB / 0.5113 GB, free: 3.645 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005485/0.1965, allocations: 0.9949 MB / 0.5123 GB, free: 2.645 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005311/0.2018, allocations: 2.781 MB / 0.515 GB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001939/0.202, allocations: 291.5 kB / 0.5152 GB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006327/0.2027, allocations: 371.9 kB / 0.5156 GB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008146/0.2108, allocations: 4.912 MB / 0.5204 GB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.095e-05/0.2109, allocations: 7.906 kB / 0.5204 GB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003395/0.2113, allocations: 152 kB / 0.5206 GB, free: 10.02 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001472/0.2114, allocations: 167.4 kB / 0.5207 GB, free: 9.859 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007093/0.2185, allocations: 4.21 MB / 0.5248 GB, free: 5.645 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1987/0.4173, allocations: 16.62 MB / 0.5411 GB, free: 56.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008109/0.4254, allocations: 8.187 MB / 0.549 GB, free: 51.27 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00308/0.4286, allocations: 1.86 MB / 0.5509 GB, free: 51.23 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008321/0.4369, allocations: 5.475 MB / 0.5562 GB, free: 47.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.692e-05/0.437, allocations: 52.25 kB / 0.5563 GB, free: 47.86 MB / 366.1 MB Notification: Performance of pre-optimization done (n=187): time 3.767e-06/0.437, allocations: 0 / 0.5563 GB, free: 47.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=190): time 0.01261/0.4496, allocations: 7.504 MB / 0.5636 GB, free: 43.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/0.4497, allocations: 175.8 kB / 0.5638 GB, free: 42.99 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003019/0.4527, allocations: 2.318 MB / 0.566 GB, free: 41.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001553/0.4529, allocations: 61.55 kB / 0.5661 GB, free: 41.67 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008306/0.4537, allocations: 1.709 MB / 0.5677 GB, free: 40.17 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003404/0.4541, allocations: 0.6437 MB / 0.5684 GB, free: 39.61 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002085/0.4543, allocations: 193.8 kB / 0.5686 GB, free: 39.49 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.699e-05/0.4543, allocations: 305.1 kB / 0.5689 GB, free: 39.19 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001214/0.4556, allocations: 0.9152 MB / 0.5697 GB, free: 38.71 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001581/0.4572, allocations: 1.591 MB / 0.5713 GB, free: 37.36 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002662/0.4598, allocations: 2.584 MB / 0.5738 GB, free: 35.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.777e-06/0.4598, allocations: 7.188 kB / 0.5738 GB, free: 35.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=298) (initialization): time 0.004246/0.4641, allocations: 3.254 MB / 0.577 GB, free: 33.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002072/0.4643, allocations: 0.6519 MB / 0.5776 GB, free: 32.49 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.704e-05/0.4644, allocations: 24 kB / 0.5777 GB, free: 32.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009638/0.4653, allocations: 499.4 kB / 0.5781 GB, free: 31.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001598/0.4669, allocations: 0.4915 MB / 0.5786 GB, free: 31.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005733/0.4727, allocations: 8.364 MB / 0.5868 GB, free: 22.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001876/0.4746, allocations: 99.86 kB / 0.5869 GB, free: 22.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000158/0.4748, allocations: 99.98 kB / 0.587 GB, free: 22.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.653e-06/0.4748, allocations: 4 kB / 0.587 GB, free: 22.38 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00392/0.4787, allocations: 2.966 MB / 0.5899 GB, free: 19.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.437e-05/0.4788, allocations: 20.44 kB / 0.5899 GB, free: 19.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008868/0.4796, allocations: 0.4964 MB / 0.5904 GB, free: 18.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001564/0.4812, allocations: 499.2 kB / 0.5909 GB, free: 18.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005632/0.4869, allocations: 8.359 MB / 0.599 GB, free: 9.461 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002513/0.4894, allocations: 92.02 kB / 0.5991 GB, free: 9.371 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000366/0.4898, allocations: 96 kB / 0.5992 GB, free: 9.277 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 7 (rectifier.diode_n.idealDiode[3].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[1].off,voltageController.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (266): * Single equations (assignments): 259 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.002135/0.492, allocations: 1.2 MB / 0.6004 GB, free: 8.066 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000566/0.4925, allocations: 268.8 kB / 0.6006 GB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004549/0.4971, allocations: 2.979 MB / 0.6035 GB, free: 4.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.405e-05/0.4971, allocations: 16 kB / 0.6036 GB, free: 4.734 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/0.4971, allocations: 8 kB / 0.6036 GB, free: 4.727 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-05/0.4972, allocations: 11.95 kB / 0.6036 GB, free: 4.715 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008999/0.5062, allocations: 6.35 MB / 0.6098 GB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.737e-06/0.5062, allocations: 0 / 0.6098 GB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001167/0.5074, allocations: 267.7 kB / 0.61 GB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001664/0.5091, allocations: 0.6889 MB / 0.6107 GB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001296/0.5092, allocations: 39.98 kB / 0.6107 GB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01359/0.5228, allocations: 12.95 MB / 0.6234 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.5229, allocations: 0 / 0.6234 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006458/0.5293, allocations: 4.19 MB / 0.6275 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001094/0.5304, allocations: 0.5369 MB / 0.628 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002955/0.5308, allocations: 43.98 kB / 0.628 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/0.5319, allocations: 87.94 kB / 0.6281 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003133/0.5322, allocations: 141.8 kB / 0.6283 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/0.5323, allocations: 55.97 kB / 0.6283 GB, free: 10.37 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002202/0.5345, allocations: 1.578 MB / 0.6299 GB, free: 8.781 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5345, allocations: 0 / 0.6299 GB, free: 8.781 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003836/0.5384, allocations: 1.319 MB / 0.6311 GB, free: 7.469 MB / 398.1 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.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (137): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004339/0.5388, allocations: 224.3 kB / 0.6314 GB, free: 7.254 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007091/0.5459, allocations: 5.054 MB / 0.6363 GB, free: 2.055 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.895e-06/0.546, allocations: 8.453 kB / 0.6363 GB, free: 2.047 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002915/0.5489, allocations: 2.058 MB / 0.6383 GB, free: 15.93 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004639/0.5535, allocations: 0.6787 MB / 0.639 GB, free: 15.25 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01422/0.5678, allocations: 8.951 MB / 0.6477 GB, free: 6.273 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002368/0.5702, allocations: 2.572 MB / 0.6502 GB, free: 3.672 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002549/0.5728, allocations: 0.6306 MB / 0.6508 GB, free: 3.035 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000439/0.5732, allocations: 163.4 kB / 0.651 GB, free: 2.875 MB / 414.1 MB Notification: Performance of SimCode: time 7.32e-07/0.5732, allocations: 0 / 0.651 GB, free: 2.875 MB / 414.1 MB Notification: Performance of Templates: time 0.07337/0.6466, allocations: 44.2 MB / 0.6942 GB, free: 7.027 MB / 462.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Rectifier.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: