Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_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.DCDC.HBridge.HBridge_RL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_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.000988/0.0009883, allocations: 199.3 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.1/1.1, allocations: 225.5 MB / 234.4 MB, free: 3.477 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009199/0.0009199, allocations: 97.64 kB / 286.3 MB, free: 5.211 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08743/0.08838, allocations: 56.91 MB / 343.2 MB, free: 8.676 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07738/0.1658, allocations: 51.48 MB / 394.7 MB, free: 5.148 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2057/0.3716, allocations: 88.4 MB / 483.1 MB, free: 4.809 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001901/0.3718, allocations: 84.94 kB / 483.2 MB, free: 4.762 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: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.03664/0.4084, allocations: 16.95 MB / 0.4884 GB, free: 6.727 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.116e-05/0.4085, allocations: 12 kB / 0.4884 GB, free: 6.715 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000259/0.4088, allocations: 114.6 kB / 0.4886 GB, free: 6.602 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001014/0.4098, allocations: 0.6568 MB / 0.4892 GB, free: 6.059 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.507e-05/0.4098, allocations: 28 kB / 0.4892 GB, free: 6.031 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001256/0.41, allocations: 54.94 kB / 0.4893 GB, free: 5.98 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001195/0.4112, allocations: 0.6434 MB / 0.4899 GB, free: 5.609 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001288/0.4125, allocations: 0.8177 MB / 0.4907 GB, free: 4.988 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.403e-05/0.4125, allocations: 3.938 kB / 0.4907 GB, free: 4.984 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.132e-05/0.4126, allocations: 7.875 kB / 0.4907 GB, free: 4.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.092e-05/0.4126, allocations: 24 kB / 0.4907 GB, free: 4.957 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004584/0.4172, allocations: 3.611 MB / 0.4943 GB, free: 2.148 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009697/0.4182, allocations: 0.6411 MB / 0.4949 GB, free: 1.738 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006619/0.4188, allocations: 443.2 kB / 0.4953 GB, free: 1.453 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.138e-05/0.4189, allocations: 8.656 kB / 0.4953 GB, free: 1.445 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000561/0.4195, allocations: 407.3 kB / 0.4957 GB, free: 1.164 MB / 362.7 MB Notification: Performance of pre-optimization done (n=83): time 2.073e-06/0.4195, allocations: 0 / 0.4957 GB, free: 1.164 MB / 362.7 MB Notification: Performance of matching and sorting (n=83): time 0.001204/0.4207, allocations: 0.7078 MB / 0.4964 GB, free: 0.668 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.025e-05/0.4208, allocations: 112.7 kB / 0.4965 GB, free: 0.5352 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005405/0.4213, allocations: 450.1 kB / 0.4969 GB, free: 208 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.35e-05/0.4214, allocations: 32.02 kB / 0.497 GB, free: 172 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002078/0.4216, allocations: 318.9 kB / 0.4973 GB, free: 15.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001739/0.4218, allocations: 241.9 kB / 0.4975 GB, free: 15.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.305e-05/0.4218, allocations: 0 / 0.4975 GB, free: 15.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.4219, allocations: 377.1 kB / 0.4979 GB, free: 15.33 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003684/0.4223, allocations: 228.1 kB / 0.4981 GB, free: 15.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004604/0.4228, allocations: 378.7 kB / 0.4984 GB, free: 14.74 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003986/0.4232, allocations: 239.1 kB / 0.4987 GB, free: 14.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.4232, allocations: 0 / 0.4987 GB, free: 14.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001245/0.4245, allocations: 0.7975 MB / 0.4994 GB, free: 13.69 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003637/0.4248, allocations: 1.313 MB / 0.5007 GB, free: 12.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.4248, allocations: 4 kB / 0.5007 GB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007726/0.4256, allocations: 273.5 kB / 0.501 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004465/0.4261, allocations: 115.8 kB / 0.5011 GB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004229/0.4303, allocations: 4.027 MB / 0.505 GB, free: 7.637 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005648/0.4309, allocations: 75.62 kB / 0.5051 GB, free: 7.562 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.323e-05/0.431, allocations: 24 kB / 0.5051 GB, free: 7.539 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.602e-06/0.431, allocations: 4 kB / 0.5051 GB, free: 7.535 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001197/0.4322, allocations: 0.6968 MB / 0.5058 GB, free: 6.832 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.4322, allocations: 4 kB / 0.5058 GB, free: 6.828 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000709/0.4329, allocations: 282.1 kB / 0.5061 GB, free: 6.547 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000404/0.4333, allocations: 107.8 kB / 0.5062 GB, free: 6.441 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004265/0.4376, allocations: 4.024 MB / 0.5101 GB, free: 2.188 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004679/0.4381, allocations: 55.7 kB / 0.5102 GB, free: 2.133 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.728e-05/0.4382, allocations: 32 kB / 0.5102 GB, free: 2.102 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y_last,meanCurrent.y_last,$PRE.meanVoltage.y_last,meanVoltage.y_last,$whenCondition2,$whenCondition1,$whenCondition4,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition3,hbridge.fire_n,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.fire_n,hbridge.inverter_p.transistor_p.off,hbridge.inverter_p.diode_p.off,hbridge.inverter_p.transistor_n.off,hbridge.inverter_p.diode_n.off,hbridge.inverter_n.andCondition_p.y,hbridge.inverter_n.andCondition_n.y,hbridge.inverter_n.fire_n,hbridge.inverter_n.transistor_p.off,hbridge.inverter_n.diode_p.off,hbridge.inverter_n.transistor_n.off,hbridge.inverter_n.diode_n.off,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 67 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.0001791/0.4384, allocations: 128.8 kB / 0.5103 GB, free: 1.969 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001198/0.4385, allocations: 83.05 kB / 0.5104 GB, free: 1.887 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001727/0.4387, allocations: 83.14 kB / 0.5105 GB, free: 1.801 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.4387, allocations: 8 kB / 0.5105 GB, free: 1.793 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.4387, allocations: 0 / 0.5105 GB, free: 1.793 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.4387, allocations: 3.984 kB / 0.5105 GB, free: 1.789 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002547/0.4412, allocations: 1.73 MB / 0.5122 GB, free: 4 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.4413, allocations: 0 / 0.5122 GB, free: 4 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003983/0.4417, allocations: 79.89 kB / 0.5123 GB, free: 15.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006821/0.4424, allocations: 280.7 kB / 0.5125 GB, free: 15.65 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.183e-05/0.4424, allocations: 7.906 kB / 0.5125 GB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004085/0.4465, allocations: 4.01 MB / 0.5165 GB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.4465, allocations: 0 / 0.5165 GB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001729/0.4483, allocations: 1.219 MB / 0.5176 GB, free: 10.17 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002296/0.4506, allocations: 1.973 MB / 0.5196 GB, free: 8.168 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002942/0.4509, allocations: 240.2 kB / 0.5198 GB, free: 7.914 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001058/0.451, allocations: 0 / 0.5198 GB, free: 7.914 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004056/0.4514, allocations: 31.97 kB / 0.5198 GB, free: 7.883 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001522/0.4516, allocations: 72.67 kB / 0.5199 GB, free: 7.812 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.136e-05/0.4516, allocations: 19.98 kB / 0.5199 GB, free: 7.793 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0003407/0.452, allocations: 323 kB / 0.5202 GB, free: 7.48 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002124/0.4541, allocations: 418.7 kB / 0.5206 GB, free: 7.07 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanCurrent.x,meanVoltage.x,inductor.i) * Number of discrete variables: 26 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hbridge.fire_n,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.fire_n,hbridge.inverter_p.transistor_p.off,hbridge.inverter_p.diode_p.off,hbridge.inverter_p.transistor_n.off,hbridge.inverter_p.diode_n.off,hbridge.inverter_n.andCondition_p.y,hbridge.inverter_n.andCondition_n.y,hbridge.inverter_n.fire_n,hbridge.inverter_n.transistor_p.off,hbridge.inverter_n.diode_p.off,hbridge.inverter_n.transistor_n.off,hbridge.inverter_n.diode_n.off,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,meanCurrent.y_last,meanVoltage.y_last) * Number of discrete states: 4 (signalPWM.sawtooth.count,meanCurrent.x,meanVoltage.x,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001814/0.4543, allocations: 130.2 kB / 0.5208 GB, free: 6.934 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002373/0.4567, allocations: 1.609 MB / 0.5223 GB, free: 5.273 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.4567, allocations: 0 / 0.5223 GB, free: 5.273 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008812/0.4576, allocations: 0.6299 MB / 0.5229 GB, free: 4.625 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005533/0.4581, allocations: 118.3 kB / 0.523 GB, free: 4.516 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002813/0.461, allocations: 1.232 MB / 0.5243 GB, free: 3.258 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006436/0.4616, allocations: 1.061 MB / 0.5253 GB, free: 2.168 MB / 394.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4616, allocations: 0 / 0.5253 GB, free: 2.168 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_RL.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL_res.mat does not exist to compare? outputFormat=mat