Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_R",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001276/0.001276, allocations: 200.6 kB / 8.539 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.15/1.15, allocations: 225.5 MB / 234.4 MB, free: 3.457 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008197/0.0008196, allocations: 92.8 kB / 286.3 MB, free: 5.172 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09604/0.09688, allocations: 56.91 MB / 343.2 MB, free: 8.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08627/0.1832, allocations: 51.49 MB / 394.7 MB, free: 5.145 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2141/0.3974, allocations: 91.28 MB / 486 MB, free: 2.047 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001684/0.3976, allocations: 79.14 kB / 486.1 MB, free: 2.008 MB / 346.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.06379/0.4614, allocations: 24.48 MB / 0.4986 GB, free: 13.19 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.4614, allocations: 8 kB / 0.4986 GB, free: 13.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008372/0.4623, allocations: 289.2 kB / 0.4989 GB, free: 12.9 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001978/0.4642, allocations: 1.109 MB / 0.5 GB, free: 11.9 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.883e-05/0.4643, allocations: 28.62 kB / 0.5 GB, free: 11.87 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001313/0.4644, allocations: 70.7 kB / 0.5001 GB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001232/0.4657, allocations: 0.7413 MB / 0.5008 GB, free: 11.31 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00136/0.467, allocations: 0.8413 MB / 0.5016 GB, free: 10.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.564e-05/0.4671, allocations: 0 / 0.5016 GB, free: 10.68 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.706e-05/0.4672, allocations: 7.891 kB / 0.5016 GB, free: 10.67 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.973e-05/0.4672, allocations: 20 kB / 0.5016 GB, free: 10.65 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005421/0.4726, allocations: 3.28 MB / 0.5048 GB, free: 8.059 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001485/0.4741, allocations: 0.8712 MB / 0.5057 GB, free: 7.402 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006754/0.4748, allocations: 422.7 kB / 0.5061 GB, free: 6.988 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.783e-05/0.4749, allocations: 16.62 kB / 0.5061 GB, free: 6.973 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008173/0.4757, allocations: 0.5393 MB / 0.5066 GB, free: 6.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.414e-06/0.4757, allocations: 0 / 0.5066 GB, free: 6.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.001715/0.4774, allocations: 0.9487 MB / 0.5076 GB, free: 5.453 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.682e-05/0.4776, allocations: 208.6 kB / 0.5078 GB, free: 5.207 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002716/0.4803, allocations: 1.857 MB / 0.5096 GB, free: 3.309 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.486e-05/0.4804, allocations: 37.69 kB / 0.5096 GB, free: 3.266 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002714/0.4807, allocations: 362.9 kB / 0.5099 GB, free: 2.902 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002271/0.4809, allocations: 252.4 kB / 0.5102 GB, free: 2.652 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.492e-05/0.4809, allocations: 0 / 0.5102 GB, free: 2.652 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.4811, allocations: 349.8 kB / 0.5105 GB, free: 2.305 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005173/0.4816, allocations: 352 kB / 0.5109 GB, free: 1.965 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007012/0.4823, allocations: 0.5978 MB / 0.5114 GB, free: 1.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000593/0.4829, allocations: 402.9 kB / 0.5118 GB, free: 0.8555 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.4829, allocations: 4 kB / 0.5118 GB, free: 0.8516 MB / 378.7 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.001694/0.4846, allocations: 1.061 MB / 0.5129 GB, free: 15.78 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000977/0.4856, allocations: 2.905 MB / 0.5157 GB, free: 12.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/0.4856, allocations: 8 kB / 0.5157 GB, free: 12.67 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003431/0.486, allocations: 96.75 kB / 0.5158 GB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00099/0.487, allocations: 239.7 kB / 0.516 GB, free: 12.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001665/0.4887, allocations: 1.665 MB / 0.5177 GB, free: 10.56 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001114/0.4898, allocations: 187.2 kB / 0.5178 GB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.828e-05/0.4899, allocations: 36 kB / 0.5179 GB, free: 10.34 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.801e-06/0.4899, allocations: 4 kB / 0.5179 GB, free: 10.34 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001432/0.4913, allocations: 0.9006 MB / 0.5188 GB, free: 9.434 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.4913, allocations: 8 kB / 0.5188 GB, free: 9.426 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002351/0.4916, allocations: 97.66 kB / 0.5189 GB, free: 9.328 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008702/0.4925, allocations: 227.6 kB / 0.5191 GB, free: 9.105 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001605/0.4941, allocations: 1.661 MB / 0.5207 GB, free: 7.328 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001002/0.4951, allocations: 167.3 kB / 0.5209 GB, free: 7.164 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.302e-05/0.4952, allocations: 43.94 kB / 0.5209 GB, free: 7.121 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.0002297/0.4954, allocations: 152.8 kB / 0.521 GB, free: 6.969 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002582/0.4957, allocations: 181.7 kB / 0.5212 GB, free: 6.789 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0019/0.4976, allocations: 1.018 MB / 0.5222 GB, free: 5.762 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.4976, allocations: 12 kB / 0.5222 GB, free: 5.75 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.344e-06/0.4976, allocations: 0 / 0.5222 GB, free: 5.75 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/0.4976, allocations: 3.984 kB / 0.5222 GB, free: 5.746 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003726/0.5014, allocations: 2.511 MB / 0.5247 GB, free: 3.176 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.5014, allocations: 4 kB / 0.5247 GB, free: 3.172 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007782/0.5022, allocations: 163.8 kB / 0.5248 GB, free: 3.012 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002434/0.5024, allocations: 84.81 kB / 0.5249 GB, free: 2.926 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.116e-05/0.5025, allocations: 15.98 kB / 0.5249 GB, free: 2.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001584/0.5041, allocations: 1.634 MB / 0.5265 GB, free: 1.168 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.5041, allocations: 3.984 kB / 0.5265 GB, free: 1.164 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002181/0.5063, allocations: 1.56 MB / 0.5281 GB, free: 15.57 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002877/0.5092, allocations: 2.473 MB / 0.5305 GB, free: 13.06 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009734/0.5102, allocations: 0.5336 MB / 0.531 GB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002353/0.5104, allocations: 16 kB / 0.531 GB, free: 12.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.5115, allocations: 135.8 kB / 0.5311 GB, free: 12.36 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001756/0.5116, allocations: 72.58 kB / 0.5312 GB, free: 12.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.2e-05/0.5117, allocations: 34.03 kB / 0.5312 GB, free: 12.25 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.00186/0.5136, allocations: 1.449 MB / 0.5327 GB, free: 10.78 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002722/0.5163, allocations: 0.5142 MB / 0.5332 GB, free: 10.27 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.0006981/0.517, allocations: 328.2 kB / 0.5335 GB, free: 10.02 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002439/0.5195, allocations: 1.674 MB / 0.5351 GB, free: 8.32 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.5195, allocations: 7.609 kB / 0.5351 GB, free: 8.316 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007731/0.5203, allocations: 0.5557 MB / 0.5357 GB, free: 7.754 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008649/0.5211, allocations: 177.4 kB / 0.5358 GB, free: 7.578 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005362/0.5265, allocations: 2.948 MB / 0.5387 GB, free: 4.578 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001394/0.5279, allocations: 1.567 MB / 0.5402 GB, free: 2.977 MB / 410.7 MB Notification: Performance of SimCode: time 3.81e-07/0.5279, allocations: 0 / 0.5402 GB, free: 2.977 MB / 410.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_R_fmu --startTime=0 --stopTime=8 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_R.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R_res.mat does not exist to compare? outputFormat=mat