Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_RL",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.001482/0.001482, allocations: 180.5 kB / 8.133 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.175/1.175, allocations: 221.4 MB / 229.9 MB, free: 3.059 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009541/0.0009541, allocations: 99.23 kB / 280.8 MB, free: 1.219 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09553/0.09652, allocations: 55.82 MB / 336.6 MB, free: 9.395 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1982/0.2947, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09463/0.3894, allocations: 90.32 MB / 477.3 MB, free: 12.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002124/0.3896, allocations: 87.67 kB / 477.4 MB, free: 12.33 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.06519/0.4548, allocations: 23.82 MB / 0.4895 GB, free: 4.406 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.4549, allocations: 12 kB / 0.4895 GB, free: 4.395 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005644/0.4554, allocations: 225.3 kB / 0.4897 GB, free: 4.172 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002179/0.4576, allocations: 1.09 MB / 0.4908 GB, free: 3.035 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.135e-05/0.4577, allocations: 32 kB / 0.4908 GB, free: 3.004 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001479/0.4578, allocations: 59.92 kB / 0.4909 GB, free: 2.945 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001372/0.4592, allocations: 0.7613 MB / 0.4916 GB, free: 2.184 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001393/0.4606, allocations: 0.8479 MB / 0.4924 GB, free: 1.312 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.025e-05/0.4607, allocations: 3.938 kB / 0.4924 GB, free: 1.309 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.096e-05/0.4608, allocations: 11.98 kB / 0.4924 GB, free: 1.297 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.179e-05/0.4608, allocations: 23.94 kB / 0.4925 GB, free: 1.273 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1125/0.5733, allocations: 3.318 MB / 0.4957 GB, free: 126 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001266/0.5746, allocations: 0.8778 MB / 0.4966 GB, free: 126 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006015/0.5753, allocations: 431.9 kB / 0.497 GB, free: 126 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.011e-05/0.5753, allocations: 10.34 kB / 0.497 GB, free: 126 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006834/0.576, allocations: 0.5443 MB / 0.4975 GB, free: 125.9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=86): time 2.435e-06/0.576, allocations: 0 / 0.4975 GB, free: 125.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=86): time 0.001562/0.5776, allocations: 0.9436 MB / 0.4984 GB, free: 125.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.421e-05/0.5777, allocations: 203.6 kB / 0.4986 GB, free: 125.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00225/0.5799, allocations: 1.832 MB / 0.5004 GB, free: 125.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.918e-05/0.58, allocations: 36.39 kB / 0.5005 GB, free: 125.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002126/0.5802, allocations: 361.6 kB / 0.5008 GB, free: 125.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001869/0.5804, allocations: 264.7 kB / 0.5011 GB, free: 125.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.573e-05/0.5805, allocations: 0 / 0.5011 GB, free: 125.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.993e-05/0.5806, allocations: 345.2 kB / 0.5014 GB, free: 124.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004674/0.5811, allocations: 352.4 kB / 0.5017 GB, free: 124.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005405/0.5816, allocations: 0.599 MB / 0.5023 GB, free: 124.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000506/0.5821, allocations: 412.1 kB / 0.5027 GB, free: 124.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.5821, allocations: 0 / 0.5027 GB, free: 124.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001429/0.5836, allocations: 1.061 MB / 0.5037 GB, free: 124.4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004131/0.584, allocations: 2.897 MB / 0.5066 GB, free: 121.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.584, allocations: 3.625 kB / 0.5066 GB, free: 121.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003137/0.5843, allocations: 91.12 kB / 0.5067 GB, free: 121.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009631/0.5853, allocations: 251.1 kB / 0.5069 GB, free: 121.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001284/0.5866, allocations: 1.699 MB / 0.5086 GB, free: 120.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001229/0.5878, allocations: 185.9 kB / 0.5087 GB, free: 120.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.859e-05/0.5879, allocations: 42.59 kB / 0.5088 GB, free: 120.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.632e-06/0.5879, allocations: 7.219 kB / 0.5088 GB, free: 120.1 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001225/0.5892, allocations: 0.9039 MB / 0.5097 GB, free: 120.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.5892, allocations: 6.344 kB / 0.5097 GB, free: 120.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002203/0.5894, allocations: 95.73 kB / 0.5098 GB, free: 120.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008354/0.5903, allocations: 231.4 kB / 0.51 GB, free: 120.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001351/0.5916, allocations: 1.701 MB / 0.5116 GB, free: 118.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001084/0.5927, allocations: 161.7 kB / 0.5118 GB, free: 118.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.653e-05/0.5928, allocations: 42.31 kB / 0.5118 GB, free: 118.7 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 40 ($PRE.meanPower.y_last,meanPower.y_last,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.iH01.mean1.y_last,iH01.mean1.y_last,$PRE.iH01.mean2.y_last,iH01.mean2.y_last,$PRE.iRMS.mean.y_last,iRMS.mean.y_last,$PRE.vH01.mean1.y_last,vH01.mean1.y_last,$PRE.vH01.mean2.y_last,vH01.mean2.y_last,$PRE.vRMS.mean.y_last,vRMS.mean.y_last,$whenCondition10,$whenCondition9,$whenCondition8,$PRE.triac.thyristor1.off,triac.thyristor1.off,$PRE.triac.thyristor2.off,triac.thyristor2.off,adaptor.positiveThreshold[1].y,adaptor.negativeThreshold[1].y,$PRE.adaptor.timerPositive[1].entryTime,adaptor.timerPositive[1].entryTime,$PRE.adaptor.timerNegative[1].entryTime,adaptor.timerNegative[1].entryTime,adaptor.fire_p[1],adaptor.fire_n[1],$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002289/0.593, allocations: 151 kB / 0.512 GB, free: 118.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002296/0.5933, allocations: 183.5 kB / 0.5122 GB, free: 118.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00159/0.5949, allocations: 1.011 MB / 0.5131 GB, free: 118.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.5949, allocations: 12.09 kB / 0.5132 GB, free: 118.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.365e-06/0.5949, allocations: 1.688 kB / 0.5132 GB, free: 118.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.378e-06/0.5949, allocations: 3.328 kB / 0.5132 GB, free: 118.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002992/0.5979, allocations: 2.512 MB / 0.5156 GB, free: 118.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.5979, allocations: 3.938 kB / 0.5156 GB, free: 118.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007497/0.5987, allocations: 167 kB / 0.5158 GB, free: 118 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002003/0.5989, allocations: 79.92 kB / 0.5159 GB, free: 118 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.708e-05/0.599, allocations: 23.09 kB / 0.5159 GB, free: 118 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001148/0.6001, allocations: 1.68 MB / 0.5175 GB, free: 116.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.6002, allocations: 0 / 0.5175 GB, free: 116.7 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001803/0.602, allocations: 1.596 MB / 0.5191 GB, free: 116.4 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002624/0.6046, allocations: 2.486 MB / 0.5215 GB, free: 115.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008699/0.6055, allocations: 0.5306 MB / 0.522 GB, free: 115.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002465/0.6057, allocations: 19.81 kB / 0.522 GB, free: 115.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.6068, allocations: 136.8 kB / 0.5222 GB, free: 115.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001749/0.607, allocations: 78.16 kB / 0.5222 GB, free: 115.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.803e-05/0.6071, allocations: 31.84 kB / 0.5223 GB, free: 115.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001907/0.609, allocations: 1.429 MB / 0.5237 GB, free: 115.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002956/0.6119, allocations: 0.501 MB / 0.5242 GB, free: 115.4 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 11 (adaptor.filter[1].firstOrder.y,adaptor.filter[1].transferFunction[1].x_scaled[1],adaptor.filter[1].transferFunction[2].x_scaled[1],meanPower.x,vRMS.mean.x,vH01.mean1.x,vH01.mean2.x,iRMS.mean.x,iH01.mean1.x,iH01.mean2.x,loadInductor.i) * Number of discrete variables: 27 (adaptor.positiveThreshold[1].y,adaptor.negativeThreshold[1].y,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,triac.thyristor1.off,triac.thyristor2.off,adaptor.timerPositive[1].entryTime,adaptor.timerNegative[1].entryTime,adaptor.fire_p[1],adaptor.fire_n[1],trapezoid.T_start,trapezoid.count,meanPower.y_last,vRMS.mean.y_last,vH01.mean1.y_last,vH01.mean2.y_last,iRMS.mean.y_last,iH01.mean1.y_last,iH01.mean2.y_last) * Number of discrete states: 10 (trapezoid.count,meanPower.x,vRMS.mean.x,vH01.mean1.x,vH01.mean2.x,iRMS.mean.x,iH01.mean1.x,iH01.mean2.x,triac.thyristor2.off,triac.thyristor1.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 11 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006424/0.6126, allocations: 322.4 kB / 0.5245 GB, free: 115.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002437/0.615, allocations: 1.677 MB / 0.5261 GB, free: 114.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.6151, allocations: 1.469 kB / 0.5261 GB, free: 114.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008081/0.6159, allocations: 0.5646 MB / 0.5267 GB, free: 114.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009906/0.6169, allocations: 169.7 kB / 0.5268 GB, free: 114.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005355/0.6222, allocations: 2.981 MB / 0.5297 GB, free: 113.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001176/0.6234, allocations: 1.558 MB / 0.5312 GB, free: 112.5 MB / 378.7 MB Notification: Performance of SimCode: time 5.91e-07/0.6235, allocations: 0 / 0.5312 GB, free: 112.5 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_RL_fmu --startTime=0 --stopTime=8 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_RL.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.pipe 2>&1)