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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Rectifier,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Rectifier,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Rectifier",fmuType="me",version="2.0",platforms={"static"}) [: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.008758/0.008758, allocations: 184.5 kB / 7.463 MB, free: 2.23 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.08001/0.08001, allocations: 8.708 MB / 16.58 MB, free: 380 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.245/2.245, allocations: 221.4 MB / 240.5 MB, free: 8.148 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.001011/0.001011, allocations: 93.02 kB / 293.5 MB, free: 5.465 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2338/0.2348, allocations: 58.67 MB / 352.2 MB, free: 10.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5653/0.8002, allocations: 52.54 MB / 404.7 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6938/1.494, allocations: 133 MB / 0.5251 GB, free: 47.93 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003131/1.494, allocations: 80.03 kB / 0.5252 GB, free: 47.91 MB / 378.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.3455/1.84, allocations: 100.8 MB / 0.6237 GB, free: 3.672 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.513e-05/1.84, allocations: 15.94 kB / 0.6237 GB, free: 3.656 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01103/1.851, allocations: 0.9354 MB / 0.6246 GB, free: 2.715 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02026/1.871, allocations: 3.729 MB / 0.6282 GB, free: 14.93 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004955/1.872, allocations: 120 kB / 0.6283 GB, free: 14.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002873/1.875, allocations: 223.9 kB / 0.6286 GB, free: 14.6 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01397/1.889, allocations: 3.729 MB / 0.6322 GB, free: 10.87 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02341/1.912, allocations: 4.239 MB / 0.6363 GB, free: 6.492 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002169/1.913, allocations: 4 kB / 0.6363 GB, free: 6.488 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001173/1.914, allocations: 8 kB / 0.6363 GB, free: 6.48 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003017/1.914, allocations: 171.4 kB / 0.6365 GB, free: 6.312 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07476/1.989, allocations: 16.02 MB / 0.6522 GB, free: 5.883 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006944/1.996, allocations: 1.483 MB / 0.6536 GB, free: 4.398 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006668/2.003, allocations: 1.812 MB / 0.6554 GB, free: 2.59 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02807/2.031, allocations: 5.544 MB / 0.6608 GB, free: 12.87 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001128/2.031, allocations: 56.56 kB / 0.6608 GB, free: 12.81 MB / 458.7 MB Notification: Performance of pre-optimization done (n=219): time 2.068e-05/2.031, allocations: 0 / 0.6608 GB, free: 12.81 MB / 458.7 MB Notification: Performance of matching and sorting (n=222): time 0.02949/2.061, allocations: 5.832 MB / 0.6665 GB, free: 6.863 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002453/2.061, allocations: 176.2 kB / 0.6667 GB, free: 6.656 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006712/2.068, allocations: 1.63 MB / 0.6683 GB, free: 4.996 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008496/2.069, allocations: 25.7 kB / 0.6683 GB, free: 4.965 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002001/2.071, allocations: 1.338 MB / 0.6696 GB, free: 3.602 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001956/2.073, allocations: 0.7198 MB / 0.6703 GB, free: 2.871 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002055/2.073, allocations: 4 kB / 0.6703 GB, free: 2.867 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003987/2.073, allocations: 403.1 kB / 0.6707 GB, free: 2.469 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002722/2.076, allocations: 0.9813 MB / 0.6717 GB, free: 1.484 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4263/2.502, allocations: 1.613 MB / 0.6733 GB, free: 105.1 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005751/2.508, allocations: 1.286 MB / 0.6745 GB, free: 105.1 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.323e-05/2.508, allocations: 7.625 kB / 0.6745 GB, free: 105.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.01661/2.525, allocations: 3.269 MB / 0.6777 GB, free: 104.9 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.005048/2.53, allocations: 7.637 MB / 0.6852 GB, free: 97.04 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002331/2.531, allocations: 18.31 kB / 0.6852 GB, free: 97.04 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003025/2.534, allocations: 0.5014 MB / 0.6857 GB, free: 97 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005816/2.539, allocations: 0.5366 MB / 0.6862 GB, free: 97 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01635/2.556, allocations: 7.828 MB / 0.6938 GB, free: 92 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005263/2.561, allocations: 58.23 kB / 0.6939 GB, free: 92 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001254/2.562, allocations: 99.97 kB / 0.694 GB, free: 92 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/2.563, allocations: 3.5 kB / 0.694 GB, free: 92 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01329/2.576, allocations: 2.988 MB / 0.6969 GB, free: 91.83 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002145/2.576, allocations: 22.09 kB / 0.6969 GB, free: 91.83 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00211/2.578, allocations: 0.4999 MB / 0.6974 GB, free: 91.79 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004265/2.583, allocations: 0.5375 MB / 0.6979 GB, free: 91.79 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01344/2.596, allocations: 7.833 MB / 0.7056 GB, free: 86.79 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004591/2.601, allocations: 43.34 kB / 0.7056 GB, free: 86.79 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001139/2.602, allocations: 106.8 kB / 0.7057 GB, free: 86.79 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.002213/2.604, allocations: 173.9 kB / 0.7059 GB, free: 86.69 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002061/2.606, allocations: 247.2 kB / 0.7061 GB, free: 86.69 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01392/2.62, allocations: 3.118 MB / 0.7092 GB, free: 86.34 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.502e-05/2.62, allocations: 20.75 kB / 0.7092 GB, free: 86.34 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.864e-05/2.621, allocations: 3.219 kB / 0.7092 GB, free: 86.34 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.153e-05/2.621, allocations: 15.06 kB / 0.7092 GB, free: 86.34 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02873/2.649, allocations: 6.436 MB / 0.7155 GB, free: 85.54 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.088e-05/2.649, allocations: 3.906 kB / 0.7155 GB, free: 85.54 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002548/2.652, allocations: 316.7 kB / 0.7158 GB, free: 85.54 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002879/2.655, allocations: 0.6832 MB / 0.7165 GB, free: 85.49 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003806/2.655, allocations: 21.3 kB / 0.7165 GB, free: 85.49 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01827/2.674, allocations: 12.1 MB / 0.7283 GB, free: 77.84 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.117e-05/2.674, allocations: 1.938 kB / 0.7283 GB, free: 77.84 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01463/2.688, allocations: 4.643 MB / 0.7328 GB, free: 77.01 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02558/2.714, allocations: 9.319 MB / 0.7419 GB, free: 75.78 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003519/2.718, allocations: 0.5464 MB / 0.7425 GB, free: 75.56 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001523/2.719, allocations: 13.94 kB / 0.7425 GB, free: 75.56 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003546/2.723, allocations: 55.25 kB / 0.7425 GB, free: 75.56 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005856/2.723, allocations: 121.1 kB / 0.7427 GB, free: 75.55 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002658/2.724, allocations: 65.41 kB / 0.7427 GB, free: 75.55 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.004422/2.728, allocations: 1.205 MB / 0.7439 GB, free: 75.41 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01772/2.746, allocations: 1.284 MB / 0.7452 GB, free: 75.41 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.002194/2.748, allocations: 444.8 kB / 0.7456 GB, free: 75.31 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01483/2.763, allocations: 5.142 MB / 0.7506 GB, free: 74.2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.172e-05/2.763, allocations: 3.062 kB / 0.7506 GB, free: 74.2 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004987/2.768, allocations: 1.97 MB / 0.7525 GB, free: 73.58 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005568/2.774, allocations: 497.4 kB / 0.753 GB, free: 73.57 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02612/2.8, allocations: 6.039 MB / 0.7589 GB, free: 72.22 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006703/2.807, allocations: 2.836 MB / 0.7617 GB, free: 71.4 MB / 458.7 MB Notification: Performance of SimCode: time 2.505e-06/2.807, allocations: 2.625 kB / 0.7617 GB, free: 71.4 MB / 458.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Rectifier_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-07 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Rectifier.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Rectifier.pipe 2>&1)