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.00115/0.001151, allocations: 177.1 kB / 8.35 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.382/1.382, allocations: 221.5 MB / 230.3 MB, free: 7.504 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.0009123/0.0009123, allocations: 90.23 kB / 281.2 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.51e-05/1.511e-05, allocations: 4 kB / 337.1 MB, free: 9.91 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1109, allocations: 50.42 MB / 387.6 MB, free: 7.445 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3571/0.4681, allocations: 90.39 MB / 478 MB, free: 4.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000248/0.4684, allocations: 83.95 kB / 478 MB, free: 4.188 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05946/0.5278, allocations: 22.39 MB / 0.4887 GB, free: 13.72 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.5279, allocations: 0 / 0.4887 GB, free: 13.72 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001149/0.528, allocations: 39.98 kB / 0.4887 GB, free: 13.68 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.003161/0.5312, allocations: 1.843 MB / 0.4905 GB, free: 11.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.5312, allocations: 8.031 kB / 0.4905 GB, free: 11.76 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003132/0.5316, allocations: 217.4 kB / 0.4907 GB, free: 11.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001797/0.5334, allocations: 1.086 MB / 0.4918 GB, free: 10.41 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.349e-05/0.5334, allocations: 31.98 kB / 0.4918 GB, free: 10.38 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001226/0.5335, allocations: 59.91 kB / 0.4919 GB, free: 10.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00125/0.5348, allocations: 0.7379 MB / 0.4926 GB, free: 9.582 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001351/0.5362, allocations: 0.84 MB / 0.4934 GB, free: 8.719 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.828e-05/0.5362, allocations: 7.969 kB / 0.4934 GB, free: 8.711 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.598e-05/0.5363, allocations: 8 kB / 0.4935 GB, free: 8.703 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.821e-05/0.5363, allocations: 16 kB / 0.4935 GB, free: 8.688 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005385/0.5417, allocations: 3.373 MB / 0.4968 GB, free: 5.234 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001455/0.5432, allocations: 0.9139 MB / 0.4977 GB, free: 4.301 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006386/0.5438, allocations: 411 kB / 0.498 GB, free: 3.898 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.353e-05/0.5439, allocations: 12.77 kB / 0.4981 GB, free: 3.883 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008692/0.5448, allocations: 0.6017 MB / 0.4986 GB, free: 3.262 MB / 378.7 MB Notification: Performance of pre-optimization done (n=86): time 2.425e-06/0.5448, allocations: 0 / 0.4986 GB, free: 3.262 MB / 378.7 MB Notification: Performance of matching and sorting (n=86): time 0.001663/0.5465, allocations: 0.9517 MB / 0.4996 GB, free: 2.297 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.5466, allocations: 204.6 kB / 0.4998 GB, free: 2.055 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002442/0.549, allocations: 1.818 MB / 0.5015 GB, free: 244 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.639e-05/0.5491, allocations: 41.69 kB / 0.5016 GB, free: 196 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005247/0.5497, allocations: 0.5611 MB / 0.5021 GB, free: 15.62 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002341/0.5499, allocations: 264.2 kB / 0.5024 GB, free: 15.36 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.411e-05/0.55, allocations: 3.938 kB / 0.5024 GB, free: 15.36 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.5501, allocations: 345.9 kB / 0.5027 GB, free: 15.01 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005162/0.5506, allocations: 334.5 kB / 0.503 GB, free: 14.68 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006549/0.5513, allocations: 0.5925 MB / 0.5036 GB, free: 13.98 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005766/0.5519, allocations: 392.3 kB / 0.504 GB, free: 13.59 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.773e-06/0.5519, allocations: 4 kB / 0.504 GB, free: 13.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001692/0.5536, allocations: 1.062 MB / 0.505 GB, free: 12.52 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001189/0.5548, allocations: 2.926 MB / 0.5079 GB, free: 9.379 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.569e-05/0.5548, allocations: 8 kB / 0.5079 GB, free: 9.371 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003151/0.5551, allocations: 88.81 kB / 0.508 GB, free: 9.281 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009595/0.5561, allocations: 255.5 kB / 0.5082 GB, free: 9.031 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00178/0.5579, allocations: 1.767 MB / 0.5099 GB, free: 7.148 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001224/0.5591, allocations: 195.1 kB / 0.5101 GB, free: 6.957 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.195e-05/0.5592, allocations: 43.98 kB / 0.5102 GB, free: 6.914 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.072e-05/0.5592, allocations: 4 kB / 0.5102 GB, free: 6.91 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001371/0.5606, allocations: 0.894 MB / 0.5111 GB, free: 6.016 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.5606, allocations: 8 kB / 0.5111 GB, free: 6.008 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002095/0.5609, allocations: 96.75 kB / 0.5112 GB, free: 5.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000838/0.5617, allocations: 235.9 kB / 0.5114 GB, free: 5.68 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001657/0.5634, allocations: 1.763 MB / 0.5131 GB, free: 3.797 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001057/0.5644, allocations: 183.3 kB / 0.5133 GB, free: 3.617 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.049e-05/0.5645, allocations: 43.95 kB / 0.5133 GB, free: 3.574 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 (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.0002826/0.5648, allocations: 150 kB / 0.5135 GB, free: 3.422 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001547/0.5664, allocations: 0.9516 MB / 0.5144 GB, free: 2.461 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000223/0.5666, allocations: 185.8 kB / 0.5146 GB, free: 2.277 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001823/0.5684, allocations: 1.019 MB / 0.5156 GB, free: 1.246 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.5685, allocations: 8 kB / 0.5156 GB, free: 1.238 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.5685, allocations: 4 kB / 0.5156 GB, free: 1.234 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.5685, allocations: 7.922 kB / 0.5156 GB, free: 1.227 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003603/0.5721, allocations: 2.51 MB / 0.518 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.5721, allocations: 4 kB / 0.518 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007582/0.5729, allocations: 171.8 kB / 0.5182 GB, free: 14.49 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002132/0.5731, allocations: 72.81 kB / 0.5183 GB, free: 14.41 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.885e-05/0.5732, allocations: 19.97 kB / 0.5183 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001589/0.5748, allocations: 1.755 MB / 0.52 GB, free: 12.52 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.5748, allocations: 4.031 kB / 0.52 GB, free: 12.52 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002066/0.5769, allocations: 1.56 MB / 0.5215 GB, free: 10.92 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008574/0.5777, allocations: 0.5452 MB / 0.5221 GB, free: 10.36 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001899/0.5779, allocations: 15.98 kB / 0.5221 GB, free: 10.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009617/0.5789, allocations: 148.1 kB / 0.5222 GB, free: 10.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001971/0.5791, allocations: 92.64 kB / 0.5223 GB, free: 10.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.048e-05/0.5792, allocations: 31.97 kB / 0.5223 GB, free: 10.07 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001772/0.581, allocations: 1.417 MB / 0.5237 GB, free: 8.668 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.581, allocations: 4 kB / 0.5237 GB, free: 8.664 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001663/0.5827, allocations: 0.5067 MB / 0.5242 GB, free: 8.156 MB / 410.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.003008/0.5857, allocations: 2.514 MB / 0.5267 GB, free: 5.676 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00253/0.5882, allocations: 1.72 MB / 0.5284 GB, free: 3.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.5882, allocations: 7.953 kB / 0.5284 GB, free: 3.902 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007528/0.589, allocations: 0.5685 MB / 0.5289 GB, free: 3.324 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001007/0.59, allocations: 186.8 kB / 0.5291 GB, free: 3.145 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005934/0.596, allocations: 3.262 MB / 0.5323 GB, free: 15.82 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001023/0.597, allocations: 1.444 MB / 0.5337 GB, free: 14.35 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00187/0.5989, allocations: 0.6978 MB / 0.5344 GB, free: 13.64 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005769/0.5995, allocations: 459.3 kB / 0.5348 GB, free: 13.2 MB / 426.7 MB Notification: Performance of SimCode: time 6.51e-07/0.5995, allocations: 0 / 0.5348 GB, free: 13.2 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2715/0.871, allocations: 26.89 MB / 0.5611 GB, free: 123.9 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001542/0.8712, allocations: 185.3 kB / 0.5612 GB, free: 123.7 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.981/3.852, allocations: 3.75 kB / 0.5612 GB, free: 123.7 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