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_R.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_R,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001003/0.001003, allocations: 173.8 kB / 8.471 MB, free: 1.863 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.058/1.058, allocations: 205.2 MB / 214.1 MB, free: 5.082 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.0008806/0.0008806, allocations: 86.27 kB / 262.1 MB, free: 5.141 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1471/0.148, allocations: 52.99 MB / 315.1 MB, free: 41.38 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06093/0.2089, allocations: 47.57 MB / 362.6 MB, free: 9.859 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1993/0.4082, allocations: 84.86 MB / 447.5 MB, free: 10.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002029/0.4085, allocations: 83.38 kB / 447.6 MB, free: 10.78 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: 216 * Number of variables: 216 Notification: Performance of Generate backend data structure: time 0.03422/0.4427, allocations: 15.9 MB / 463.5 MB, free: 4.336 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.4428, allocations: 8.25 kB / 463.5 MB, free: 4.336 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002498/0.443, allocations: 111.1 kB / 463.6 MB, free: 4.281 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009667/0.444, allocations: 0.6346 MB / 464.2 MB, free: 3.914 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.851e-05/0.444, allocations: 35.16 kB / 464.3 MB, free: 3.906 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/0.4442, allocations: 61.84 kB / 464.3 MB, free: 3.898 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001144/0.4453, allocations: 0.6159 MB / 464.9 MB, free: 3.875 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/0.4466, allocations: 0.7901 MB / 465.7 MB, free: 3.617 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.531e-05/0.4467, allocations: 1.25 kB / 465.7 MB, free: 3.617 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.952e-05/0.4467, allocations: 2 kB / 465.7 MB, free: 3.617 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.219e-05/0.4468, allocations: 20.78 kB / 465.8 MB, free: 3.617 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004107/0.4509, allocations: 3.532 MB / 469.3 MB, free: 1.648 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00101/0.4519, allocations: 0.6371 MB / 469.9 MB, free: 1.582 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006098/0.4525, allocations: 416.9 kB / 470.3 MB, free: 1.555 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.873e-05/0.4526, allocations: 16.45 kB / 470.4 MB, free: 1.547 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005471/0.4531, allocations: 392.5 kB / 470.7 MB, free: 1.426 MB / 314.7 MB Notification: Performance of pre-optimization done (n=81): time 2.405e-06/0.4532, allocations: 1.281 kB / 470.7 MB, free: 1.426 MB / 314.7 MB Notification: Performance of matching and sorting (n=81): time 0.0014/0.4546, allocations: 0.7551 MB / 471.5 MB, free: 1.277 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.683e-05/0.4546, allocations: 115.7 kB / 471.6 MB, free: 1.152 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005031/0.4551, allocations: 438 kB / 472 MB, free: 0.9961 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.162e-05/0.4552, allocations: 31.02 kB / 472.1 MB, free: 0.9648 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001429/0.4553, allocations: 300.5 kB / 472.4 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/0.4555, allocations: 229.3 kB / 472.6 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.402e-05/0.4555, allocations: 0 / 472.6 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.578e-05/0.4556, allocations: 371.6 kB / 472.9 MB, free: 248 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003694/0.456, allocations: 225.3 kB / 473.2 MB, free: 248 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004284/0.4564, allocations: 374.9 kB / 473.5 MB, free: 80 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003761/0.4568, allocations: 237 kB / 473.8 MB, free: 44 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.4568, allocations: 0 / 473.8 MB, free: 44 kB / 314.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0013/0.4581, allocations: 0.7837 MB / 474.5 MB, free: 15.9 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000569/0.4587, allocations: 1.317 MB / 475.9 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/0.4587, allocations: 3.5 kB / 475.9 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008632/0.4596, allocations: 308.5 kB / 476.2 MB, free: 14.46 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003886/0.46, allocations: 98.47 kB / 476.3 MB, free: 14.44 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004199/0.4642, allocations: 3.186 MB / 479.5 MB, free: 12.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005642/0.4648, allocations: 75.45 kB / 479.5 MB, free: 11.99 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.668e-05/0.4649, allocations: 27 kB / 479.6 MB, free: 11.97 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.863e-06/0.4649, allocations: 8 kB / 479.6 MB, free: 11.96 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001137/0.466, allocations: 0.6809 MB / 480.2 MB, free: 11.53 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.466, allocations: 4 kB / 480.2 MB, free: 11.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000787/0.4668, allocations: 313.4 kB / 480.5 MB, free: 11.31 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003538/0.4672, allocations: 82.27 kB / 480.6 MB, free: 11.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00413/0.4713, allocations: 3.189 MB / 483.8 MB, free: 8.711 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004889/0.4718, allocations: 51.58 kB / 483.9 MB, free: 8.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.996e-05/0.4719, allocations: 24 kB / 483.9 MB, free: 8.637 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 (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.0002083/0.4721, allocations: 136.8 kB / 484 MB, free: 8.496 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/0.4723, allocations: 75.16 kB / 484.1 MB, free: 8.422 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001774/0.4725, allocations: 78.91 kB / 484.2 MB, free: 8.34 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.319e-05/0.4725, allocations: 15.94 kB / 484.2 MB, free: 8.324 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.4725, allocations: 0 / 484.2 MB, free: 8.324 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.4725, allocations: 7.984 kB / 484.2 MB, free: 8.316 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002506/0.475, allocations: 1.703 MB / 485.9 MB, free: 6.574 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.4751, allocations: 3.906 kB / 485.9 MB, free: 6.57 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003275/0.4754, allocations: 71.89 kB / 486 MB, free: 6.5 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008052/0.4762, allocations: 296.7 kB / 486.3 MB, free: 6.207 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.599e-05/0.4763, allocations: 0 / 486.3 MB, free: 6.207 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004378/0.4806, allocations: 3.194 MB / 489.5 MB, free: 2.898 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.4807, allocations: 4 kB / 489.5 MB, free: 2.895 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001911/0.4826, allocations: 1.201 MB / 490.7 MB, free: 1.676 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002432/0.485, allocations: 1.956 MB / 492.6 MB, free: 15.7 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003765/0.4854, allocations: 236.1 kB / 492.9 MB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001248/0.4856, allocations: 11.91 kB / 492.9 MB, free: 15.44 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004648/0.486, allocations: 23.97 kB / 492.9 MB, free: 15.41 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001742/0.4862, allocations: 76.55 kB / 493 MB, free: 15.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.248e-05/0.4863, allocations: 20 kB / 493 MB, free: 15.32 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0004034/0.4867, allocations: 322.9 kB / 493.3 MB, free: 15.01 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002409/0.4891, allocations: 402.8 kB / 493.7 MB, free: 14.61 MB / 346.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.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 (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.0002059/0.4893, allocations: 122.9 kB / 493.8 MB, free: 14.48 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002494/0.4918, allocations: 1.439 MB / 495.2 MB, free: 13.01 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.4919, allocations: 4 kB / 495.3 MB, free: 13 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008747/0.4927, allocations: 0.538 MB / 495.8 MB, free: 12.46 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005946/0.4933, allocations: 115.3 kB / 495.9 MB, free: 12.35 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002968/0.4963, allocations: 1.164 MB / 497.1 MB, free: 11.16 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006799/0.497, allocations: 1.034 MB / 498.1 MB, free: 10.09 MB / 346.7 MB Notification: Performance of SimCode: time 3.8e-07/0.497, allocations: 4 kB / 498.1 MB, free: 10.09 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.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_R_res.mat does not exist to compare? outputFormat=mat