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: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|meanCurrent.y|meanVoltage.y|hbridge.dc_n1.v|hbridge.dc_n1.i|hbridge.dc_p1.v|hbridge.dc_p1.i|hbridge.dc_n2.v|hbridge.dc_n2.i|hbridge.dc_p2.v|hbridge.dc_p2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|meanCurrent.y|meanVoltage.y|hbridge.dc_n1.v|hbridge.dc_n1.i|hbridge.dc_p1.v|hbridge.dc_p1.i|hbridge.dc_n2.v|hbridge.dc_n2.i|hbridge.dc_p2.v|hbridge.dc_p2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL") [: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.000949/0.0009491, allocations: 186.1 kB / 8.136 MB, free: 2.199 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.18/1.181, allocations: 221.4 MB / 229.9 MB, free: 2.934 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.0009774/0.0009773, allocations: 102 kB / 280.8 MB, free: 1.305 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.052e-06/6.092e-06, allocations: 0 / 336.5 MB, free: 9.551 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2224/0.2224, allocations: 50.39 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1181/0.3406, allocations: 86.24 MB / 473.2 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003742/0.3411, allocations: 91.88 kB / 473.3 MB, free: 472 kB / 346.7 MB Notification: Performance of FrontEnd: time 0.03803/0.3791, allocations: 15.37 MB / 488.6 MB, free: 1.066 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.757e-05/0.3792, allocations: 20 kB / 488.6 MB, free: 1.047 MB / 362.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.001904/0.3811, allocations: 1.091 MB / 489.7 MB, free: 15.9 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.3812, allocations: 16.03 kB / 489.7 MB, free: 15.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002021/0.3814, allocations: 114.7 kB / 489.9 MB, free: 15.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/0.3824, allocations: 0.6409 MB / 490.5 MB, free: 15.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.575e-05/0.3825, allocations: 28 kB / 490.5 MB, free: 15.06 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.3826, allocations: 63.89 kB / 490.6 MB, free: 15 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001258/0.3839, allocations: 0.6327 MB / 491.2 MB, free: 14.36 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001389/0.3853, allocations: 0.7995 MB / 492 MB, free: 13.52 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.3853, allocations: 0 / 492 MB, free: 13.52 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.348e-05/0.3854, allocations: 11.98 kB / 492 MB, free: 13.51 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.136e-05/0.3854, allocations: 20 kB / 492.1 MB, free: 13.49 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004867/0.3903, allocations: 3.584 MB / 495.6 MB, free: 9.805 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001053/0.3913, allocations: 0.6487 MB / 496.3 MB, free: 9.148 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007268/0.3921, allocations: 446.7 kB / 496.7 MB, free: 8.707 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.524e-05/0.3922, allocations: 8.656 kB / 496.7 MB, free: 8.695 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006382/0.3928, allocations: 403.7 kB / 497.1 MB, free: 8.281 MB / 378.7 MB Notification: Performance of pre-optimization done (n=83): time 2.304e-06/0.3928, allocations: 0 / 497.1 MB, free: 8.281 MB / 378.7 MB Notification: Performance of matching and sorting (n=83): time 0.001305/0.3941, allocations: 0.7067 MB / 497.8 MB, free: 7.562 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.159e-05/0.3942, allocations: 115.6 kB / 497.9 MB, free: 7.426 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005703/0.3948, allocations: 441.9 kB / 498.4 MB, free: 6.988 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.689e-05/0.3948, allocations: 33.7 kB / 498.4 MB, free: 6.949 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002123/0.3951, allocations: 304.3 kB / 498.7 MB, free: 6.645 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001964/0.3953, allocations: 236.6 kB / 498.9 MB, free: 6.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.465e-05/0.3953, allocations: 0 / 498.9 MB, free: 6.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.3955, allocations: 386.7 kB / 499.3 MB, free: 6.023 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004048/0.3959, allocations: 225.8 kB / 499.5 MB, free: 5.805 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004985/0.3964, allocations: 374.8 kB / 499.9 MB, free: 5.387 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004243/0.3968, allocations: 243.1 kB / 0.4884 GB, free: 5.148 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.3968, allocations: 0 / 0.4884 GB, free: 5.148 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.00138/0.3982, allocations: 0.7939 MB / 0.4892 GB, free: 4.344 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000524/0.3988, allocations: 1.302 MB / 0.4905 GB, free: 2.938 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.3988, allocations: 4 kB / 0.4905 GB, free: 2.934 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008623/0.3996, allocations: 285 kB / 0.4907 GB, free: 2.652 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004842/0.4001, allocations: 115.8 kB / 0.4909 GB, free: 2.539 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1185/0.5187, allocations: 4.015 MB / 0.4948 GB, free: 130.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007172/0.5195, allocations: 74.64 kB / 0.4948 GB, free: 130.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.909e-05/0.5195, allocations: 28.84 kB / 0.4949 GB, free: 130.4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.227e-06/0.5195, allocations: 3.812 kB / 0.4949 GB, free: 130.4 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001095/0.5207, allocations: 0.6947 MB / 0.4956 GB, free: 130.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.5207, allocations: 3.344 kB / 0.4956 GB, free: 130.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006736/0.5213, allocations: 286.6 kB / 0.4958 GB, free: 130.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004106/0.5218, allocations: 106.9 kB / 0.4959 GB, free: 130.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003585/0.5254, allocations: 4.01 MB / 0.4998 GB, free: 128 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005677/0.5259, allocations: 55.84 kB / 0.4999 GB, free: 128 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.053e-05/0.526, allocations: 28.59 kB / 0.4999 GB, free: 128 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.0002345/0.5263, allocations: 141.6 kB / 0.5001 GB, free: 127.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.5264, allocations: 71.22 kB / 0.5001 GB, free: 127.9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001897/0.5266, allocations: 77.88 kB / 0.5002 GB, free: 127.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.5266, allocations: 7.75 kB / 0.5002 GB, free: 127.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.5266, allocations: 0 / 0.5002 GB, free: 127.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.5266, allocations: 3.703 kB / 0.5002 GB, free: 127.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002237/0.5289, allocations: 1.729 MB / 0.5019 GB, free: 127.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.5289, allocations: 0 / 0.5019 GB, free: 127.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003711/0.5293, allocations: 80.44 kB / 0.502 GB, free: 127.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007083/0.53, allocations: 281.7 kB / 0.5022 GB, free: 127.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.66e-05/0.53, allocations: 6.422 kB / 0.5023 GB, free: 127.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003585/0.5336, allocations: 4.011 MB / 0.5062 GB, free: 125.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.5337, allocations: 0 / 0.5062 GB, free: 125.1 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001534/0.5352, allocations: 1.21 MB / 0.5074 GB, free: 124.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000276/0.5355, allocations: 241.8 kB / 0.5076 GB, free: 124.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000104/0.5356, allocations: 9.922 kB / 0.5076 GB, free: 124.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004248/0.536, allocations: 31.59 kB / 0.5076 GB, free: 124.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00015/0.5362, allocations: 69.5 kB / 0.5077 GB, free: 124.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.353e-05/0.5362, allocations: 19.31 kB / 0.5077 GB, free: 124.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003249/0.5366, allocations: 326.6 kB / 0.508 GB, free: 124.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001081/0.5377, allocations: 410.7 kB / 0.5084 GB, free: 124.6 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.0001752/0.5378, allocations: 125.3 kB / 0.5085 GB, free: 124.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002068/0.5399, allocations: 1.605 MB / 0.5101 GB, free: 124 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.5399, allocations: 3.625 kB / 0.5101 GB, free: 124 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007452/0.5407, allocations: 0.6228 MB / 0.5107 GB, free: 123.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005655/0.5413, allocations: 114.3 kB / 0.5108 GB, free: 123.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002606/0.5439, allocations: 1.222 MB / 0.512 GB, free: 123.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004869/0.5444, allocations: 1.05 MB / 0.513 GB, free: 122.7 MB / 378.7 MB Notification: Performance of SimCode: time 8.41e-07/0.5444, allocations: 0 / 0.513 GB, free: 122.7 MB / 378.7 MB Notification: Performance of Templates: time 0.02547/0.5699, allocations: 16.76 MB / 0.5294 GB, free: 120 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/PowerConverters/Examples/DCDC/HBridge/HBridge_RL/HBridge_RL.csv","../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches