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.001445/0.001445, allocations: 180.2 kB / 16.38 MB, free: 5.766 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.328/1.328, allocations: 223.2 MB / 240.3 MB, free: 11.91 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008408/0.0008407, allocations: 101.7 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002912/0.0002913, allocations: 8 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2261/0.2264, allocations: 50.4 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1039/0.3303, allocations: 90.88 MB / 492.5 MB, free: 5.574 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002067/0.3305, allocations: 90.08 kB / 492.5 MB, free: 5.488 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.243/0.5735, allocations: 22.31 MB / 0.5028 GB, free: 89.77 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.5736, allocations: 0 / 0.5028 GB, free: 89.77 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001816/0.5738, allocations: 39.38 kB / 0.5028 GB, free: 89.76 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.005206/0.579, allocations: 2.261 MB / 0.505 GB, free: 88.65 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.579, allocations: 11.98 kB / 0.505 GB, free: 88.65 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002981/0.5794, allocations: 128.4 kB / 0.5052 GB, free: 88.61 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005299/0.5799, allocations: 213.9 kB / 0.5054 GB, free: 88.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002749/0.5826, allocations: 1.189 MB / 0.5065 GB, free: 88.1 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.269e-05/0.5827, allocations: 69.75 kB / 0.5066 GB, free: 88.1 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001562/0.5829, allocations: 87.97 kB / 0.5067 GB, free: 88.1 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002011/0.5849, allocations: 1.049 MB / 0.5077 GB, free: 87.99 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.582e-05/0.585, allocations: 7.859 kB / 0.5077 GB, free: 87.98 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.793e-05/0.5851, allocations: 36.12 kB / 0.5078 GB, free: 87.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.343e-05/0.5851, allocations: 19 kB / 0.5078 GB, free: 87.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001717/0.5868, allocations: 0.9758 MB / 0.5087 GB, free: 87.97 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005517/0.5923, allocations: 3.447 MB / 0.5121 GB, free: 87.25 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002021/0.5944, allocations: 1.139 MB / 0.5132 GB, free: 87.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.715e-05/0.5944, allocations: 10.98 kB / 0.5132 GB, free: 87.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001103/0.5956, allocations: 0.7179 MB / 0.5139 GB, free: 87.14 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.184e-06/0.5956, allocations: 0 / 0.5139 GB, free: 87.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.003347/0.5989, allocations: 1.779 MB / 0.5156 GB, free: 86.78 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.361e-05/0.599, allocations: 170.9 kB / 0.5158 GB, free: 86.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002704/0.6017, allocations: 2.029 MB / 0.5178 GB, free: 85.91 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.04e-05/0.6018, allocations: 51.66 kB / 0.5178 GB, free: 85.86 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003441/0.6022, allocations: 0.562 MB / 0.5184 GB, free: 85.42 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001646/0.6023, allocations: 262.8 kB / 0.5186 GB, free: 85.22 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.435e-05/0.6024, allocations: 23.38 kB / 0.5187 GB, free: 85.21 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.058e-05/0.6025, allocations: 344.4 kB / 0.519 GB, free: 84.88 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007444/0.6032, allocations: 457.9 kB / 0.5194 GB, free: 84.75 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008148/0.604, allocations: 0.7039 MB / 0.5201 GB, free: 84.31 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007983/0.6048, allocations: 0.5314 MB / 0.5206 GB, free: 84.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/0.6049, allocations: 0 / 0.5206 GB, free: 84.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002049/0.6069, allocations: 1.368 MB / 0.522 GB, free: 83.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004192/0.6073, allocations: 2.834 MB / 0.5247 GB, free: 80.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/0.6074, allocations: 12.38 kB / 0.5248 GB, free: 80.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003125/0.6077, allocations: 112.2 kB / 0.5249 GB, free: 80.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008013/0.6085, allocations: 232.4 kB / 0.5251 GB, free: 80.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001532/0.61, allocations: 1.892 MB / 0.5269 GB, free: 78.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001244/0.6113, allocations: 216.9 kB / 0.5271 GB, free: 78.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.558e-05/0.6114, allocations: 34.59 kB / 0.5272 GB, free: 78.87 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.726e-06/0.6114, allocations: 6.781 kB / 0.5272 GB, free: 78.87 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001845/0.6132, allocations: 1.182 MB / 0.5283 GB, free: 78.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/0.6133, allocations: 10.14 kB / 0.5283 GB, free: 78.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00024/0.6135, allocations: 102.1 kB / 0.5284 GB, free: 78.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007423/0.6143, allocations: 225.3 kB / 0.5286 GB, free: 78.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001461/0.6157, allocations: 1.902 MB / 0.5305 GB, free: 76.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001182/0.6169, allocations: 202.1 kB / 0.5307 GB, free: 76.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.725e-05/0.617, allocations: 36 kB / 0.5307 GB, free: 76.6 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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 () * Number of clocked 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.0009775/0.618, allocations: 0.6636 MB / 0.5314 GB, free: 76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002936/0.6183, allocations: 177.8 kB / 0.5316 GB, free: 75.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002152/0.6204, allocations: 1.301 MB / 0.5328 GB, free: 74.74 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.6205, allocations: 12 kB / 0.5328 GB, free: 74.73 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.6205, allocations: 0 / 0.5328 GB, free: 74.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.6205, allocations: 3.328 kB / 0.5328 GB, free: 74.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003818/0.6243, allocations: 2.728 MB / 0.5355 GB, free: 72.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.6243, allocations: 1.875 kB / 0.5355 GB, free: 72.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006499/0.625, allocations: 157.1 kB / 0.5357 GB, free: 72.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002418/0.6252, allocations: 91.64 kB / 0.5357 GB, free: 72.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.409e-05/0.6253, allocations: 30.42 kB / 0.5358 GB, free: 72.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00134/0.6267, allocations: 1.79 MB / 0.5375 GB, free: 70.45 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.6267, allocations: 3.938 kB / 0.5375 GB, free: 70.44 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002938/0.6296, allocations: 1.893 MB / 0.5394 GB, free: 68.77 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/0.6307, allocations: 0.5307 MB / 0.5399 GB, free: 68.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001873/0.6309, allocations: 34.52 kB / 0.5399 GB, free: 68.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009272/0.6318, allocations: 164.6 kB / 0.5401 GB, free: 68.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002247/0.632, allocations: 96.33 kB / 0.5402 GB, free: 68.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.689e-05/0.6321, allocations: 27.27 kB / 0.5402 GB, free: 68.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002395/0.6345, allocations: 1.631 MB / 0.5418 GB, free: 66.74 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.12e-07/0.6345, allocations: 96 / 0.5418 GB, free: 66.74 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001665/0.6362, allocations: 0.5488 MB / 0.5423 GB, free: 66.19 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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) * Number of clocked states: 0 () * 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.003706/0.6399, allocations: 2.76 MB / 0.545 GB, free: 63.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003135/0.6431, allocations: 2.063 MB / 0.547 GB, free: 62 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.668e-06/0.6431, allocations: 0 / 0.547 GB, free: 62 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009693/0.6441, allocations: 0.6856 MB / 0.5477 GB, free: 61.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001142/0.6452, allocations: 189.8 kB / 0.5479 GB, free: 61.25 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007238/0.6525, allocations: 9.857 MB / 0.5575 GB, free: 51.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000751/0.6533, allocations: 1.434 MB / 0.5589 GB, free: 50.01 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000932/0.6542, allocations: 336.7 kB / 0.5592 GB, free: 49.69 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005531/0.6548, allocations: 475.3 kB / 0.5597 GB, free: 49.23 MB / 378.7 MB Notification: Performance of SimCode: time 6.42e-07/0.6548, allocations: 0 / 0.5597 GB, free: 49.23 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04006/0.6948, allocations: 27.02 MB / 0.5861 GB, free: 22.6 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001529/0.695, allocations: 273.9 kB / 0.5863 GB, free: 22.24 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.769/3.464, allocations: 0 / 0.5863 GB, free: 22.24 MB / 378.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