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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 221.3 MB / 235.5 MB, free: 2.891 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.0008074/0.0008073, allocations: 92.03 kB / 286.5 MB, free: 180 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.892e-05/2.917e-05, allocations: 4 kB / 343.9 MB, free: 4.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1158, allocations: 50.41 MB / 394.3 MB, free: 1.754 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3445/0.4604, allocations: 91.07 MB / 485.4 MB, free: 12.38 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000326/0.4608, allocations: 79.95 kB / 485.5 MB, free: 12.3 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06166/0.5225, allocations: 22.61 MB / 0.4962 GB, free: 5.613 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.5225, allocations: 0 / 0.4962 GB, free: 5.613 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001105/0.5227, allocations: 39.94 kB / 0.4962 GB, free: 5.574 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.003265/0.5259, allocations: 1.843 MB / 0.498 GB, free: 3.652 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.526, allocations: 12.02 kB / 0.498 GB, free: 3.641 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001651/0.5262, allocations: 127 kB / 0.4982 GB, free: 3.508 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003295/0.5265, allocations: 213.4 kB / 0.4984 GB, free: 3.297 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002006/0.5285, allocations: 1.09 MB / 0.4994 GB, free: 2.164 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.831e-05/0.5286, allocations: 69.98 kB / 0.4995 GB, free: 2.094 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001458/0.5287, allocations: 95.91 kB / 0.4996 GB, free: 2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001616/0.5304, allocations: 0.9611 MB / 0.5005 GB, free: 1.016 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.73e-05/0.5304, allocations: 0 / 0.5005 GB, free: 1.016 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.981e-05/0.5305, allocations: 36 kB / 0.5006 GB, free: 0.9805 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.804e-05/0.5305, allocations: 20 kB / 0.5006 GB, free: 0.9609 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.5318, allocations: 0.7809 MB / 0.5013 GB, free: 180 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005956/0.5378, allocations: 3.523 MB / 0.5048 GB, free: 12.55 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001579/0.5394, allocations: 0.9507 MB / 0.5057 GB, free: 11.58 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007066/0.5401, allocations: 435 kB / 0.5061 GB, free: 11.16 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.426e-05/0.5402, allocations: 12.77 kB / 0.5061 GB, free: 11.14 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009184/0.5411, allocations: 0.619 MB / 0.5067 GB, free: 10.5 MB / 394.7 MB Notification: Performance of pre-optimization done (n=86): time 2.615e-06/0.5411, allocations: 0 / 0.5067 GB, free: 10.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=86): time 0.00183/0.543, allocations: 1.006 MB / 0.5077 GB, free: 9.484 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.81e-05/0.5431, allocations: 200.7 kB / 0.5079 GB, free: 9.246 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002896/0.546, allocations: 1.91 MB / 0.5098 GB, free: 7.285 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000146/0.5461, allocations: 61.69 kB / 0.5098 GB, free: 7.219 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004791/0.5466, allocations: 0.569 MB / 0.5104 GB, free: 6.641 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002435/0.5469, allocations: 268.2 kB / 0.5106 GB, free: 6.375 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.978e-05/0.5469, allocations: 20 kB / 0.5107 GB, free: 6.355 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.5471, allocations: 350 kB / 0.511 GB, free: 6.008 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005548/0.5476, allocations: 353.8 kB / 0.5113 GB, free: 5.664 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007737/0.5484, allocations: 0.6116 MB / 0.5119 GB, free: 4.941 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006684/0.5491, allocations: 439.5 kB / 0.5124 GB, free: 4.504 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.773e-06/0.5491, allocations: 4 kB / 0.5124 GB, free: 4.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.00199/0.5511, allocations: 1.181 MB / 0.5135 GB, free: 3.301 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001166/0.5523, allocations: 2.928 MB / 0.5164 GB, free: 172 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.548e-05/0.5523, allocations: 8 kB / 0.5164 GB, free: 164 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003425/0.5527, allocations: 88.83 kB / 0.5165 GB, free: 72 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009779/0.5537, allocations: 259.5 kB / 0.5167 GB, free: 15.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00192/0.5556, allocations: 1.811 MB / 0.5185 GB, free: 13.87 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001425/0.557, allocations: 223.1 kB / 0.5187 GB, free: 13.65 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.131e-05/0.5571, allocations: 43.98 kB / 0.5187 GB, free: 13.61 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.949e-06/0.5571, allocations: 4 kB / 0.5187 GB, free: 13.61 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001834/0.559, allocations: 1.044 MB / 0.5198 GB, free: 12.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.925e-05/0.559, allocations: 12 kB / 0.5198 GB, free: 12.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000272/0.5593, allocations: 89 kB / 0.5199 GB, free: 12.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009029/0.5602, allocations: 239.6 kB / 0.5201 GB, free: 12.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00185/0.5621, allocations: 1.815 MB / 0.5219 GB, free: 10.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001397/0.5635, allocations: 207.1 kB / 0.5221 GB, free: 10.06 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001017/0.5636, allocations: 40 kB / 0.5221 GB, free: 10.02 MB / 410.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.0003858/0.564, allocations: 184.8 kB / 0.5223 GB, free: 9.836 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005287/0.5645, allocations: 185.7 kB / 0.5224 GB, free: 9.652 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002287/0.5668, allocations: 1.09 MB / 0.5235 GB, free: 8.551 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.5669, allocations: 8 kB / 0.5235 GB, free: 8.543 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.5669, allocations: 3.953 kB / 0.5235 GB, free: 8.539 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/0.5669, allocations: 3.984 kB / 0.5235 GB, free: 8.535 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005471/0.5724, allocations: 2.69 MB / 0.5262 GB, free: 5.766 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.615e-06/0.5724, allocations: 192 / 0.5262 GB, free: 5.766 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007839/0.5732, allocations: 175.8 kB / 0.5263 GB, free: 5.594 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002644/0.5735, allocations: 84.75 kB / 0.5264 GB, free: 5.508 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.95e-05/0.5736, allocations: 23.98 kB / 0.5264 GB, free: 5.484 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002009/0.5756, allocations: 1.805 MB / 0.5282 GB, free: 3.547 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.5756, allocations: 4.062 kB / 0.5282 GB, free: 3.543 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002813/0.5785, allocations: 1.635 MB / 0.5298 GB, free: 1.855 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001319/0.5798, allocations: 0.5336 MB / 0.5303 GB, free: 1.301 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004079/0.5802, allocations: 35.98 kB / 0.5303 GB, free: 1.266 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001165/0.5814, allocations: 163.8 kB / 0.5305 GB, free: 1.105 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002481/0.5817, allocations: 100.6 kB / 0.5306 GB, free: 1.008 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.661e-05/0.5817, allocations: 31.98 kB / 0.5306 GB, free: 0.9766 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002961/0.5847, allocations: 1.507 MB / 0.5321 GB, free: 15.44 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.5847, allocations: 0 / 0.5321 GB, free: 15.44 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002303/0.587, allocations: 0.5572 MB / 0.5326 GB, free: 14.88 MB / 426.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.003895/0.5909, allocations: 2.603 MB / 0.5352 GB, free: 12.34 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003406/0.5944, allocations: 1.828 MB / 0.537 GB, free: 10.46 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.5944, allocations: 1.75 kB / 0.537 GB, free: 10.46 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009394/0.5954, allocations: 0.5964 MB / 0.5375 GB, free: 9.855 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001367/0.5967, allocations: 210 kB / 0.5377 GB, free: 9.648 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008058/0.6048, allocations: 3.333 MB / 0.541 GB, free: 6.258 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001456/0.6063, allocations: 1.444 MB / 0.5424 GB, free: 4.785 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002391/0.6087, allocations: 0.6706 MB / 0.5431 GB, free: 4.109 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007431/0.6095, allocations: 459.3 kB / 0.5435 GB, free: 3.66 MB / 426.7 MB Notification: Performance of SimCode: time 1.112e-06/0.6095, allocations: 0 / 0.5435 GB, free: 3.66 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2716/0.8811, allocations: 29.32 MB / 0.5721 GB, free: 118.1 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001755/0.8814, allocations: 226.4 kB / 0.5724 GB, free: 117.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.831/3.713, allocations: 0 / 0.5724 GB, free: 117.8 MB / 426.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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL_res.mat does not exist to compare? outputFormat=mat