Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.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_RL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_RL",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.001037/0.001038, allocations: 199.5 kB / 8.54 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.126/1.126, allocations: 225.5 MB / 234.4 MB, free: 3.344 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008913/0.0008913, allocations: 93.69 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08971/0.09063, allocations: 56.91 MB / 343.2 MB, free: 8.605 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07954/0.1702, allocations: 51.48 MB / 394.7 MB, free: 5.082 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2188/0.389, allocations: 91.53 MB / 486.2 MB, free: 1.977 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001953/0.3893, allocations: 82.95 kB / 486.3 MB, free: 1.934 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.06237/0.4516, allocations: 24.81 MB / 0.4992 GB, free: 12.83 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.4517, allocations: 12 kB / 0.4992 GB, free: 12.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007861/0.4525, allocations: 288.3 kB / 0.4994 GB, free: 12.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00182/0.4543, allocations: 1.12 MB / 0.5005 GB, free: 11.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.543e-05/0.4544, allocations: 29 kB / 0.5006 GB, free: 11.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/0.4545, allocations: 58.16 kB / 0.5006 GB, free: 11.44 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001223/0.4557, allocations: 0.7647 MB / 0.5014 GB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/0.457, allocations: 0.8522 MB / 0.5022 GB, free: 10.29 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.469e-05/0.457, allocations: 0 / 0.5022 GB, free: 10.29 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.749e-05/0.4571, allocations: 11.3 kB / 0.5022 GB, free: 10.28 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.601e-05/0.4572, allocations: 20 kB / 0.5022 GB, free: 10.26 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004881/0.462, allocations: 3.356 MB / 0.5055 GB, free: 7.602 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001325/0.4634, allocations: 0.8707 MB / 0.5064 GB, free: 6.746 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006441/0.464, allocations: 429.6 kB / 0.5068 GB, free: 6.328 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.402e-05/0.4641, allocations: 8.656 kB / 0.5068 GB, free: 6.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007586/0.4649, allocations: 0.5588 MB / 0.5073 GB, free: 5.738 MB / 378.7 MB Notification: Performance of pre-optimization done (n=86): time 2.034e-06/0.4649, allocations: 0 / 0.5073 GB, free: 5.738 MB / 378.7 MB Notification: Performance of matching and sorting (n=86): time 0.001488/0.4664, allocations: 0.9384 MB / 0.5082 GB, free: 4.789 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.498e-05/0.4665, allocations: 200.7 kB / 0.5084 GB, free: 4.551 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002339/0.4688, allocations: 1.875 MB / 0.5103 GB, free: 2.633 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.075e-05/0.4689, allocations: 29.7 kB / 0.5103 GB, free: 2.598 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002231/0.4691, allocations: 374.9 kB / 0.5107 GB, free: 2.223 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001984/0.4693, allocations: 260.2 kB / 0.5109 GB, free: 1.965 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.299e-05/0.4694, allocations: 0 / 0.5109 GB, free: 1.965 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.636e-05/0.4695, allocations: 344.6 kB / 0.5112 GB, free: 1.625 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005066/0.47, allocations: 349.9 kB / 0.5116 GB, free: 1.285 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006444/0.4706, allocations: 0.6123 MB / 0.5122 GB, free: 0.5547 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005534/0.4712, allocations: 406.9 kB / 0.5125 GB, free: 164 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.4712, allocations: 4 kB / 0.5126 GB, free: 160 kB / 378.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001606/0.4728, allocations: 1.073 MB / 0.5136 GB, free: 15.07 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009349/0.4738, allocations: 2.897 MB / 0.5164 GB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.4738, allocations: 8 kB / 0.5164 GB, free: 11.97 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002839/0.4741, allocations: 104.9 kB / 0.5165 GB, free: 11.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009815/0.4751, allocations: 239.7 kB / 0.5168 GB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001667/0.4767, allocations: 1.704 MB / 0.5184 GB, free: 9.812 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001083/0.4778, allocations: 180.4 kB / 0.5186 GB, free: 9.637 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.862e-05/0.4779, allocations: 43.98 kB / 0.5186 GB, free: 9.594 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.334e-06/0.4779, allocations: 4 kB / 0.5186 GB, free: 9.59 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001384/0.4793, allocations: 0.9131 MB / 0.5195 GB, free: 8.676 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.4794, allocations: 8 kB / 0.5195 GB, free: 8.668 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002169/0.4796, allocations: 84.81 kB / 0.5196 GB, free: 8.582 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009201/0.4805, allocations: 235.8 kB / 0.5199 GB, free: 8.352 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00147/0.482, allocations: 1.702 MB / 0.5215 GB, free: 6.531 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009492/0.4829, allocations: 163.3 kB / 0.5217 GB, free: 6.371 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.895e-05/0.483, allocations: 43.98 kB / 0.5217 GB, free: 6.328 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.0002247/0.4833, allocations: 148.8 kB / 0.5219 GB, free: 6.18 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002481/0.4835, allocations: 191.1 kB / 0.522 GB, free: 5.992 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001797/0.4853, allocations: 1.018 MB / 0.523 GB, free: 4.961 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.118e-05/0.4854, allocations: 12 kB / 0.523 GB, free: 4.949 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.4854, allocations: 4 kB / 0.523 GB, free: 4.945 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.278e-06/0.4854, allocations: 3.984 kB / 0.523 GB, free: 4.941 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003495/0.4889, allocations: 2.535 MB / 0.5255 GB, free: 2.344 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.4889, allocations: 4 kB / 0.5255 GB, free: 2.34 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008002/0.4897, allocations: 163.8 kB / 0.5257 GB, free: 2.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002057/0.4899, allocations: 76.81 kB / 0.5258 GB, free: 2.102 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.208e-05/0.49, allocations: 19.98 kB / 0.5258 GB, free: 2.082 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001399/0.4914, allocations: 1.675 MB / 0.5274 GB, free: 296 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.4914, allocations: 0 / 0.5274 GB, free: 296 kB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002044/0.4935, allocations: 1.592 MB / 0.529 GB, free: 14.65 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002741/0.4962, allocations: 2.513 MB / 0.5314 GB, free: 12.08 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008289/0.4971, allocations: 0.539 MB / 0.5319 GB, free: 11.52 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002286/0.4973, allocations: 8 kB / 0.532 GB, free: 11.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009815/0.4983, allocations: 143.8 kB / 0.5321 GB, free: 11.38 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001629/0.4985, allocations: 76.66 kB / 0.5322 GB, free: 11.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.323e-05/0.4985, allocations: 36.05 kB / 0.5322 GB, free: 11.27 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.001709/0.5003, allocations: 1.449 MB / 0.5336 GB, free: 9.793 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002763/0.503, allocations: 0.5161 MB / 0.5341 GB, free: 9.277 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.0006259/0.5037, allocations: 327.2 kB / 0.5344 GB, free: 9.043 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002349/0.506, allocations: 1.682 MB / 0.5361 GB, free: 7.336 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.506, allocations: 320 / 0.5361 GB, free: 7.336 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007578/0.5068, allocations: 0.5629 MB / 0.5366 GB, free: 6.762 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008567/0.5077, allocations: 191 kB / 0.5368 GB, free: 6.57 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005231/0.5129, allocations: 3.014 MB / 0.5397 GB, free: 3.512 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001388/0.5143, allocations: 1.582 MB / 0.5413 GB, free: 1.906 MB / 410.7 MB Notification: Performance of SimCode: time 2.81e-07/0.5143, allocations: 0 / 0.5413 GB, free: 1.906 MB / 410.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_RL_fmu --startTime=0 --stopTime=8 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_RL.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL_res.mat does not exist to compare? outputFormat=mat