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.001094/0.001094, allocations: 181.3 kB / 16.39 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.269/1.269, allocations: 223.2 MB / 240.3 MB, free: 10.15 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.0008856/0.0008853, allocations: 97.7 kB / 291.5 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002604/0.0002605, allocations: 8 kB / 351.2 MB, free: 14.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2129/0.2131, allocations: 50.41 MB / 401.6 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1057/0.3189, allocations: 91.12 MB / 492.7 MB, free: 5.285 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002297/0.3192, allocations: 87.94 kB / 492.8 MB, free: 5.199 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2442/0.5634, allocations: 22.63 MB / 0.5033 GB, free: 89.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.5634, allocations: 1.062 kB / 0.5033 GB, free: 89.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001595/0.5636, allocations: 38.3 kB / 0.5034 GB, free: 89.7 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.005815/0.5694, allocations: 2.283 MB / 0.5056 GB, free: 88.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.5695, allocations: 9.375 kB / 0.5056 GB, free: 88.55 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003308/0.5698, allocations: 133.6 kB / 0.5057 GB, free: 88.51 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004926/0.5703, allocations: 217.1 kB / 0.5059 GB, free: 88.4 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002784/0.5731, allocations: 1.19 MB / 0.5071 GB, free: 88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001123/0.5732, allocations: 71.19 kB / 0.5072 GB, free: 88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002548/0.5735, allocations: 90.22 kB / 0.5073 GB, free: 88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002239/0.5757, allocations: 1.073 MB / 0.5083 GB, free: 87.89 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.728e-05/0.5758, allocations: 0 / 0.5083 GB, free: 87.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.219e-05/0.5759, allocations: 37.2 kB / 0.5083 GB, free: 87.89 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.669e-05/0.5759, allocations: 20.12 kB / 0.5084 GB, free: 87.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001713/0.5776, allocations: 0.9895 MB / 0.5093 GB, free: 87.87 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006065/0.5837, allocations: 3.519 MB / 0.5128 GB, free: 87.12 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002085/0.5858, allocations: 1.151 MB / 0.5139 GB, free: 87.07 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.574e-05/0.5859, allocations: 9.656 kB / 0.5139 GB, free: 87.07 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001139/0.5871, allocations: 0.7291 MB / 0.5146 GB, free: 86.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=86): time 2.264e-06/0.5871, allocations: 0 / 0.5146 GB, free: 86.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=86): time 0.003602/0.5907, allocations: 1.775 MB / 0.5164 GB, free: 86.49 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.745e-05/0.5908, allocations: 175 kB / 0.5165 GB, free: 86.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003651/0.5945, allocations: 2.028 MB / 0.5185 GB, free: 85.61 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001718/0.5946, allocations: 52.64 kB / 0.5185 GB, free: 85.56 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003958/0.595, allocations: 0.5641 MB / 0.5191 GB, free: 85.12 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001989/0.5953, allocations: 270.4 kB / 0.5194 GB, free: 84.92 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.313e-05/0.5953, allocations: 22.19 kB / 0.5194 GB, free: 84.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.212e-05/0.5954, allocations: 349.6 kB / 0.5197 GB, free: 84.58 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007714/0.5962, allocations: 456.3 kB / 0.5201 GB, free: 84.46 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009107/0.5971, allocations: 0.7109 MB / 0.5208 GB, free: 84.01 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008452/0.598, allocations: 0.5304 MB / 0.5214 GB, free: 83.81 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.643e-06/0.598, allocations: 10.55 kB / 0.5214 GB, free: 83.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002195/0.6002, allocations: 1.373 MB / 0.5227 GB, free: 83.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004707/0.6007, allocations: 2.847 MB / 0.5255 GB, free: 80.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.6007, allocations: 6.906 kB / 0.5255 GB, free: 80.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002865/0.601, allocations: 86.22 kB / 0.5256 GB, free: 80.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008486/0.6018, allocations: 247.9 kB / 0.5258 GB, free: 80.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001501/0.6033, allocations: 1.842 MB / 0.5276 GB, free: 78.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001206/0.6046, allocations: 223 kB / 0.5278 GB, free: 78.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.177e-05/0.6046, allocations: 39.84 kB / 0.5279 GB, free: 78.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.075e-05/0.6047, allocations: 6.594 kB / 0.5279 GB, free: 78.57 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001773/0.6064, allocations: 1.199 MB / 0.529 GB, free: 78.13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.6065, allocations: 6.344 kB / 0.529 GB, free: 78.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001996/0.6067, allocations: 90.8 kB / 0.5291 GB, free: 78.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007957/0.6075, allocations: 234.7 kB / 0.5294 GB, free: 78.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001279/0.6088, allocations: 1.842 MB / 0.5312 GB, free: 76.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001123/0.6099, allocations: 207.8 kB / 0.5314 GB, free: 76.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.085e-05/0.61, allocations: 41.88 kB / 0.5314 GB, free: 76.07 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 (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.0009881/0.611, allocations: 0.6715 MB / 0.5321 GB, free: 75.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003177/0.6113, allocations: 177.8 kB / 0.5322 GB, free: 75.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002159/0.6134, allocations: 1.297 MB / 0.5335 GB, free: 74.21 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.513e-06/0.6135, allocations: 12 kB / 0.5335 GB, free: 74.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.434e-06/0.6135, allocations: 4 kB / 0.5335 GB, free: 74.19 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/0.6135, allocations: 7.406 kB / 0.5335 GB, free: 74.19 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003778/0.6173, allocations: 2.733 MB / 0.5362 GB, free: 71.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.6173, allocations: 0 / 0.5362 GB, free: 71.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006995/0.618, allocations: 170 kB / 0.5363 GB, free: 71.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002161/0.6182, allocations: 73.98 kB / 0.5364 GB, free: 71.76 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.571e-05/0.6183, allocations: 26.14 kB / 0.5364 GB, free: 71.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001375/0.6197, allocations: 1.854 MB / 0.5382 GB, free: 69.85 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.6197, allocations: 4.516 kB / 0.5383 GB, free: 69.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002823/0.6225, allocations: 1.897 MB / 0.5401 GB, free: 68.17 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001066/0.6236, allocations: 0.5298 MB / 0.5406 GB, free: 67.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001853/0.6238, allocations: 31.75 kB / 0.5407 GB, free: 67.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000886/0.6247, allocations: 162 kB / 0.5408 GB, free: 67.58 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001826/0.6249, allocations: 96.02 kB / 0.5409 GB, free: 67.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.527e-05/0.625, allocations: 43.78 kB / 0.5409 GB, free: 67.48 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002054/0.627, allocations: 1.619 MB / 0.5425 GB, free: 66.13 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.627, allocations: 0 / 0.5425 GB, free: 66.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001525/0.6286, allocations: 0.5568 MB / 0.5431 GB, free: 65.58 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.thyristor1.off,triac.thyristor2.off) * Number of clocked states: 0 () * 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.003543/0.6321, allocations: 2.77 MB / 0.5458 GB, free: 63.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003009/0.6351, allocations: 2.071 MB / 0.5478 GB, free: 61.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.6352, allocations: 4 kB / 0.5478 GB, free: 61.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009506/0.6361, allocations: 0.6735 MB / 0.5485 GB, free: 60.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008585/0.637, allocations: 197.9 kB / 0.5486 GB, free: 60.61 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006555/0.6435, allocations: 9.952 MB / 0.5584 GB, free: 50.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007363/0.6443, allocations: 1.45 MB / 0.5598 GB, free: 49.16 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008452/0.6452, allocations: 326.7 kB / 0.5601 GB, free: 48.85 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005479/0.6457, allocations: 483.3 kB / 0.5605 GB, free: 48.38 MB / 378.7 MB Notification: Performance of SimCode: time 6.92e-07/0.6457, allocations: 0 / 0.5605 GB, free: 48.38 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03952/0.6852, allocations: 27.03 MB / 0.5869 GB, free: 21.73 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002185/0.6855, allocations: 265.8 kB / 0.5872 GB, free: 21.38 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.814/3.499, allocations: 0 / 0.5872 GB, free: 21.38 MB / 378.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