Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_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.DCDC.HBridge.HBridge_R,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_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.001058/0.001058, allocations: 203.4 kB / 8.543 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.119/1.119, allocations: 225.5 MB / 234.4 MB, free: 3.336 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008514/0.0008514, allocations: 90.52 kB / 286.3 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0899/0.09078, allocations: 56.92 MB / 343.3 MB, free: 8.57 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07889/0.1697, allocations: 51.48 MB / 394.7 MB, free: 5.031 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2093/0.3791, allocations: 88.06 MB / 482.8 MB, free: 5.098 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002081/0.3793, allocations: 86.77 kB / 482.9 MB, free: 5.051 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.03698/0.4163, allocations: 16.6 MB / 499.5 MB, free: 7.316 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.4164, allocations: 8 kB / 499.5 MB, free: 7.309 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002901/0.4167, allocations: 118.6 kB / 499.6 MB, free: 7.191 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001079/0.4177, allocations: 0.647 MB / 0.4885 GB, free: 6.656 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.775e-05/0.4178, allocations: 28 kB / 0.4885 GB, free: 6.629 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001302/0.4179, allocations: 55.31 kB / 0.4886 GB, free: 6.578 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001194/0.4191, allocations: 0.6261 MB / 0.4892 GB, free: 6.219 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001311/0.4205, allocations: 0.8082 MB / 0.49 GB, free: 5.605 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.583e-05/0.4205, allocations: 7.938 kB / 0.49 GB, free: 5.598 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.79e-05/0.4206, allocations: 7.625 kB / 0.49 GB, free: 5.594 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.796e-05/0.4206, allocations: 20 kB / 0.49 GB, free: 5.574 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004481/0.4251, allocations: 3.56 MB / 0.4935 GB, free: 2.805 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001004/0.4261, allocations: 0.6342 MB / 0.4941 GB, free: 2.395 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005985/0.4267, allocations: 413.6 kB / 0.4945 GB, free: 2.133 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.738e-05/0.4268, allocations: 11.53 kB / 0.4945 GB, free: 2.125 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005839/0.4274, allocations: 391.9 kB / 0.4949 GB, free: 1.852 MB / 362.7 MB Notification: Performance of pre-optimization done (n=81): time 2.405e-06/0.4274, allocations: 4 kB / 0.4949 GB, free: 1.848 MB / 362.7 MB Notification: Performance of matching and sorting (n=81): time 0.001435/0.4288, allocations: 0.7577 MB / 0.4956 GB, free: 1.312 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.431e-05/0.4289, allocations: 117.6 kB / 0.4958 GB, free: 1.176 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005088/0.4294, allocations: 440.9 kB / 0.4962 GB, free: 0.8516 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.11e-05/0.4295, allocations: 31.89 kB / 0.4962 GB, free: 0.8164 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001709/0.4296, allocations: 300.1 kB / 0.4965 GB, free: 0.5508 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001616/0.4298, allocations: 235.4 kB / 0.4967 GB, free: 356 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.24e-05/0.4299, allocations: 0 / 0.4967 GB, free: 356 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.43, allocations: 379.3 kB / 0.4971 GB, free: 15.99 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003884/0.4304, allocations: 225.8 kB / 0.4973 GB, free: 15.83 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004574/0.4309, allocations: 365.4 kB / 0.4976 GB, free: 15.43 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004059/0.4313, allocations: 231.2 kB / 0.4979 GB, free: 15.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.4313, allocations: 4 kB / 0.4979 GB, free: 15.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00132/0.4326, allocations: 0.7901 MB / 0.4986 GB, free: 14.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000413/0.433, allocations: 1.316 MB / 0.4999 GB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.4331, allocations: 4 kB / 0.4999 GB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008559/0.4339, allocations: 310.3 kB / 0.5002 GB, free: 12.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003907/0.4343, allocations: 103.8 kB / 0.5003 GB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004296/0.4386, allocations: 3.174 MB / 0.5034 GB, free: 9.281 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004987/0.4391, allocations: 79.41 kB / 0.5035 GB, free: 9.203 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.435e-05/0.4392, allocations: 29.48 kB / 0.5035 GB, free: 9.176 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.662e-06/0.4392, allocations: 4 kB / 0.5035 GB, free: 9.172 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001132/0.4404, allocations: 0.6865 MB / 0.5042 GB, free: 8.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.4404, allocations: 7.938 kB / 0.5042 GB, free: 8.473 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007624/0.4411, allocations: 317.2 kB / 0.5045 GB, free: 8.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003315/0.4415, allocations: 83.89 kB / 0.5046 GB, free: 8.078 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00402/0.4455, allocations: 3.175 MB / 0.5077 GB, free: 4.789 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004318/0.446, allocations: 59.52 kB / 0.5078 GB, free: 4.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.363e-05/0.446, allocations: 28 kB / 0.5078 GB, free: 4.703 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 (62): * Single equations (assignments): 60 * 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 {8 26} Notification: Performance of prepare postOptimizeDAE: time 0.0001663/0.4462, allocations: 137.7 kB / 0.5079 GB, free: 4.562 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/0.4463, allocations: 71.16 kB / 0.508 GB, free: 4.492 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001652/0.4465, allocations: 79.05 kB / 0.5081 GB, free: 4.406 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.4465, allocations: 8 kB / 0.5081 GB, free: 4.398 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.4465, allocations: 4 kB / 0.5081 GB, free: 4.395 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.215e-06/0.4465, allocations: 3.984 kB / 0.5081 GB, free: 4.391 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002341/0.4489, allocations: 1.712 MB / 0.5097 GB, free: 2.633 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.4489, allocations: 1.688 kB / 0.5097 GB, free: 2.633 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003045/0.4492, allocations: 71.8 kB / 0.5098 GB, free: 2.562 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007636/0.45, allocations: 304.6 kB / 0.5101 GB, free: 2.262 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.481e-05/0.45, allocations: 4 kB / 0.5101 GB, free: 2.258 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003969/0.454, allocations: 3.184 MB / 0.5132 GB, free: 14.96 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.454, allocations: 0 / 0.5132 GB, free: 14.96 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001686/0.4557, allocations: 1.217 MB / 0.5144 GB, free: 13.72 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002249/0.458, allocations: 1.952 MB / 0.5163 GB, free: 11.75 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002859/0.4583, allocations: 240 kB / 0.5165 GB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.4584, allocations: 4 kB / 0.5165 GB, free: 11.49 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004047/0.4588, allocations: 32.09 kB / 0.5166 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001512/0.4589, allocations: 68.55 kB / 0.5166 GB, free: 11.39 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.245e-05/0.459, allocations: 23.98 kB / 0.5167 GB, free: 11.37 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0003615/0.4594, allocations: 319 kB / 0.517 GB, free: 11.06 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002169/0.4615, allocations: 398.8 kB / 0.5173 GB, free: 10.67 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (meanCurrent.x,meanVoltage.x) * 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 (48): * Single equations (assignments): 41 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 26} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001784/0.4617, allocations: 148.3 kB / 0.5175 GB, free: 10.52 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002241/0.464, allocations: 1.434 MB / 0.5189 GB, free: 9.055 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.464, allocations: 0.875 kB / 0.5189 GB, free: 9.055 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008233/0.4648, allocations: 0.5438 MB / 0.5194 GB, free: 8.504 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005478/0.4654, allocations: 114.3 kB / 0.5195 GB, free: 8.395 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002736/0.4681, allocations: 1.18 MB / 0.5207 GB, free: 7.184 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006309/0.4688, allocations: 1.042 MB / 0.5217 GB, free: 6.113 MB / 394.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4688, allocations: 0 / 0.5217 GB, free: 6.113 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R_res.mat does not exist to compare? outputFormat=mat