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.001068/0.001068, allocations: 175.5 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.426/1.426, allocations: 221.3 MB / 235.5 MB, free: 2.949 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.0008446/0.0008446, allocations: 87.5 kB / 286.5 MB, free: 244 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.668e-05/2.673e-05, allocations: 4 kB / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1146, allocations: 50.42 MB / 394.4 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3429/0.4575, allocations: 90.81 MB / 485.2 MB, free: 12.63 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002246/0.4578, allocations: 89.72 kB / 485.2 MB, free: 12.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06191/0.5197, allocations: 22.28 MB / 0.4956 GB, free: 6.18 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.449e-06/0.5197, allocations: 3.984 kB / 0.4956 GB, free: 6.176 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002766/0.52, allocations: 36 kB / 0.4957 GB, free: 6.141 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.004999/0.525, allocations: 1.827 MB / 0.4975 GB, free: 4.242 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.333e-05/0.5251, allocations: 12.03 kB / 0.4975 GB, free: 4.23 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003972/0.5255, allocations: 126.8 kB / 0.4976 GB, free: 4.098 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007808/0.5263, allocations: 209.4 kB / 0.4978 GB, free: 3.891 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002949/0.5293, allocations: 1.082 MB / 0.4988 GB, free: 2.766 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.971e-05/0.5294, allocations: 70 kB / 0.4989 GB, free: 2.695 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002491/0.5296, allocations: 95.92 kB / 0.499 GB, free: 2.602 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001995/0.5316, allocations: 0.9378 MB / 0.4999 GB, free: 1.641 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.813e-05/0.5317, allocations: 7.844 kB / 0.4999 GB, free: 1.633 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001004/0.5318, allocations: 32 kB / 0.5 GB, free: 1.602 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.11e-05/0.5319, allocations: 20 kB / 0.5 GB, free: 1.582 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001513/0.5334, allocations: 0.773 MB / 0.5007 GB, free: 0.8047 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007585/0.541, allocations: 3.442 MB / 0.5041 GB, free: 13.27 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00191/0.5429, allocations: 0.9574 MB / 0.505 GB, free: 12.3 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007911/0.5438, allocations: 427 kB / 0.5054 GB, free: 11.89 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001355/0.5439, allocations: 12.77 kB / 0.5054 GB, free: 11.88 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001082/0.545, allocations: 0.619 MB / 0.5061 GB, free: 11.23 MB / 394.7 MB Notification: Performance of pre-optimization done (n=84): time 3.897e-06/0.545, allocations: 0 / 0.5061 GB, free: 11.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=84): time 0.002233/0.5473, allocations: 0.9955 MB / 0.507 GB, free: 10.23 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/0.5474, allocations: 204.7 kB / 0.5072 GB, free: 9.984 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004769/0.5522, allocations: 1.906 MB / 0.5091 GB, free: 8.031 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002359/0.5525, allocations: 57.69 kB / 0.5091 GB, free: 7.969 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007692/0.5532, allocations: 0.5534 MB / 0.5097 GB, free: 7.406 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004275/0.5537, allocations: 268.3 kB / 0.5099 GB, free: 7.141 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.5538, allocations: 16 kB / 0.5099 GB, free: 7.125 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002441/0.554, allocations: 349.9 kB / 0.5103 GB, free: 6.777 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007418/0.5548, allocations: 345.9 kB / 0.5106 GB, free: 6.441 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008643/0.5557, allocations: 0.6116 MB / 0.5112 GB, free: 5.719 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000823/0.5565, allocations: 435.4 kB / 0.5116 GB, free: 5.285 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.208e-06/0.5565, allocations: 0 / 0.5116 GB, free: 5.285 MB / 394.7 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002337/0.5589, allocations: 1.165 MB / 0.5128 GB, free: 4.102 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00172/0.5606, allocations: 2.934 MB / 0.5156 GB, free: 0.9609 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.18e-05/0.5606, allocations: 8 kB / 0.5156 GB, free: 0.9531 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004502/0.5611, allocations: 96.75 kB / 0.5157 GB, free: 0.8555 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/0.5621, allocations: 243.8 kB / 0.516 GB, free: 0.6172 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002286/0.5644, allocations: 1.874 MB / 0.5178 GB, free: 14.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001496/0.5659, allocations: 211.2 kB / 0.518 GB, free: 14.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001262/0.5661, allocations: 43.98 kB / 0.518 GB, free: 14.36 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.079e-05/0.5661, allocations: 4 kB / 0.518 GB, free: 14.36 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00188/0.568, allocations: 1.028 MB / 0.519 GB, free: 13.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.07e-05/0.568, allocations: 8 kB / 0.519 GB, free: 13.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002717/0.5683, allocations: 100.8 kB / 0.5191 GB, free: 13.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008628/0.5692, allocations: 223.6 kB / 0.5194 GB, free: 12.99 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002173/0.5714, allocations: 1.872 MB / 0.5212 GB, free: 10.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001357/0.5727, allocations: 207.2 kB / 0.5214 GB, free: 10.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/0.5728, allocations: 36 kB / 0.5214 GB, free: 10.75 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 (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.0004059/0.5733, allocations: 184.9 kB / 0.5216 GB, free: 10.56 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005907/0.5739, allocations: 181.8 kB / 0.5218 GB, free: 10.38 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002534/0.5764, allocations: 1.093 MB / 0.5228 GB, free: 9.273 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.5764, allocations: 8 kB / 0.5228 GB, free: 9.266 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.5764, allocations: 7.938 kB / 0.5229 GB, free: 9.258 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/0.5765, allocations: 3.984 kB / 0.5229 GB, free: 9.254 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005425/0.5819, allocations: 2.663 MB / 0.5255 GB, free: 6.516 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.5819, allocations: 0 / 0.5255 GB, free: 6.516 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007509/0.5827, allocations: 163.8 kB / 0.5256 GB, free: 6.355 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002867/0.583, allocations: 88.77 kB / 0.5257 GB, free: 6.266 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.217e-05/0.5831, allocations: 23.98 kB / 0.5257 GB, free: 6.242 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00189/0.585, allocations: 1.769 MB / 0.5274 GB, free: 4.34 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.585, allocations: 8.094 kB / 0.5275 GB, free: 4.332 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002561/0.5876, allocations: 1.603 MB / 0.529 GB, free: 2.688 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001296/0.5889, allocations: 0.5297 MB / 0.5295 GB, free: 2.137 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003707/0.5893, allocations: 27.98 kB / 0.5296 GB, free: 2.109 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001139/0.5904, allocations: 167.8 kB / 0.5297 GB, free: 1.945 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002512/0.5907, allocations: 88.64 kB / 0.5298 GB, free: 1.859 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.115e-05/0.5908, allocations: 35.97 kB / 0.5298 GB, free: 1.824 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002997/0.5938, allocations: 1.503 MB / 0.5313 GB, free: 296 kB / 410.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5938, allocations: 0 / 0.5313 GB, free: 296 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.002138/0.5959, allocations: 0.5495 MB / 0.5318 GB, free: 15.73 MB / 426.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.003662/0.5996, allocations: 2.506 MB / 0.5343 GB, free: 13.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003041/0.6026, allocations: 1.826 MB / 0.5361 GB, free: 11.42 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.644e-06/0.6027, allocations: 0 / 0.5361 GB, free: 11.42 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008838/0.6036, allocations: 0.5884 MB / 0.5367 GB, free: 10.82 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001165/0.6047, allocations: 196.6 kB / 0.5368 GB, free: 10.63 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007234/0.612, allocations: 3.276 MB / 0.54 GB, free: 7.297 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001498/0.6135, allocations: 1.432 MB / 0.5414 GB, free: 5.828 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002287/0.6158, allocations: 0.6944 MB / 0.5421 GB, free: 5.129 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006992/0.6166, allocations: 451.3 kB / 0.5425 GB, free: 4.688 MB / 426.7 MB Notification: Performance of SimCode: time 9.52e-07/0.6166, allocations: 0 / 0.5425 GB, free: 4.688 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2659/0.8825, allocations: 29.37 MB / 0.5712 GB, free: 118.9 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001512/0.8827, allocations: 228.2 kB / 0.5714 GB, free: 118.6 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.824/3.706, allocations: 3.938 kB / 0.5715 GB, free: 118.6 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