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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002035/0.002035, allocations: 179.2 kB / 7.455 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03782/0.03782, allocations: 8.711 MB / 16.58 MB, free: 440 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.209/1.209, allocations: 221.4 MB / 240.5 MB, free: 8.227 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.00105/0.00105, allocations: 94.89 kB / 293.5 MB, free: 7.445 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.182e-06/6.202e-06, allocations: 0 / 352.1 MB, free: 12.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2553/0.2553, allocations: 52.54 MB / 404.6 MB, free: 27.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3811/0.6364, allocations: 133 MB / 0.525 GB, free: 48.06 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002448/0.6367, allocations: 70.17 kB / 0.5251 GB, free: 48.06 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.2218/0.8585, allocations: 96.91 MB / 0.6197 GB, free: 7.852 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003037/0.8589, allocations: 87.94 kB / 0.6198 GB, free: 7.766 MB / 410.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.01157/0.8704, allocations: 3.835 MB / 0.6236 GB, free: 3.867 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.8705, allocations: 8.031 kB / 0.6236 GB, free: 3.859 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00641/0.8769, allocations: 0.9315 MB / 0.6245 GB, free: 2.922 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0115/0.8885, allocations: 3.741 MB / 0.6281 GB, free: 15.13 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002121/0.8887, allocations: 124 kB / 0.6283 GB, free: 15.01 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001306/0.89, allocations: 231.9 kB / 0.6285 GB, free: 14.78 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01036/0.9004, allocations: 3.709 MB / 0.6321 GB, free: 11.07 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01265/0.9131, allocations: 4.247 MB / 0.6362 GB, free: 6.688 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001714/0.9133, allocations: 3.984 kB / 0.6362 GB, free: 6.684 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008833/0.9142, allocations: 4 kB / 0.6363 GB, free: 6.68 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001919/0.9144, allocations: 171.4 kB / 0.6364 GB, free: 6.512 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03384/0.9482, allocations: 16.01 MB / 0.652 GB, free: 6.094 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002681/0.951, allocations: 1.483 MB / 0.6535 GB, free: 4.609 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002964/0.954, allocations: 1.82 MB / 0.6553 GB, free: 2.793 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01041/0.9644, allocations: 5.548 MB / 0.6607 GB, free: 13.07 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.609e-05/0.9645, allocations: 56.56 kB / 0.6607 GB, free: 13.01 MB / 458.7 MB Notification: Performance of pre-optimization done (n=219): time 4.147e-06/0.9645, allocations: 3.938 kB / 0.6607 GB, free: 13.01 MB / 458.7 MB Notification: Performance of matching and sorting (n=222): time 0.01201/0.9765, allocations: 5.818 MB / 0.6664 GB, free: 7.074 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.967e-05/0.9766, allocations: 188.2 kB / 0.6666 GB, free: 6.855 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003425/0.9801, allocations: 1.626 MB / 0.6682 GB, free: 5.199 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002228/0.9803, allocations: 33.69 kB / 0.6682 GB, free: 5.16 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009855/0.9813, allocations: 1.334 MB / 0.6695 GB, free: 3.805 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007156/0.982, allocations: 0.7159 MB / 0.6702 GB, free: 3.078 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001585/0.9822, allocations: 4 kB / 0.6702 GB, free: 3.074 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002295/0.9824, allocations: 407.1 kB / 0.6706 GB, free: 2.672 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001652/0.9841, allocations: 0.9774 MB / 0.6716 GB, free: 1.691 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1429/1.127, allocations: 1.611 MB / 0.6731 GB, free: 106.9 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002519/1.13, allocations: 1.291 MB / 0.6744 GB, free: 106.9 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.103e-05/1.13, allocations: 3.25 kB / 0.6744 GB, free: 106.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.005133/1.135, allocations: 3.267 MB / 0.6776 GB, free: 106.7 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001269/1.136, allocations: 7.635 MB / 0.6851 GB, free: 98.83 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.334e-05/1.136, allocations: 25 kB / 0.6851 GB, free: 98.83 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001015/1.137, allocations: 0.5032 MB / 0.6856 GB, free: 98.79 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002073/1.139, allocations: 0.5397 MB / 0.6861 GB, free: 98.79 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005724/1.145, allocations: 7.825 MB / 0.6937 GB, free: 93.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001807/1.147, allocations: 50.52 kB / 0.6938 GB, free: 93.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001778/1.147, allocations: 107.7 kB / 0.6939 GB, free: 93.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.532e-06/1.147, allocations: 7.25 kB / 0.6939 GB, free: 93.8 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004172/1.151, allocations: 2.986 MB / 0.6968 GB, free: 93.62 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.552e-05/1.151, allocations: 21.75 kB / 0.6968 GB, free: 93.62 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008974/1.152, allocations: 0.4977 MB / 0.6973 GB, free: 93.58 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001984/1.154, allocations: 0.5381 MB / 0.6978 GB, free: 93.58 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00558/1.16, allocations: 7.831 MB / 0.7055 GB, free: 88.59 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001903/1.162, allocations: 46.94 kB / 0.7055 GB, free: 88.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001925/1.162, allocations: 102.4 kB / 0.7056 GB, free: 88.59 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * 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 (296): * Single equations (assignments): 289 * 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.0004747/1.162, allocations: 175.4 kB / 0.7058 GB, free: 88.48 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003575/1.163, allocations: 250.8 kB / 0.706 GB, free: 88.48 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004947/1.168, allocations: 3.119 MB / 0.7091 GB, free: 88.13 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.577e-05/1.168, allocations: 24.78 kB / 0.7091 GB, free: 88.13 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/1.168, allocations: 3.781 kB / 0.7091 GB, free: 88.13 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.847e-05/1.168, allocations: 14.03 kB / 0.7091 GB, free: 88.13 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00927/1.177, allocations: 6.426 MB / 0.7154 GB, free: 87.33 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.095e-06/1.177, allocations: 3.969 kB / 0.7154 GB, free: 87.33 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001474/1.178, allocations: 317.4 kB / 0.7157 GB, free: 87.33 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001415/1.18, allocations: 0.6825 MB / 0.7164 GB, free: 87.28 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001249/1.18, allocations: 21.7 kB / 0.7164 GB, free: 87.28 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009198/1.189, allocations: 12.1 MB / 0.7282 GB, free: 79.62 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/1.189, allocations: 0 / 0.7282 GB, free: 79.62 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00589/1.195, allocations: 4.646 MB / 0.7328 GB, free: 78.8 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001302/1.196, allocations: 0.5398 MB / 0.7333 GB, free: 78.58 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000418/1.197, allocations: 15.22 kB / 0.7333 GB, free: 78.58 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001266/1.198, allocations: 54.41 kB / 0.7333 GB, free: 78.58 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002374/1.198, allocations: 120.6 kB / 0.7335 GB, free: 78.57 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001208/1.198, allocations: 61.73 kB / 0.7335 GB, free: 78.57 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001734/1.2, allocations: 1.212 MB / 0.7347 GB, free: 78.43 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004277/1.205, allocations: 1.221 MB / 0.7359 GB, free: 78.43 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 (168): * Single equations (assignments): 162 * 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%) 16} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006805/1.205, allocations: 443.6 kB / 0.7363 GB, free: 78.32 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005701/1.211, allocations: 5.139 MB / 0.7413 GB, free: 77.21 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/1.211, allocations: 2.469 kB / 0.7413 GB, free: 77.21 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002198/1.213, allocations: 1.973 MB / 0.7433 GB, free: 76.59 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002252/1.215, allocations: 0.498 MB / 0.7438 GB, free: 76.58 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01036/1.226, allocations: 5.985 MB / 0.7496 GB, free: 75.26 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002303/1.228, allocations: 2.796 MB / 0.7523 GB, free: 74.44 MB / 458.7 MB Notification: Performance of SimCode: time 7.11e-07/1.228, allocations: 2.156 kB / 0.7523 GB, free: 74.44 MB / 458.7 MB Notification: Performance of Templates: time 0.08473/1.313, allocations: 53.38 MB / 0.8045 GB, free: 65.73 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)