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: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|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_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|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_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R") [: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.00137/0.00137, allocations: 196.8 kB / 8.541 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.253/1.253, allocations: 225.5 MB / 234.4 MB, free: 3.324 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009058/0.0009058, allocations: 86.3 kB / 286.3 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.856e-06/9.087e-06, allocations: 0 / 343.2 MB, free: 8.652 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1183, allocations: 51.47 MB / 394.6 MB, free: 5.117 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2562/0.3745, allocations: 88.05 MB / 482.7 MB, free: 5.289 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002115/0.3747, allocations: 87.81 kB / 482.8 MB, free: 5.238 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03539/0.4101, allocations: 15.49 MB / 498.3 MB, free: 8.602 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.58e-05/0.4103, allocations: 20 kB / 498.3 MB, free: 8.582 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.002197/0.4125, allocations: 1.096 MB / 499.4 MB, free: 7.496 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.4125, allocations: 8.031 kB / 499.4 MB, free: 7.488 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000328/0.4129, allocations: 114.6 kB / 499.5 MB, free: 7.375 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001128/0.414, allocations: 0.6449 MB / 0.4884 GB, free: 6.844 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.939e-05/0.4141, allocations: 31.98 kB / 0.4884 GB, free: 6.812 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001396/0.4142, allocations: 52 kB / 0.4885 GB, free: 6.762 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001246/0.4155, allocations: 0.6304 MB / 0.4891 GB, free: 6.398 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001342/0.4168, allocations: 0.804 MB / 0.4899 GB, free: 5.789 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.017e-05/0.4169, allocations: 3.984 kB / 0.4899 GB, free: 5.785 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.024e-05/0.4169, allocations: 7.312 kB / 0.4899 GB, free: 5.781 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.068e-05/0.417, allocations: 24 kB / 0.4899 GB, free: 5.758 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004799/0.4218, allocations: 3.56 MB / 0.4934 GB, free: 2.992 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001074/0.4229, allocations: 0.6428 MB / 0.494 GB, free: 2.574 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006181/0.4235, allocations: 411.5 kB / 0.4944 GB, free: 2.316 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.565e-05/0.4236, allocations: 8.656 kB / 0.4944 GB, free: 2.309 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005826/0.4241, allocations: 394.8 kB / 0.4948 GB, free: 2.035 MB / 362.7 MB Notification: Performance of pre-optimization done (n=81): time 2.995e-06/0.4242, allocations: 0 / 0.4948 GB, free: 2.035 MB / 362.7 MB Notification: Performance of matching and sorting (n=81): time 0.001511/0.4257, allocations: 0.7602 MB / 0.4956 GB, free: 1.496 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.213e-05/0.4257, allocations: 117.2 kB / 0.4957 GB, free: 1.359 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005629/0.4263, allocations: 446.3 kB / 0.4961 GB, free: 1.031 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.571e-05/0.4264, allocations: 33.64 kB / 0.4961 GB, free: 0.9922 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001971/0.4266, allocations: 303.2 kB / 0.4964 GB, free: 0.7227 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001695/0.4268, allocations: 235.6 kB / 0.4966 GB, free: 0.5195 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.423e-05/0.4268, allocations: 0 / 0.4966 GB, free: 0.5195 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.4269, allocations: 371.3 kB / 0.497 GB, free: 180 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004134/0.4274, allocations: 229 kB / 0.4972 GB, free: 15.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004673/0.4278, allocations: 367.6 kB / 0.4976 GB, free: 15.55 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004019/0.4282, allocations: 235.1 kB / 0.4978 GB, free: 15.32 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.636e-06/0.4283, allocations: 8 kB / 0.4978 GB, free: 15.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001267/0.4295, allocations: 0.7833 MB / 0.4986 GB, free: 14.52 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004853/0.43, allocations: 1.31 MB / 0.4998 GB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.4301, allocations: 4 kB / 0.4998 GB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008855/0.4309, allocations: 314.3 kB / 0.5001 GB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004107/0.4314, allocations: 99.88 kB / 0.5002 GB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004571/0.4359, allocations: 3.182 MB / 0.5033 GB, free: 9.406 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005754/0.4365, allocations: 75.41 kB / 0.5034 GB, free: 9.332 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.82e-05/0.4366, allocations: 28 kB / 0.5034 GB, free: 9.305 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.637e-06/0.4366, allocations: 7.938 kB / 0.5034 GB, free: 9.297 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001203/0.4378, allocations: 0.6868 MB / 0.5041 GB, free: 8.605 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.4379, allocations: 4 kB / 0.5041 GB, free: 8.602 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008566/0.4387, allocations: 308.9 kB / 0.5044 GB, free: 8.297 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003536/0.4391, allocations: 91.92 kB / 0.5045 GB, free: 8.207 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004344/0.4434, allocations: 3.167 MB / 0.5076 GB, free: 4.926 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000569/0.444, allocations: 55.5 kB / 0.5077 GB, free: 4.871 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-05/0.4441, allocations: 32 kB / 0.5077 GB, free: 4.84 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.0002429/0.4444, allocations: 142.2 kB / 0.5078 GB, free: 4.695 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001656/0.4446, allocations: 67.16 kB / 0.5079 GB, free: 4.629 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001963/0.4448, allocations: 79.05 kB / 0.508 GB, free: 4.543 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.665e-06/0.4448, allocations: 8 kB / 0.508 GB, free: 4.535 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.4448, allocations: 4 kB / 0.508 GB, free: 4.531 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.4448, allocations: 3.984 kB / 0.508 GB, free: 4.527 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002784/0.4476, allocations: 1.727 MB / 0.5097 GB, free: 2.754 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.4476, allocations: 0 / 0.5097 GB, free: 2.754 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003246/0.4479, allocations: 63.81 kB / 0.5097 GB, free: 2.691 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008063/0.4488, allocations: 300.6 kB / 0.51 GB, free: 2.395 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.899e-05/0.4488, allocations: 7.984 kB / 0.51 GB, free: 2.387 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004193/0.453, allocations: 3.185 MB / 0.5131 GB, free: 15.08 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.453, allocations: 0 / 0.5131 GB, free: 15.08 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001795/0.4548, allocations: 1.205 MB / 0.5143 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003584/0.4552, allocations: 236 kB / 0.5145 GB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001218/0.4554, allocations: 4.062 kB / 0.5145 GB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004331/0.4558, allocations: 29.94 kB / 0.5146 GB, free: 13.58 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001925/0.456, allocations: 76.48 kB / 0.5146 GB, free: 13.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.904e-05/0.4561, allocations: 20 kB / 0.5147 GB, free: 13.48 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0003969/0.4565, allocations: 323 kB / 0.515 GB, free: 13.17 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001154/0.4576, allocations: 402.8 kB / 0.5153 GB, free: 12.78 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.0001869/0.4578, allocations: 123.2 kB / 0.5155 GB, free: 12.65 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002471/0.4603, allocations: 1.446 MB / 0.5169 GB, free: 11.18 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.4603, allocations: 0 / 0.5169 GB, free: 11.18 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000864/0.4612, allocations: 0.5422 MB / 0.5174 GB, free: 10.62 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006304/0.4618, allocations: 114.3 kB / 0.5175 GB, free: 10.52 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002999/0.4648, allocations: 1.176 MB / 0.5187 GB, free: 9.316 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007008/0.4655, allocations: 1.042 MB / 0.5197 GB, free: 8.246 MB / 394.7 MB Notification: Performance of SimCode: time 1.784e-06/0.4656, allocations: 0 / 0.5197 GB, free: 8.246 MB / 394.7 MB Notification: Performance of Templates: time 0.02685/0.4924, allocations: 17.18 MB / 0.5365 GB, free: 7.254 MB / 410.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.makefile (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 & ./Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/PowerConverters/Examples/DCDC/HBridge/HBridge_R/HBridge_R.csv","../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches