Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_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.DCDC.HBridge.HBridge_RL,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.000942/0.000942, allocations: 187.2 kB / 8.134 MB, free: 2.207 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.091/1.091, allocations: 221.4 MB / 229.9 MB, free: 3.055 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.0009479/0.0009479, allocations: 93.14 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08899/0.08996, allocations: 55.84 MB / 336.6 MB, free: 9.398 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1725/0.2625, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08557/0.3481, allocations: 86.25 MB / 473.3 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000222/0.3484, allocations: 84.72 kB / 473.3 MB, free: 420 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.039/0.3874, allocations: 16.49 MB / 489.8 MB, free: 15.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.216e-05/0.3874, allocations: 8 kB / 489.8 MB, free: 15.83 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002448/0.3877, allocations: 118.7 kB / 490 MB, free: 15.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00107/0.3888, allocations: 0.6486 MB / 490.6 MB, free: 15.02 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.409e-05/0.3888, allocations: 28 kB / 490.6 MB, free: 15 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001205/0.3889, allocations: 55.91 kB / 490.7 MB, free: 14.94 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001261/0.3902, allocations: 0.6288 MB / 491.3 MB, free: 14.31 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001361/0.3916, allocations: 0.8112 MB / 492.1 MB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.666e-05/0.3916, allocations: 7.938 kB / 492.1 MB, free: 13.45 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.619e-05/0.3917, allocations: 0 / 492.1 MB, free: 13.45 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.222e-05/0.3917, allocations: 24 kB / 492.2 MB, free: 13.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004719/0.3964, allocations: 3.584 MB / 495.7 MB, free: 9.742 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001052/0.3975, allocations: 0.6449 MB / 496.4 MB, free: 9.09 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007241/0.3982, allocations: 446.7 kB / 496.8 MB, free: 8.648 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.871e-05/0.3983, allocations: 8.656 kB / 496.8 MB, free: 8.637 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006027/0.3989, allocations: 403.6 kB / 497.2 MB, free: 8.223 MB / 378.7 MB Notification: Performance of pre-optimization done (n=83): time 2.004e-06/0.3989, allocations: 4 kB / 497.2 MB, free: 8.219 MB / 378.7 MB Notification: Performance of matching and sorting (n=83): time 0.00123/0.4002, allocations: 0.7144 MB / 497.9 MB, free: 7.492 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.058e-05/0.4002, allocations: 115.6 kB / 498.1 MB, free: 7.355 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005273/0.4008, allocations: 441.9 kB / 498.5 MB, free: 6.918 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.996e-05/0.4008, allocations: 25.7 kB / 498.5 MB, free: 6.887 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001887/0.401, allocations: 308.3 kB / 498.8 MB, free: 6.578 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001803/0.4012, allocations: 232.6 kB / 499 MB, free: 6.348 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.492e-05/0.4013, allocations: 4 kB / 499 MB, free: 6.344 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.4014, allocations: 378.7 kB / 499.4 MB, free: 5.965 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000393/0.4018, allocations: 229.8 kB / 499.6 MB, free: 5.742 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004706/0.4023, allocations: 374.7 kB / 0.4883 GB, free: 5.324 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004057/0.4027, allocations: 239.2 kB / 0.4885 GB, free: 5.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.4027, allocations: 3.938 kB / 0.4885 GB, free: 5.086 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001255/0.404, allocations: 0.7939 MB / 0.4893 GB, free: 4.281 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004388/0.4044, allocations: 1.302 MB / 0.4906 GB, free: 2.875 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.545e-06/0.4044, allocations: 4 kB / 0.4906 GB, free: 2.871 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007886/0.4052, allocations: 288.9 kB / 0.4908 GB, free: 2.586 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004678/0.4057, allocations: 111.8 kB / 0.4909 GB, free: 2.477 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09733/0.503, allocations: 4.015 MB / 0.4949 GB, free: 130.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000535/0.5036, allocations: 75.64 kB / 0.4949 GB, free: 130.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.074e-05/0.5037, allocations: 27.34 kB / 0.495 GB, free: 130.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.051e-06/0.5037, allocations: 2.688 kB / 0.495 GB, free: 130.2 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001016/0.5047, allocations: 0.6914 MB / 0.4956 GB, free: 130.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.5047, allocations: 6.281 kB / 0.4956 GB, free: 130.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000645/0.5054, allocations: 285.7 kB / 0.4959 GB, free: 130.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003745/0.5058, allocations: 105.2 kB / 0.496 GB, free: 130.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003251/0.509, allocations: 4.006 MB / 0.4999 GB, free: 127.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004127/0.5094, allocations: 49.7 kB / 0.5 GB, free: 127.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.506e-05/0.5095, allocations: 28.44 kB / 0.5 GB, free: 127.8 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.andCondition_p.y,hbridge.andCondition_n.y,hbridge.fire_n,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,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.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.0001427/0.5097, allocations: 148 kB / 0.5002 GB, free: 127.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.312e-05/0.5097, allocations: 75.12 kB / 0.5002 GB, free: 127.6 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001431/0.5099, allocations: 81.38 kB / 0.5003 GB, free: 127.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.5099, allocations: 5.75 kB / 0.5003 GB, free: 127.6 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-06/0.5099, allocations: 0 / 0.5003 GB, free: 127.6 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.5099, allocations: 3.891 kB / 0.5003 GB, free: 127.6 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001932/0.5119, allocations: 1.728 MB / 0.502 GB, free: 127.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.5119, allocations: 0 / 0.502 GB, free: 127.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003621/0.5122, allocations: 80.55 kB / 0.5021 GB, free: 127.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006038/0.5129, allocations: 278.4 kB / 0.5023 GB, free: 127.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.258e-05/0.5129, allocations: 6.938 kB / 0.5023 GB, free: 127.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003365/0.5163, allocations: 4.012 MB / 0.5063 GB, free: 124.9 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.5163, allocations: 0 / 0.5063 GB, free: 124.9 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001445/0.5177, allocations: 1.211 MB / 0.5074 GB, free: 124.7 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002024/0.5198, allocations: 1.985 MB / 0.5094 GB, free: 124.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002309/0.52, allocations: 233.9 kB / 0.5096 GB, free: 123.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.5201, allocations: 7.062 kB / 0.5096 GB, free: 123.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005273/0.5207, allocations: 37.05 kB / 0.5097 GB, free: 123.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001884/0.5209, allocations: 69.42 kB / 0.5097 GB, free: 123.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.394e-05/0.5209, allocations: 18.03 kB / 0.5097 GB, free: 123.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004419/0.5214, allocations: 323.6 kB / 0.51 GB, free: 123.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003172/0.5246, allocations: 403.2 kB / 0.5104 GB, free: 123.8 MB / 378.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.andCondition_p.y,hbridge.andCondition_n.y,hbridge.fire_n,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,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.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.0001998/0.5248, allocations: 133.4 kB / 0.5106 GB, free: 123.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00283/0.5276, allocations: 1.614 MB / 0.5121 GB, free: 123.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.5276, allocations: 0 / 0.5121 GB, free: 123.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001081/0.5287, allocations: 0.6183 MB / 0.5127 GB, free: 123 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007558/0.5295, allocations: 119.2 kB / 0.5128 GB, free: 123 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003575/0.5331, allocations: 1.222 MB / 0.514 GB, free: 122.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005602/0.5337, allocations: 1.05 MB / 0.5151 GB, free: 121.9 MB / 378.7 MB Notification: Performance of SimCode: time 3.6e-07/0.5337, allocations: 0 / 0.5151 GB, free: 121.9 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_RL.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL_res.mat does not exist to compare? outputFormat=mat