Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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: 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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001478/0.001483, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.981/1.981, allocations: 205.4 MB / 222.5 MB, free: 9.137 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001127/0.001127, allocations: 100.3 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003792/0.0003792, allocations: 8 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3723/0.3727, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1349/0.5077, allocations: 85.69 MB / 460.2 MB, free: 11.08 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003403/0.5081, allocations: 91.94 kB / 460.3 MB, free: 10.99 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0617/0.5698, allocations: 15.17 MB / 475.5 MB, free: 11.72 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.5698, allocations: 0 / 475.5 MB, free: 11.72 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001029/0.57, allocations: 24.16 kB / 475.5 MB, free: 11.7 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: 216 * Number of variables: 216 Notification: Performance of Generate backend data structure: time 0.004027/0.574, allocations: 1.144 MB / 476.7 MB, free: 10.48 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.5741, allocations: 8.031 kB / 476.7 MB, free: 10.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004944/0.5746, allocations: 114.6 kB / 476.8 MB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001826/0.5764, allocations: 0.6409 MB / 477.4 MB, free: 9.684 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.832e-05/0.5766, allocations: 66 kB / 477.5 MB, free: 9.617 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002696/0.5768, allocations: 87.98 kB / 477.6 MB, free: 9.531 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002956/0.5798, allocations: 0.9475 MB / 478.5 MB, free: 8.539 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.452e-05/0.5799, allocations: 4 kB / 478.5 MB, free: 8.535 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001486/0.5801, allocations: 35.94 kB / 478.6 MB, free: 8.5 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.835e-05/0.5801, allocations: 20 kB / 478.6 MB, free: 8.48 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002726/0.5828, allocations: 0.7301 MB / 479.3 MB, free: 7.746 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00824/0.5911, allocations: 3.72 MB / 483 MB, free: 3.914 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002553/0.5937, allocations: 0.7991 MB / 483.8 MB, free: 3.105 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001039/0.5939, allocations: 8.656 kB / 483.8 MB, free: 3.098 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001382/0.5953, allocations: 459.2 kB / 484.3 MB, free: 2.629 MB / 362.7 MB Notification: Performance of pre-optimization done (n=81): time 4.208e-06/0.5953, allocations: 0 / 484.3 MB, free: 2.629 MB / 362.7 MB Notification: Performance of matching and sorting (n=81): time 0.009425/0.6048, allocations: 1.705 MB / 486 MB, free: 0.8984 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.916e-05/0.6049, allocations: 123.4 kB / 486.1 MB, free: 0.75 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001505/0.6064, allocations: 0.6011 MB / 486.7 MB, free: 148 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001971/0.6067, allocations: 49.7 kB / 486.8 MB, free: 92 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004238/0.6071, allocations: 379.1 kB / 487.1 MB, free: 15.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003885/0.6075, allocations: 244.5 kB / 487.4 MB, free: 15.47 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.548e-05/0.6076, allocations: 16 kB / 487.4 MB, free: 15.46 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.6078, allocations: 342.8 kB / 487.7 MB, free: 15.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001015/0.6088, allocations: 261.9 kB / 488 MB, free: 14.86 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001101/0.61, allocations: 417.1 kB / 488.4 MB, free: 14.4 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009511/0.6109, allocations: 304.9 kB / 488.7 MB, free: 14.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.611, allocations: 3.938 kB / 488.7 MB, free: 14.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002799/0.6138, allocations: 0.9015 MB / 489.6 MB, free: 13.17 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006583/0.6145, allocations: 1.339 MB / 490.9 MB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/0.6145, allocations: 8 kB / 490.9 MB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00153/0.616, allocations: 296.6 kB / 491.2 MB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000765/0.6168, allocations: 95.83 kB / 491.3 MB, free: 11.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008332/0.6252, allocations: 3.584 MB / 494.9 MB, free: 7.609 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001061/0.6263, allocations: 95.34 kB / 495 MB, free: 7.516 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.118e-05/0.6264, allocations: 24 kB / 495 MB, free: 7.492 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.6264, allocations: 4 kB / 495 MB, free: 7.488 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002456/0.6289, allocations: 0.8495 MB / 495.9 MB, free: 6.629 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/0.6289, allocations: 4 kB / 495.9 MB, free: 6.625 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001257/0.6302, allocations: 301.7 kB / 496.2 MB, free: 6.328 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006444/0.6308, allocations: 95.83 kB / 496.3 MB, free: 6.234 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007957/0.6388, allocations: 3.532 MB / 499.8 MB, free: 2.566 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007565/0.6396, allocations: 71.52 kB / 499.9 MB, free: 2.496 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.409e-05/0.6397, allocations: 31.98 kB / 499.9 MB, free: 2.465 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,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 62 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0008533/0.6406, allocations: 333 kB / 0.4885 GB, free: 2.129 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003026/0.6409, allocations: 90.92 kB / 0.4886 GB, free: 2.039 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003208/0.6412, allocations: 100.4 kB / 0.4887 GB, free: 1.934 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.335e-05/0.6413, allocations: 8 kB / 0.4887 GB, free: 1.926 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.6413, allocations: 0 / 0.4887 GB, free: 1.926 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/0.6413, allocations: 3.984 kB / 0.4887 GB, free: 1.922 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2735/0.9148, allocations: 1.92 MB / 0.4906 GB, free: 103.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.521e-05/0.9149, allocations: 0 / 0.4906 GB, free: 103.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006724/0.9155, allocations: 69.42 kB / 0.4906 GB, free: 103.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001578/0.9171, allocations: 292.9 kB / 0.4909 GB, free: 103.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001125/0.9173, allocations: 15.92 kB / 0.4909 GB, free: 103.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007668/0.925, allocations: 3.571 MB / 0.4944 GB, free: 102.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.925, allocations: 2.344 kB / 0.4944 GB, free: 102.4 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0035/0.9285, allocations: 1.327 MB / 0.4957 GB, free: 102.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005485/0.9291, allocations: 251.4 kB / 0.496 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001711/0.9293, allocations: 16.09 kB / 0.496 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007811/0.9301, allocations: 40.17 kB / 0.496 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003207/0.9304, allocations: 85.77 kB / 0.4961 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.505e-05/0.9305, allocations: 22.28 kB / 0.4961 GB, free: 102.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009663/0.9315, allocations: 485.6 kB / 0.4966 GB, free: 102.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.9315, allocations: 0 / 0.4966 GB, free: 102.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001924/0.9334, allocations: 433.9 kB / 0.497 GB, free: 102 MB / 378.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 43 * 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 24} Notification: Performance of Backend phase and start with SimCode phase: time 0.000291/0.9338, allocations: 140.9 kB / 0.4971 GB, free: 102 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004609/0.9384, allocations: 1.797 MB / 0.4989 GB, free: 101.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.142e-05/0.9384, allocations: 4.688 kB / 0.4989 GB, free: 101.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001796/0.9403, allocations: 0.6598 MB / 0.4995 GB, free: 101.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001259/0.9416, allocations: 159.3 kB / 0.4997 GB, free: 101.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005087/0.9467, allocations: 1.912 MB / 0.5016 GB, free: 100.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005908/0.9473, allocations: 1.019 MB / 0.5025 GB, free: 99.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000301/0.9476, allocations: 55.67 kB / 0.5026 GB, free: 99.59 MB / 378.7 MB Notification: Performance of SimCode: time 1.252e-06/0.9476, allocations: 0 / 0.5026 GB, free: 99.59 MB / 378.7 MB Notification: Performance of Templates: time 0.02674/0.9744, allocations: 14.71 MB / 0.517 GB, free: 96.03 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/PowerConverters/Examples/DCDC/HBridge/HBridge_R/HBridge_R.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches