Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.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.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter") translateModel(HanserModelica.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter") [: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.003227/0.003227, allocations: 180.2 kB / 7.456 MB, free: 2.453 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03795/0.03795, allocations: 8.707 MB / 16.57 MB, free: 0.5977 MB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.214/1.214, allocations: 221.4 MB / 240.5 MB, free: 8.156 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.001145/0.001145, allocations: 106.2 kB / 293.5 MB, free: 5.492 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.201e-06/6.331e-06, allocations: 0 / 352.1 MB, free: 10.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2/0.2, allocations: 52.54 MB / 404.6 MB, free: 26.78 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2861/0.4861, allocations: 109.4 MB / 0.5019 GB, free: 96.32 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001842/0.4863, allocations: 72.27 kB / 0.502 GB, free: 96.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.1702/0.6566, allocations: 77.78 MB / 0.578 GB, free: 27.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002533/0.6569, allocations: 71.94 kB / 0.578 GB, free: 27.73 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.008592/0.6655, allocations: 3.132 MB / 0.5811 GB, free: 24.54 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.6655, allocations: 12.02 kB / 0.5811 GB, free: 24.53 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004903/0.6704, allocations: 0.6907 MB / 0.5818 GB, free: 23.83 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008293/0.6788, allocations: 3.24 MB / 0.5849 GB, free: 20.53 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001654/0.679, allocations: 100 kB / 0.585 GB, free: 20.43 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001005/0.68, allocations: 191.9 kB / 0.5852 GB, free: 20.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006543/0.6865, allocations: 3.031 MB / 0.5882 GB, free: 17.21 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00865/0.6952, allocations: 3.59 MB / 0.5917 GB, free: 13.49 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001201/0.6954, allocations: 7.938 kB / 0.5917 GB, free: 13.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006633/0.696, allocations: 0 / 0.5917 GB, free: 13.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001149/0.6962, allocations: 146.3 kB / 0.5918 GB, free: 13.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02146/0.7176, allocations: 12.66 MB / 0.6042 GB, free: 296 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001425/0.7191, allocations: 0.857 MB / 0.605 GB, free: 15.42 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001899/0.721, allocations: 1.09 MB / 0.6061 GB, free: 14.33 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005116/0.7262, allocations: 2.746 MB / 0.6088 GB, free: 11.5 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/0.7262, allocations: 43.56 kB / 0.6088 GB, free: 11.45 MB / 394.7 MB Notification: Performance of pre-optimization done (n=125): time 6.642e-06/0.7262, allocations: 0 / 0.6088 GB, free: 11.45 MB / 394.7 MB Notification: Performance of matching and sorting (n=128): time 0.00836/0.7346, allocations: 3.633 MB / 0.6124 GB, free: 7.707 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.02e-05/0.7347, allocations: 68.72 kB / 0.6124 GB, free: 7.629 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002403/0.7371, allocations: 1.145 MB / 0.6136 GB, free: 6.477 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001004/0.7372, allocations: 25.7 kB / 0.6136 GB, free: 6.445 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000718/0.7379, allocations: 1.179 MB / 0.6147 GB, free: 5.25 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003371/0.7383, allocations: 437.5 kB / 0.6152 GB, free: 4.816 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.954e-05/0.7384, allocations: 0 / 0.6152 GB, free: 4.816 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.7385, allocations: 373.9 kB / 0.6155 GB, free: 4.445 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000876/0.7394, allocations: 0.5702 MB / 0.6161 GB, free: 3.871 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001166/0.7406, allocations: 1.063 MB / 0.6171 GB, free: 2.598 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001502/0.7421, allocations: 0.8143 MB / 0.6179 GB, free: 1.781 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.916e-06/0.7421, allocations: 4 kB / 0.6179 GB, free: 1.777 MB / 394.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.003795/0.7459, allocations: 2.004 MB / 0.6199 GB, free: 15.74 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.746, allocations: 4 kB / 0.6199 GB, free: 15.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.36e-05/0.746, allocations: 16 kB / 0.6199 GB, free: 15.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004545/0.7465, allocations: 134.9 kB / 0.62 GB, free: 15.58 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001712/0.7482, allocations: 403.4 kB / 0.6204 GB, free: 15.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002738/0.7509, allocations: 2.929 MB / 0.6233 GB, free: 12.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001481/0.7524, allocations: 47.94 kB / 0.6233 GB, free: 11.97 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001722/0.7526, allocations: 75.98 kB / 0.6234 GB, free: 11.9 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (203): * Single equations (assignments): 200 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * 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: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002983/0.7529, allocations: 152.4 kB / 0.6235 GB, free: 11.74 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004096/0.7534, allocations: 162 kB / 0.6237 GB, free: 11.58 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0039/0.7573, allocations: 1.83 MB / 0.6255 GB, free: 9.688 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-05/0.7573, allocations: 12 kB / 0.6255 GB, free: 9.676 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.943e-05/0.7573, allocations: 12 kB / 0.6255 GB, free: 9.664 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.628e-05/0.7573, allocations: 7.969 kB / 0.6255 GB, free: 9.656 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008871/0.7662, allocations: 4.256 MB / 0.6296 GB, free: 5.254 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.675e-06/0.7663, allocations: 4.031 kB / 0.6297 GB, free: 5.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001236/0.7675, allocations: 211.9 kB / 0.6299 GB, free: 5.043 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009797/0.7685, allocations: 307.2 kB / 0.6301 GB, free: 4.73 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001125/0.7686, allocations: 19.98 kB / 0.6302 GB, free: 4.711 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00753/0.7762, allocations: 7.012 MB / 0.637 GB, free: 13.24 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.01e-05/0.7762, allocations: 7.984 kB / 0.637 GB, free: 13.23 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004831/0.7811, allocations: 2.703 MB / 0.6397 GB, free: 10.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001113/0.7822, allocations: 366.9 kB / 0.64 GB, free: 10.02 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005301/0.7827, allocations: 8 kB / 0.64 GB, free: 10.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001175/0.7839, allocations: 47.95 kB / 0.6401 GB, free: 9.969 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001745/0.7841, allocations: 76.83 kB / 0.6401 GB, free: 9.895 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.939e-05/0.7842, allocations: 39.98 kB / 0.6402 GB, free: 9.855 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001541/0.7858, allocations: 0.8444 MB / 0.641 GB, free: 9.012 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002255/0.788, allocations: 0.4885 MB / 0.6415 GB, free: 8.523 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (smr.inertiaRotor.w,smr.stator.core.Phi.re,smr.stator.core.Phi.im,smr.stator.zeroInductor.i0,smr.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 100 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006001/0.7887, allocations: 368.5 kB / 0.6418 GB, free: 8.156 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002688/0.7914, allocations: 1.711 MB / 0.6435 GB, free: 6.402 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.7914, allocations: 1.312 kB / 0.6435 GB, free: 6.402 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00168/0.7931, allocations: 1.139 MB / 0.6446 GB, free: 5.227 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001972/0.795, allocations: 346 kB / 0.6449 GB, free: 4.891 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009972/0.805, allocations: 4.394 MB / 0.6492 GB, free: 424 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002714/0.8078, allocations: 2.412 MB / 0.6516 GB, free: 13.97 MB / 442.7 MB Notification: Performance of SimCode: time 1.323e-06/0.8078, allocations: 4 kB / 0.6516 GB, free: 13.97 MB / 442.7 MB Notification: Performance of Templates: time 0.1932/1.001, allocations: 23.77 MB / 0.6748 GB, free: 120.4 MB / 442.7 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe 2>&1)