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.001797/0.001797, allocations: 174.1 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06177/0.06177, allocations: 8.698 MB / 21.96 MB, free: 3.367 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.334/1.334, allocations: 221.4 MB / 246 MB, free: 3.562 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.0008644/0.0008648, allocations: 89.92 kB / 299.1 MB, free: 3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.568e-05/3.57e-05, allocations: 4 kB / 359.5 MB, free: 6.535 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2573, allocations: 52.54 MB / 412.1 MB, free: 22.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4274/0.6847, allocations: 133.8 MB / 0.533 GB, free: 39.33 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002527/0.685, allocations: 77.38 kB / 0.5331 GB, free: 39.32 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2244/0.9094, allocations: 98.21 MB / 0.629 GB, free: 12.26 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.9094, allocations: 0 / 0.629 GB, free: 12.26 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004214/0.9099, allocations: 91.88 kB / 0.6291 GB, free: 12.17 MB / 426.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.0117/0.9216, allocations: 3.816 MB / 0.6328 GB, free: 8.293 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.9216, allocations: 12.03 kB / 0.6328 GB, free: 8.281 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005793/0.9274, allocations: 0.9159 MB / 0.6337 GB, free: 7.359 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01098/0.9384, allocations: 3.721 MB / 0.6373 GB, free: 3.586 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002271/0.9387, allocations: 283.5 kB / 0.6376 GB, free: 3.309 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008847/0.9396, allocations: 371.9 kB / 0.638 GB, free: 2.945 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008376/0.948, allocations: 4.736 MB / 0.6426 GB, free: 14.07 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.502e-05/0.9481, allocations: 11.98 kB / 0.6426 GB, free: 14.06 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003697/0.9485, allocations: 156 kB / 0.6428 GB, free: 13.91 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001598/0.9486, allocations: 167.4 kB / 0.6429 GB, free: 13.74 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006667/0.9553, allocations: 3.883 MB / 0.6467 GB, free: 9.855 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02792/0.9833, allocations: 16.63 MB / 0.6629 GB, free: 8.801 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2934/1.277, allocations: 8.063 MB / 0.6708 GB, free: 69.04 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003616/1.28, allocations: 1.804 MB / 0.6726 GB, free: 69.02 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00942/1.29, allocations: 5.308 MB / 0.6778 GB, free: 68.04 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/1.29, allocations: 53.75 kB / 0.6778 GB, free: 68 MB / 458.7 MB Notification: Performance of pre-optimization done (n=181): time 3.427e-06/1.29, allocations: 1.094 kB / 0.6778 GB, free: 68 MB / 458.7 MB Notification: Performance of matching and sorting (n=184): time 0.009234/1.299, allocations: 5.326 MB / 0.683 GB, free: 66.98 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.315e-05/1.299, allocations: 175.9 kB / 0.6832 GB, free: 66.79 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002977/1.302, allocations: 1.957 MB / 0.6851 GB, free: 66.56 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001232/1.302, allocations: 61.28 kB / 0.6852 GB, free: 66.53 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001212/1.304, allocations: 1.726 MB / 0.6868 GB, free: 65.97 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005224/1.304, allocations: 0.6246 MB / 0.6875 GB, free: 65.64 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/1.304, allocations: 42.84 kB / 0.6875 GB, free: 65.64 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001747/1.304, allocations: 405.8 kB / 0.6879 GB, free: 65.34 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00119/1.306, allocations: 0.8523 MB / 0.6887 GB, free: 65.33 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001498/1.307, allocations: 1.497 MB / 0.6902 GB, free: 64.59 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001465/1.309, allocations: 1.112 MB / 0.6913 GB, free: 64.57 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.047e-06/1.309, allocations: 3.938 kB / 0.6913 GB, free: 64.57 MB / 458.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.004719/1.313, allocations: 3.095 MB / 0.6943 GB, free: 64.22 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001742/1.315, allocations: 7.845 MB / 0.702 GB, free: 55.86 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.933e-05/1.315, allocations: 18.19 kB / 0.702 GB, free: 55.86 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001021/1.316, allocations: 0.4977 MB / 0.7025 GB, free: 55.82 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001614/1.318, allocations: 491.5 kB / 0.7029 GB, free: 55.82 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006314/1.324, allocations: 8.327 MB / 0.7111 GB, free: 50.47 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002226/1.326, allocations: 103.9 kB / 0.7112 GB, free: 50.46 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002086/1.327, allocations: 91.66 kB / 0.7112 GB, free: 50.46 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.908e-06/1.327, allocations: 3.438 kB / 0.7112 GB, free: 50.46 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003947/1.331, allocations: 2.856 MB / 0.714 GB, free: 50.28 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.764e-05/1.331, allocations: 26.55 kB / 0.7141 GB, free: 50.28 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009135/1.332, allocations: 0.4889 MB / 0.7145 GB, free: 50.24 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001618/1.333, allocations: 485.5 kB / 0.715 GB, free: 50.24 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006564/1.34, allocations: 8.336 MB / 0.7231 GB, free: 44.88 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00267/1.342, allocations: 95.09 kB / 0.7232 GB, free: 44.87 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005306/1.343, allocations: 100.3 kB / 0.7233 GB, free: 44.87 MB / 458.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.001087/1.344, allocations: 244.1 kB / 0.7236 GB, free: 44.75 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001252/1.345, allocations: 262.4 kB / 0.7238 GB, free: 44.62 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005854/1.351, allocations: 2.863 MB / 0.7266 GB, free: 44.24 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-05/1.351, allocations: 18.41 kB / 0.7266 GB, free: 44.24 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.027e-05/1.351, allocations: 3.938 kB / 0.7266 GB, free: 44.24 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.708e-05/1.351, allocations: 7.828 kB / 0.7266 GB, free: 44.24 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01185/1.363, allocations: 6.16 MB / 0.7326 GB, free: 43.52 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.678e-06/1.363, allocations: 3.688 kB / 0.7327 GB, free: 43.52 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001085/1.364, allocations: 257 kB / 0.7329 GB, free: 43.52 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00148/1.366, allocations: 0.6673 MB / 0.7336 GB, free: 43.39 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001472/1.366, allocations: 45.92 kB / 0.7336 GB, free: 43.36 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01012/1.376, allocations: 12.81 MB / 0.7461 GB, free: 32.99 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/1.376, allocations: 10.67 kB / 0.7461 GB, free: 32.99 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006527/1.383, allocations: 4.123 MB / 0.7501 GB, free: 30.89 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001644/1.384, allocations: 0.5301 MB / 0.7507 GB, free: 30.53 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009648/1.385, allocations: 50.72 kB / 0.7507 GB, free: 30.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001733/1.387, allocations: 89.12 kB / 0.7508 GB, free: 30.48 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003525/1.387, allocations: 135.5 kB / 0.7509 GB, free: 30.46 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001232/1.388, allocations: 50.09 kB / 0.751 GB, free: 30.45 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003053/1.391, allocations: 1.494 MB / 0.7524 GB, free: 29.82 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.21e-07/1.391, allocations: 3.375 kB / 0.7524 GB, free: 29.82 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00654/1.397, allocations: 1.374 MB / 0.7538 GB, free: 29.69 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.000945/1.398, allocations: 0.5196 MB / 0.7543 GB, free: 29.54 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006715/1.405, allocations: 4.936 MB / 0.7591 GB, free: 27 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/1.405, allocations: 3.906 kB / 0.7591 GB, free: 27 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002535/1.407, allocations: 1.967 MB / 0.761 GB, free: 25.79 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003695/1.411, allocations: 0.6727 MB / 0.7617 GB, free: 25.62 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.014/1.425, allocations: 5.775 MB / 0.7673 GB, free: 23.11 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003365/1.429, allocations: 2.644 MB / 0.7699 GB, free: 22.01 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004653/1.433, allocations: 0.8855 MB / 0.7708 GB, free: 21.91 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005311/1.434, allocations: 127.4 kB / 0.7709 GB, free: 21.9 MB / 458.7 MB Notification: Performance of SimCode: time 2.284e-06/1.434, allocations: 6.25 kB / 0.7709 GB, free: 21.9 MB / 458.7 MB Notification: Performance of Templates: time 0.07909/1.513, allocations: 50.22 MB / 0.8199 GB, free: 0.9102 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)