Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009579/0.0009579, allocations: 183 kB / 8.479 MB, free: 1.875 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.044/1.044, allocations: 205.2 MB / 214.1 MB, free: 5.512 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008024/0.0008024, allocations: 95.59 kB / 262.1 MB, free: 5.57 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1453/0.1461, allocations: 52.98 MB / 315.1 MB, free: 41.45 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05911/0.2052, allocations: 47.58 MB / 362.7 MB, free: 9.906 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2019/0.4072, allocations: 85.15 MB / 447.8 MB, free: 10.32 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001685/0.4074, allocations: 88 kB / 447.9 MB, free: 10.31 MB / 314.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.03567/0.443, allocations: 16.24 MB / 464.1 MB, free: 3.738 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.4431, allocations: 8.25 kB / 464.1 MB, free: 3.738 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003181/0.4434, allocations: 115.8 kB / 464.3 MB, free: 3.684 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001077/0.4445, allocations: 0.6413 MB / 464.9 MB, free: 3.309 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.389e-05/0.4446, allocations: 28.22 kB / 464.9 MB, free: 3.309 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001453/0.4447, allocations: 59.52 kB / 465 MB, free: 3.301 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001277/0.446, allocations: 0.6293 MB / 465.6 MB, free: 3.281 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001369/0.4474, allocations: 0.7999 MB / 466.4 MB, free: 3.023 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.829e-05/0.4474, allocations: 4.938 kB / 466.4 MB, free: 3.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.337e-05/0.4475, allocations: 6.391 kB / 466.4 MB, free: 3.016 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.087e-05/0.4475, allocations: 21.28 kB / 466.4 MB, free: 3.016 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004446/0.452, allocations: 3.583 MB / 470 MB, free: 1.027 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001016/0.453, allocations: 0.645 MB / 470.7 MB, free: 0.9648 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006884/0.4537, allocations: 442.9 kB / 471.1 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.037e-05/0.4538, allocations: 8.625 kB / 471.1 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000594/0.4544, allocations: 401.6 kB / 471.5 MB, free: 0.8047 MB / 314.7 MB Notification: Performance of pre-optimization done (n=83): time 3.266e-06/0.4544, allocations: 0 / 471.5 MB, free: 0.8047 MB / 314.7 MB Notification: Performance of matching and sorting (n=83): time 0.001323/0.4557, allocations: 0.7168 MB / 472.2 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.361e-05/0.4558, allocations: 121.1 kB / 472.3 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005913/0.4564, allocations: 435 kB / 472.8 MB, free: 396 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.819e-05/0.4564, allocations: 36.38 kB / 472.8 MB, free: 360 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001668/0.4566, allocations: 297.9 kB / 473.1 MB, free: 132 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001792/0.4568, allocations: 237.8 kB / 473.3 MB, free: 15.95 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.755e-05/0.4569, allocations: 4 kB / 473.3 MB, free: 15.95 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.457, allocations: 377.5 kB / 473.7 MB, free: 15.61 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003916/0.4574, allocations: 229.2 kB / 473.9 MB, free: 15.61 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005036/0.4579, allocations: 373.3 kB / 474.3 MB, free: 15.45 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004195/0.4583, allocations: 242.9 kB / 474.5 MB, free: 15.42 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.4584, allocations: 1.188 kB / 474.5 MB, free: 15.42 MB / 330.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001329/0.4597, allocations: 0.7964 MB / 475.3 MB, free: 15.26 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005038/0.4602, allocations: 1.316 MB / 476.6 MB, free: 13.88 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/0.4602, allocations: 4.984 kB / 476.6 MB, free: 13.88 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007849/0.461, allocations: 279.9 kB / 476.9 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004799/0.4615, allocations: 116.2 kB / 477 MB, free: 13.74 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004462/0.466, allocations: 4.015 MB / 481 MB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006174/0.4666, allocations: 75.55 kB / 481.1 MB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.232e-05/0.4667, allocations: 23.88 kB / 481.1 MB, free: 10.14 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.927e-06/0.4667, allocations: 4.109 kB / 481.1 MB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001197/0.4679, allocations: 0.7034 MB / 481.8 MB, free: 9.668 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.468, allocations: 4 kB / 481.9 MB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007117/0.4687, allocations: 277.4 kB / 482.1 MB, free: 9.477 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004266/0.4691, allocations: 108.1 kB / 482.2 MB, free: 9.375 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004304/0.4734, allocations: 4.012 MB / 486.2 MB, free: 5.863 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005937/0.4741, allocations: 55.64 kB / 486.3 MB, free: 5.809 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.744e-05/0.4742, allocations: 26.19 kB / 486.3 MB, free: 5.789 MB / 330.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,meanCurrent.y,$PRE.meanVoltage.y,meanVoltage.y,$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.00025/0.4744, allocations: 140.1 kB / 486.5 MB, free: 5.648 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000178/0.4746, allocations: 75.12 kB / 486.5 MB, free: 5.574 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001831/0.4748, allocations: 75.12 kB / 486.6 MB, free: 5.539 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.4748, allocations: 8 kB / 486.6 MB, free: 5.531 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.4748, allocations: 0 / 486.6 MB, free: 5.531 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/0.4748, allocations: 11.91 kB / 486.6 MB, free: 5.52 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002782/0.4776, allocations: 1.733 MB / 488.4 MB, free: 3.941 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.4776, allocations: 0 / 488.4 MB, free: 3.941 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004035/0.4781, allocations: 79.89 kB / 488.4 MB, free: 3.863 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007502/0.4788, allocations: 273.5 kB / 488.7 MB, free: 3.59 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.506e-05/0.4789, allocations: 11.83 kB / 488.7 MB, free: 3.578 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004594/0.4835, allocations: 4.004 MB / 492.7 MB, free: 15.34 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.4835, allocations: 0 / 492.7 MB, free: 15.34 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001978/0.4855, allocations: 1.214 MB / 493.9 MB, free: 14.11 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00249/0.488, allocations: 1.981 MB / 495.9 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004205/0.4885, allocations: 239.9 kB / 496.1 MB, free: 11.85 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001489/0.4886, allocations: 11.98 kB / 496.2 MB, free: 11.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004675/0.4891, allocations: 31.98 kB / 496.2 MB, free: 11.81 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000169/0.4893, allocations: 64.67 kB / 496.3 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.089e-05/0.4893, allocations: 23.98 kB / 496.3 MB, free: 11.72 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0004215/0.4898, allocations: 323 kB / 496.6 MB, free: 11.41 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002482/0.4922, allocations: 402.8 kB / 497 MB, free: 11.02 MB / 346.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,meanVoltage.y) * 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.0002274/0.4925, allocations: 122.7 kB / 497.1 MB, free: 10.89 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00264/0.4951, allocations: 1.618 MB / 498.7 MB, free: 9.223 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.4952, allocations: 0 / 498.7 MB, free: 9.223 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009359/0.4961, allocations: 0.6194 MB / 499.3 MB, free: 8.578 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006539/0.4968, allocations: 118 kB / 499.5 MB, free: 8.465 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003113/0.4999, allocations: 1.223 MB / 0.4889 GB, free: 7.211 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007634/0.5007, allocations: 1.049 MB / 0.49 GB, free: 6.133 MB / 346.7 MB Notification: Performance of SimCode: time 3.9e-07/0.5007, allocations: 0 / 0.49 GB, free: 6.133 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_RL.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL_res.mat does not exist to compare? outputFormat=mat