Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.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_R,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_R",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.000965/0.000965, allocations: 184.7 kB / 8.134 MB, free: 2.68 MB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.084/1.084, allocations: 221.4 MB / 229.9 MB, free: 7.672 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008842/0.0008843, allocations: 96.33 kB / 280.8 MB, free: 5.141 MB / 222.1 MB Notification: Performance of FrontEnd - loaded program: time 0.08584/0.08676, allocations: 55.83 MB / 336.6 MB, free: 13.3 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1779/0.2646, allocations: 50.39 MB / 387 MB, free: 40.42 MB / 302.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08581/0.3505, allocations: 90.09 MB / 477.1 MB, free: 440 kB / 350.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002013/0.3507, allocations: 83.88 kB / 477.2 MB, free: 356 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 197 * Number of variables: 197 Notification: Performance of Generate backend data structure: time 0.0609/0.4116, allocations: 23.49 MB / 0.4889 GB, free: 8.809 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.4117, allocations: 8 kB / 0.4889 GB, free: 8.801 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003891/0.4121, allocations: 209.4 kB / 0.4891 GB, free: 8.594 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001923/0.414, allocations: 1.078 MB / 0.4902 GB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.121e-05/0.4141, allocations: 35.98 kB / 0.4902 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001265/0.4142, allocations: 55.91 kB / 0.4903 GB, free: 7.379 MB / 382.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001267/0.4155, allocations: 0.7496 MB / 0.491 GB, free: 6.629 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/0.4168, allocations: 0.8411 MB / 0.4918 GB, free: 5.762 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.78e-05/0.4168, allocations: 4 kB / 0.4918 GB, free: 5.758 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.708e-05/0.4169, allocations: 7.984 kB / 0.4918 GB, free: 5.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.731e-05/0.4169, allocations: 20 kB / 0.4919 GB, free: 5.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005059/0.422, allocations: 3.26 MB / 0.495 GB, free: 2.391 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001384/0.4234, allocations: 0.8792 MB / 0.4959 GB, free: 1.508 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006398/0.4241, allocations: 422.7 kB / 0.4963 GB, free: 1.094 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.595e-05/0.4241, allocations: 17.19 kB / 0.4963 GB, free: 1.078 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007284/0.4249, allocations: 0.5393 MB / 0.4969 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of pre-optimization done (n=84): time 2.064e-06/0.4249, allocations: 0 / 0.4969 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of matching and sorting (n=84): time 0.09577/0.5206, allocations: 0.9326 MB / 0.4978 GB, free: 130.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.16e-05/0.5207, allocations: 206.5 kB / 0.498 GB, free: 130.1 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002233/0.523, allocations: 1.831 MB / 0.4997 GB, free: 129.9 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.262e-05/0.5231, allocations: 42.77 kB / 0.4998 GB, free: 129.9 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001766/0.5232, allocations: 358.1 kB / 0.5001 GB, free: 129.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001515/0.5234, allocations: 251.3 kB / 0.5004 GB, free: 129.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.375e-05/0.5235, allocations: 0 / 0.5004 GB, free: 129.7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.258e-05/0.5235, allocations: 341.3 kB / 0.5007 GB, free: 129.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004265/0.5239, allocations: 340.5 kB / 0.501 GB, free: 129.4 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005045/0.5245, allocations: 0.5963 MB / 0.5016 GB, free: 129.1 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004797/0.5249, allocations: 402.6 kB / 0.502 GB, free: 129.1 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.668e-06/0.525, allocations: 2.531 kB / 0.502 GB, free: 129.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.001328/0.5263, allocations: 1.056 MB / 0.503 GB, free: 128.9 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003817/0.5267, allocations: 2.895 MB / 0.5058 GB, free: 126 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.5267, allocations: 10.28 kB / 0.5059 GB, free: 126 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002985/0.527, allocations: 93.25 kB / 0.5059 GB, free: 125.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008967/0.5279, allocations: 236.2 kB / 0.5062 GB, free: 125.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001266/0.5292, allocations: 1.671 MB / 0.5078 GB, free: 124.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009929/0.5302, allocations: 181.1 kB / 0.508 GB, free: 124.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.64e-05/0.5303, allocations: 46.36 kB / 0.508 GB, free: 124.7 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.668e-06/0.5303, allocations: 3.438 kB / 0.508 GB, free: 124.7 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001176/0.5315, allocations: 0.8966 MB / 0.5089 GB, free: 124.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.5315, allocations: 9.656 kB / 0.5089 GB, free: 124.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002088/0.5317, allocations: 96.8 kB / 0.509 GB, free: 124.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008023/0.5325, allocations: 222.4 kB / 0.5092 GB, free: 124.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001158/0.5337, allocations: 1.672 MB / 0.5108 GB, free: 123.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009124/0.5346, allocations: 162.4 kB / 0.511 GB, free: 123.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.316e-05/0.5347, allocations: 41.89 kB / 0.511 GB, free: 123.5 MB / 382.1 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 (110): * Single equations (assignments): 108 * 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001979/0.5349, allocations: 155.1 kB / 0.5112 GB, free: 123.4 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001913/0.5351, allocations: 176.9 kB / 0.5114 GB, free: 123.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001472/0.5366, allocations: 1.011 MB / 0.5123 GB, free: 123.2 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.5366, allocations: 13.12 kB / 0.5124 GB, free: 123.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.5366, allocations: 0 / 0.5124 GB, free: 123.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.756e-06/0.5366, allocations: 3.328 kB / 0.5124 GB, free: 123.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002877/0.5395, allocations: 2.495 MB / 0.5148 GB, free: 122.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.5395, allocations: 0 / 0.5148 GB, free: 122.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007014/0.5402, allocations: 157.9 kB / 0.5149 GB, free: 122.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002173/0.5405, allocations: 88.55 kB / 0.515 GB, free: 122.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.441e-05/0.5405, allocations: 19.73 kB / 0.515 GB, free: 122.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00117/0.5417, allocations: 1.637 MB / 0.5166 GB, free: 121.6 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.5417, allocations: 0 / 0.5166 GB, free: 121.6 MB / 382.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001657/0.5434, allocations: 1.563 MB / 0.5182 GB, free: 121.3 MB / 382.1 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002165/0.5456, allocations: 2.461 MB / 0.5206 GB, free: 120.6 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006779/0.5462, allocations: 0.535 MB / 0.5211 GB, free: 120.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002201/0.5465, allocations: 13.69 kB / 0.5211 GB, free: 120.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009497/0.5474, allocations: 135 kB / 0.5212 GB, free: 120.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001469/0.5476, allocations: 73.95 kB / 0.5213 GB, free: 120.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.496e-05/0.5477, allocations: 28.22 kB / 0.5213 GB, free: 120.4 MB / 382.1 MB Notification: Performance of sort global known variables: time 0.001307/0.549, allocations: 1.428 MB / 0.5227 GB, free: 120.3 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00243/0.5514, allocations: 0.4917 MB / 0.5232 GB, free: 120.3 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (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) * 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.thyristor1.off,triac.thyristor2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 63 * 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 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005824/0.552, allocations: 321.8 kB / 0.5235 GB, free: 120.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002175/0.5542, allocations: 1.668 MB / 0.5251 GB, free: 119.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.5542, allocations: 1.156 kB / 0.5251 GB, free: 119.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000712/0.5549, allocations: 0.5461 MB / 0.5257 GB, free: 119.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000825/0.5557, allocations: 174.4 kB / 0.5258 GB, free: 119.7 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004901/0.5607, allocations: 2.919 MB / 0.5287 GB, free: 119.1 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001207/0.5619, allocations: 1.548 MB / 0.5302 GB, free: 118.4 MB / 382.1 MB Notification: Performance of SimCode: time 2.9e-07/0.5619, allocations: 0.8438 kB / 0.5302 GB, free: 118.4 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_R_fmu --startTime=0 --stopTime=8 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_R.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.pipe 2>&1)