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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001405/0.001405, allocations: 176.2 kB / 8.348 MB, free: 0.7266 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.617/1.617, allocations: 221.5 MB / 230.3 MB, free: 7.52 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.0008619/0.0008619, allocations: 91.62 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.753e-05/1.757e-05, allocations: 4 kB / 337.1 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1013, allocations: 50.42 MB / 387.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3519/0.4532, allocations: 90.15 MB / 477.7 MB, free: 4.609 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002415/0.4535, allocations: 79.95 kB / 477.8 MB, free: 4.531 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05848/0.512, allocations: 22.07 MB / 499.9 MB, free: 14.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.5121, allocations: 0 / 499.9 MB, free: 14.38 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000103/0.5122, allocations: 36 kB / 499.9 MB, free: 14.35 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: 197 * Number of variables: 197 Notification: Performance of Generate backend data structure: time 0.003136/0.5153, allocations: 1.83 MB / 0.49 GB, free: 12.45 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.5154, allocations: 8.031 kB / 0.49 GB, free: 12.45 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003376/0.5157, allocations: 213.4 kB / 0.4902 GB, free: 12.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001765/0.5175, allocations: 1.078 MB / 0.4912 GB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.57e-05/0.5176, allocations: 39.98 kB / 0.4913 GB, free: 11.07 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001242/0.5177, allocations: 52 kB / 0.4913 GB, free: 11.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001238/0.5189, allocations: 0.7301 MB / 0.492 GB, free: 10.29 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001345/0.5203, allocations: 0.8205 MB / 0.4928 GB, free: 9.445 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.647e-05/0.5203, allocations: 7.844 kB / 0.4928 GB, free: 9.438 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.455e-05/0.5204, allocations: 7.984 kB / 0.4929 GB, free: 9.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.846e-05/0.5204, allocations: 24 kB / 0.4929 GB, free: 9.406 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005455/0.5259, allocations: 3.292 MB / 0.4961 GB, free: 6.039 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001479/0.5274, allocations: 0.9211 MB / 0.497 GB, free: 5.113 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006226/0.528, allocations: 411 kB / 0.4974 GB, free: 4.707 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.272e-05/0.5281, allocations: 12.77 kB / 0.4974 GB, free: 4.691 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008532/0.529, allocations: 0.5978 MB / 0.498 GB, free: 4.074 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.154e-06/0.529, allocations: 0 / 0.498 GB, free: 4.074 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.0016/0.5306, allocations: 0.9478 MB / 0.4989 GB, free: 3.113 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.015e-05/0.5307, allocations: 200.7 kB / 0.4991 GB, free: 2.875 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002521/0.5332, allocations: 1.826 MB / 0.5009 GB, free: 1.051 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.747e-05/0.5333, allocations: 37.69 kB / 0.5009 GB, free: 1.008 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004785/0.5338, allocations: 0.5455 MB / 0.5014 GB, free: 464 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002281/0.534, allocations: 252.4 kB / 0.5017 GB, free: 208 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.5e-05/0.5341, allocations: 0 / 0.5017 GB, free: 208 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.5342, allocations: 349.9 kB / 0.502 GB, free: 15.86 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004756/0.5347, allocations: 330.5 kB / 0.5023 GB, free: 15.54 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006426/0.5354, allocations: 0.5887 MB / 0.5029 GB, free: 14.83 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000541/0.5359, allocations: 396.2 kB / 0.5033 GB, free: 14.45 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.5359, allocations: 4 kB / 0.5033 GB, free: 14.44 MB / 394.7 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.001539/0.5375, allocations: 1.034 MB / 0.5043 GB, free: 13.39 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001043/0.5385, allocations: 2.929 MB / 0.5072 GB, free: 10.25 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.5386, allocations: 8 kB / 0.5072 GB, free: 10.25 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003105/0.5389, allocations: 96.75 kB / 0.5073 GB, free: 10.15 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009284/0.5398, allocations: 243.6 kB / 0.5075 GB, free: 9.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001663/0.5415, allocations: 1.806 MB / 0.5093 GB, free: 7.984 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001124/0.5426, allocations: 203.3 kB / 0.5095 GB, free: 7.785 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.645e-05/0.5427, allocations: 40 kB / 0.5095 GB, free: 7.746 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.945e-06/0.5427, allocations: 11.94 kB / 0.5095 GB, free: 7.734 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001399/0.5441, allocations: 0.8858 MB / 0.5104 GB, free: 6.848 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.5442, allocations: 8 kB / 0.5104 GB, free: 6.84 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002225/0.5444, allocations: 96.98 kB / 0.5105 GB, free: 6.742 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008328/0.5452, allocations: 232 kB / 0.5107 GB, free: 6.516 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001635/0.5469, allocations: 1.802 MB / 0.5124 GB, free: 4.59 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001085/0.548, allocations: 183.2 kB / 0.5126 GB, free: 4.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.47e-05/0.548, allocations: 36 kB / 0.5127 GB, free: 4.375 MB / 394.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 (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.0002921/0.5483, allocations: 162 kB / 0.5128 GB, free: 4.211 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001484/0.5498, allocations: 0.9516 MB / 0.5137 GB, free: 3.25 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002106/0.5501, allocations: 177.8 kB / 0.5139 GB, free: 3.074 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001799/0.5519, allocations: 1.023 MB / 0.5149 GB, free: 2.039 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.448e-06/0.5519, allocations: 11.98 kB / 0.5149 GB, free: 2.027 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.5519, allocations: 0 / 0.5149 GB, free: 2.027 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.5519, allocations: 3.984 kB / 0.5149 GB, free: 2.023 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003607/0.5555, allocations: 2.498 MB / 0.5174 GB, free: 15.47 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.5555, allocations: 0 / 0.5174 GB, free: 15.47 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007068/0.5563, allocations: 163.8 kB / 0.5175 GB, free: 15.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002303/0.5565, allocations: 80.81 kB / 0.5176 GB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.463e-05/0.5566, allocations: 19.97 kB / 0.5176 GB, free: 15.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001566/0.5581, allocations: 1.698 MB / 0.5193 GB, free: 13.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.5582, allocations: 0 / 0.5193 GB, free: 13.4 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002189/0.5604, allocations: 1.548 MB / 0.5208 GB, free: 11.82 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009338/0.5613, allocations: 0.5219 MB / 0.5213 GB, free: 11.28 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001909/0.5615, allocations: 15.98 kB / 0.5213 GB, free: 11.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009416/0.5625, allocations: 159.8 kB / 0.5215 GB, free: 11.11 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000214/0.5627, allocations: 96.59 kB / 0.5216 GB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.756e-05/0.5627, allocations: 27.98 kB / 0.5216 GB, free: 10.98 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002094/0.5648, allocations: 1.416 MB / 0.523 GB, free: 9.578 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5649, allocations: 0 / 0.523 GB, free: 9.578 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001796/0.5667, allocations: 0.4947 MB / 0.5234 GB, free: 9.082 MB / 410.7 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.00315/0.5698, allocations: 2.413 MB / 0.5258 GB, free: 6.707 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002702/0.5725, allocations: 1.722 MB / 0.5275 GB, free: 4.941 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.5726, allocations: 4.641 kB / 0.5275 GB, free: 4.938 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007989/0.5734, allocations: 0.5742 MB / 0.5281 GB, free: 4.355 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001032/0.5744, allocations: 189.2 kB / 0.5282 GB, free: 4.172 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005872/0.5803, allocations: 3.182 MB / 0.5313 GB, free: 0.9414 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009929/0.5813, allocations: 1.432 MB / 0.5327 GB, free: 15.47 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001765/0.5831, allocations: 0.667 MB / 0.5334 GB, free: 14.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006403/0.5837, allocations: 451.3 kB / 0.5338 GB, free: 14.36 MB / 426.7 MB Notification: Performance of SimCode: time 8.81e-07/0.5837, allocations: 3.938 kB / 0.5338 GB, free: 14.36 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2669/0.8506, allocations: 26.95 MB / 0.5601 GB, free: 124.1 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000146/0.8508, allocations: 178.4 kB / 0.5603 GB, free: 123.9 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.841/3.692, allocations: 0 / 0.5603 GB, free: 123.9 MB / 426.7 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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R_res.mat does not exist to compare? outputFormat=mat