Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_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_TrianglePWM_RL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_TrianglePWM_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_TrianglePWM_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.0009695/0.0009695, allocations: 199.2 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.106/1.106, allocations: 225.5 MB / 234.4 MB, free: 3.418 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009224/0.0009224, allocations: 95.8 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08921/0.09016, allocations: 56.92 MB / 343.3 MB, free: 8.629 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0812/0.1714, allocations: 51.48 MB / 394.7 MB, free: 5.098 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.21/0.3814, allocations: 88.56 MB / 483.3 MB, free: 4.414 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000189/0.3817, allocations: 88.05 kB / 483.4 MB, free: 4.367 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: 233 * Number of variables: 233 Notification: Performance of Generate backend data structure: time 0.04372/0.4254, allocations: 19.77 MB / 0.4914 GB, free: 3.898 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.197e-05/0.4254, allocations: 8 kB / 0.4914 GB, free: 3.891 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001745/0.4256, allocations: 118.6 kB / 0.4915 GB, free: 3.773 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009005/0.4265, allocations: 0.6788 MB / 0.4921 GB, free: 3.219 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.981e-05/0.4266, allocations: 28 kB / 0.4922 GB, free: 3.191 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/0.4267, allocations: 58.38 kB / 0.4922 GB, free: 3.137 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001124/0.4278, allocations: 0.658 MB / 0.4929 GB, free: 2.758 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001321/0.4291, allocations: 0.8352 MB / 0.4937 GB, free: 2.129 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.229e-05/0.4292, allocations: 0 / 0.4937 GB, free: 2.129 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.819e-05/0.4292, allocations: 4 kB / 0.4937 GB, free: 2.125 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.007e-05/0.4293, allocations: 27.84 kB / 0.4937 GB, free: 2.098 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004345/0.4336, allocations: 3.704 MB / 0.4973 GB, free: 15.21 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009603/0.4346, allocations: 0.6682 MB / 0.498 GB, free: 14.78 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006975/0.4353, allocations: 464.5 kB / 0.4984 GB, free: 14.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.131e-05/0.4354, allocations: 12.78 kB / 0.4984 GB, free: 14.47 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006189/0.436, allocations: 428.1 kB / 0.4988 GB, free: 14.17 MB / 378.7 MB Notification: Performance of pre-optimization done (n=88): time 1.964e-06/0.436, allocations: 0 / 0.4988 GB, free: 14.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=88): time 0.001222/0.4372, allocations: 0.7433 MB / 0.4996 GB, free: 13.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.999e-05/0.4373, allocations: 123.6 kB / 0.4997 GB, free: 13.38 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005005/0.4378, allocations: 466.1 kB / 0.5001 GB, free: 12.92 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.335e-05/0.4379, allocations: 33.7 kB / 0.5002 GB, free: 12.88 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001637/0.438, allocations: 312.5 kB / 0.5005 GB, free: 12.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001711/0.4382, allocations: 252.3 kB / 0.5007 GB, free: 12.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.566e-05/0.4383, allocations: 4 kB / 0.5007 GB, free: 12.31 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.4384, allocations: 382.8 kB / 0.5011 GB, free: 11.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004078/0.4388, allocations: 238 kB / 0.5013 GB, free: 11.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004816/0.4393, allocations: 405.7 kB / 0.5017 GB, free: 11.24 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000401/0.4397, allocations: 255.1 kB / 0.5019 GB, free: 10.99 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.4397, allocations: 8 kB / 0.5019 GB, free: 10.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.001276/0.441, allocations: 0.833 MB / 0.5028 GB, free: 10.13 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000404/0.4414, allocations: 1.571 MB / 0.5043 GB, free: 8.441 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.4414, allocations: 4 kB / 0.5043 GB, free: 8.438 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007442/0.4422, allocations: 280.2 kB / 0.5046 GB, free: 8.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005316/0.4427, allocations: 143.7 kB / 0.5047 GB, free: 8.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004038/0.4468, allocations: 4.02 MB / 0.5086 GB, free: 3.773 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005446/0.4473, allocations: 87.62 kB / 0.5087 GB, free: 3.688 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.076e-05/0.4474, allocations: 35.91 kB / 0.5087 GB, free: 3.652 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.37e-06/0.4474, allocations: 8 kB / 0.5087 GB, free: 3.645 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001161/0.4486, allocations: 0.7307 MB / 0.5095 GB, free: 2.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.4486, allocations: 8.562 kB / 0.5095 GB, free: 2.902 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006673/0.4493, allocations: 288.3 kB / 0.5097 GB, free: 2.617 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004744/0.4497, allocations: 123.8 kB / 0.5099 GB, free: 2.496 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003949/0.4537, allocations: 4.026 MB / 0.5138 GB, free: 14.24 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004983/0.4542, allocations: 75.69 kB / 0.5139 GB, free: 14.17 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.57e-05/0.4543, allocations: 28 kB / 0.5139 GB, free: 14.14 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 38 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y_last,meanCurrent.y_last,$PRE.meanVoltage.y_last,meanVoltage.y_last,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$whenCondition3,$whenCondition2,$whenCondition1,zeroOrderHold.sampleTrigger,$PRE.zeroOrderHold.ySample,$whenCondition5,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition4,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.triangle.T_start,signalPWM.triangle.T_start,$PRE.signalPWM.triangle.count,signalPWM.triangle.count,zeroOrderHold.ySample) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 74 * 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.0001822/0.4545, allocations: 163.5 kB / 0.514 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.4546, allocations: 75.06 kB / 0.5141 GB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001741/0.4548, allocations: 79.78 kB / 0.5142 GB, free: 13.83 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.954e-06/0.4548, allocations: 8 kB / 0.5142 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.4548, allocations: 0 / 0.5142 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/0.4548, allocations: 7.984 kB / 0.5142 GB, free: 13.81 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00242/0.4572, allocations: 1.797 MB / 0.516 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.4572, allocations: 4 kB / 0.516 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004609/0.4577, allocations: 103.8 kB / 0.5161 GB, free: 11.86 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006643/0.4584, allocations: 273.5 kB / 0.5163 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.185e-05/0.4584, allocations: 15.89 kB / 0.5163 GB, free: 11.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00393/0.4624, allocations: 4.005 MB / 0.5203 GB, free: 7.336 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.4624, allocations: 0 / 0.5203 GB, free: 7.336 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001786/0.4642, allocations: 1.268 MB / 0.5215 GB, free: 6.043 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002375/0.4666, allocations: 2.051 MB / 0.5235 GB, free: 3.969 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003304/0.4669, allocations: 252 kB / 0.5237 GB, free: 3.703 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001128/0.467, allocations: 9.312 kB / 0.5237 GB, free: 3.695 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005032/0.4675, allocations: 51.95 kB / 0.5238 GB, free: 3.645 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00017/0.4677, allocations: 76.66 kB / 0.5239 GB, free: 3.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.4e-05/0.4678, allocations: 20 kB / 0.5239 GB, free: 3.551 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0003833/0.4682, allocations: 342.9 kB / 0.5242 GB, free: 3.215 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002281/0.4705, allocations: 422.7 kB / 0.5246 GB, free: 2.801 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: 30 (signalPWM.zeroOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition5,$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.triangle.T_start,signalPWM.triangle.count,meanCurrent.y_last,meanVoltage.y_last,zeroOrderHold.firstTrigger,zeroOrderHold.ySample) * Number of discrete states: 5 (signalPWM.triangle.count,meanCurrent.x,meanVoltage.x,zeroOrderHold.ySample,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0001898/0.4707, allocations: 139.2 kB / 0.5247 GB, free: 2.66 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002393/0.4731, allocations: 1.684 MB / 0.5264 GB, free: 0.9258 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.4731, allocations: 0 / 0.5264 GB, free: 0.9258 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008422/0.4739, allocations: 0.6314 MB / 0.527 GB, free: 276 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005766/0.4745, allocations: 127.4 kB / 0.5271 GB, free: 156 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002786/0.4773, allocations: 1.278 MB / 0.5284 GB, free: 14.84 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006469/0.478, allocations: 1.078 MB / 0.5294 GB, free: 13.74 MB / 410.7 MB Notification: Performance of SimCode: time 3.11e-07/0.478, allocations: 0 / 0.5294 GB, free: 13.74 MB / 410.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_TrianglePWM_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_TrianglePWM_RL.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL.pipe 2>&1)