Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_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.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|fundamentalWaveCurrent.mean1.y|fundamentalWaveCurrent.mean2.y|fundamentalWaveVoltage.mean1.y|fundamentalWaveVoltage.mean2.y|inverter.ac.v|inverter.ac.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL") translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|fundamentalWaveCurrent.mean1.y|fundamentalWaveCurrent.mean2.y|fundamentalWaveVoltage.mean1.y|fundamentalWaveVoltage.mean2.y|inverter.ac.v|inverter.ac.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 176.6 kB / 17.4 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.279/1.279, allocations: 223.3 MB / 241.4 MB, free: 9.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008257/0.0008256, allocations: 105.4 kB / 292.6 MB, free: 10.58 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003191/0.0003191, allocations: 12 kB / 352.4 MB, free: 14.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1962/0.1965, allocations: 50.39 MB / 402.8 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09327/0.2898, allocations: 86.96 MB / 489.7 MB, free: 9.359 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000221/0.2901, allocations: 83.95 kB / 489.8 MB, free: 9.277 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03493/0.325, allocations: 13 MB / 0.491 GB, free: 12.21 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3251, allocations: 0 / 0.491 GB, free: 12.21 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.714e-05/0.3251, allocations: 16 kB / 0.491 GB, free: 12.19 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.002081/0.3272, allocations: 1.078 MB / 0.4921 GB, free: 11.04 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.3273, allocations: 12.03 kB / 0.4921 GB, free: 11.03 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001895/0.3275, allocations: 99.8 kB / 0.4922 GB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008247/0.3283, allocations: 0.5598 MB / 0.4927 GB, free: 10.33 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.949e-05/0.3284, allocations: 58.38 kB / 0.4928 GB, free: 10.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001064/0.3285, allocations: 72.38 kB / 0.4929 GB, free: 10.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001429/0.3299, allocations: 0.7985 MB / 0.4937 GB, free: 9.379 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.42e-05/0.3299, allocations: 192 / 0.4937 GB, free: 9.379 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.265e-05/0.33, allocations: 35.92 kB / 0.4937 GB, free: 9.344 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.5e-05/0.33, allocations: 16 kB / 0.4937 GB, free: 9.328 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001343/0.3314, allocations: 0.6246 MB / 0.4943 GB, free: 8.703 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004108/0.3355, allocations: 2.752 MB / 0.497 GB, free: 5.844 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001179/0.3367, allocations: 0.5835 MB / 0.4976 GB, free: 5.25 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006251/0.3373, allocations: 330.4 kB / 0.4979 GB, free: 4.926 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.938e-05/0.3374, allocations: 12.53 kB / 0.4979 GB, free: 4.914 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008115/0.3382, allocations: 473.7 kB / 0.4983 GB, free: 4.438 MB / 378.7 MB Notification: Performance of pre-optimization done (n=69): time 2.435e-06/0.3382, allocations: 0 / 0.4983 GB, free: 4.438 MB / 378.7 MB Notification: Performance of matching and sorting (n=69): time 0.003102/0.3413, allocations: 1.257 MB / 0.4996 GB, free: 3.152 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.019e-05/0.3414, allocations: 119.4 kB / 0.4997 GB, free: 3.012 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006511/0.3421, allocations: 0.5418 MB / 0.5002 GB, free: 2.461 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.375e-05/0.3422, allocations: 41.7 kB / 0.5003 GB, free: 2.414 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002602/0.3424, allocations: 344.5 kB / 0.5006 GB, free: 2.07 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001829/0.3426, allocations: 209.1 kB / 0.5008 GB, free: 1.863 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.692e-05/0.3427, allocations: 19.94 kB / 0.5008 GB, free: 1.844 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.3428, allocations: 374.8 kB / 0.5012 GB, free: 1.469 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005498/0.3434, allocations: 253.9 kB / 0.5014 GB, free: 1.219 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006711/0.3441, allocations: 438 kB / 0.5018 GB, free: 0.7188 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.157/0.5011, allocations: 0.6766 MB / 0.5025 GB, free: 94.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.218e-05/0.5011, allocations: 1.688 kB / 0.5025 GB, free: 94.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001999/0.5031, allocations: 0.8724 MB / 0.5033 GB, free: 94.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000102/0.5032, allocations: 259.5 kB / 0.5036 GB, free: 94.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.363e-05/0.5033, allocations: 5.688 kB / 0.5036 GB, free: 94.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004533/0.5037, allocations: 148.4 kB / 0.5037 GB, free: 94.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005324/0.5043, allocations: 127.4 kB / 0.5039 GB, free: 94.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002365/0.5066, allocations: 2.292 MB / 0.5061 GB, free: 93.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005269/0.5072, allocations: 100.5 kB / 0.5062 GB, free: 93.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.004e-05/0.5073, allocations: 30.2 kB / 0.5062 GB, free: 93.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.31e-06/0.5073, allocations: 3.562 kB / 0.5062 GB, free: 93.09 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001471/0.5087, allocations: 0.7708 MB / 0.507 GB, free: 93.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.5088, allocations: 4.844 kB / 0.507 GB, free: 93.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003632/0.5091, allocations: 145.1 kB / 0.5071 GB, free: 93.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005045/0.5096, allocations: 128.6 kB / 0.5072 GB, free: 93.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002148/0.5118, allocations: 2.294 MB / 0.5095 GB, free: 91.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004512/0.5123, allocations: 83.97 kB / 0.5096 GB, free: 91.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.002e-05/0.5123, allocations: 33.92 kB / 0.5096 GB, free: 91.7 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWaveCurrent.mean1.y_last,fundamentalWaveCurrent.mean1.y_last,$PRE.fundamentalWaveCurrent.mean2.y_last,fundamentalWaveCurrent.mean2.y_last,$PRE.fundamentalWaveVoltage.mean1.y_last,fundamentalWaveVoltage.mean1.y_last,$PRE.fundamentalWaveVoltage.mean2.y_last,fundamentalWaveVoltage.mean2.y_last,$whenCondition6,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition5,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.fire_n,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.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 (74): * Single equations (assignments): 72 * 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 {4 13} Notification: Performance of prepare postOptimizeDAE: time 0.0003456/0.5127, allocations: 305.7 kB / 0.5099 GB, free: 91.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.524e-05/0.5128, allocations: 81.19 kB / 0.51 GB, free: 91.46 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001315/0.5141, allocations: 0.7758 MB / 0.5107 GB, free: 91.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.5141, allocations: 6.719 kB / 0.5107 GB, free: 91.39 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.654e-06/0.5141, allocations: 0 / 0.5107 GB, free: 91.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.5141, allocations: 7.234 kB / 0.5107 GB, free: 91.39 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001975/0.5161, allocations: 1.599 MB / 0.5123 GB, free: 90.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.5161, allocations: 0 / 0.5123 GB, free: 90.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000403/0.5165, allocations: 95.94 kB / 0.5124 GB, free: 90.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003037/0.5168, allocations: 143.4 kB / 0.5125 GB, free: 90.68 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.001e-05/0.5169, allocations: 14.2 kB / 0.5125 GB, free: 90.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001903/0.5188, allocations: 2.278 MB / 0.5148 GB, free: 88.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.5188, allocations: 3.062 kB / 0.5148 GB, free: 88.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001731/0.5206, allocations: 1.201 MB / 0.5159 GB, free: 88.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001964/0.5208, allocations: 205.5 kB / 0.5161 GB, free: 88.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.329e-05/0.5209, allocations: 15.84 kB / 0.5161 GB, free: 88.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004127/0.5213, allocations: 56.48 kB / 0.5162 GB, free: 88.12 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001413/0.5214, allocations: 75.95 kB / 0.5163 GB, free: 88.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.921e-05/0.5215, allocations: 19.34 kB / 0.5163 GB, free: 88.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003399/0.5218, allocations: 370.9 kB / 0.5166 GB, free: 87.92 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5218, allocations: 0 / 0.5166 GB, free: 87.92 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001028/0.5229, allocations: 369.4 kB / 0.517 GB, free: 87.86 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,inductor.i) * Number of discrete variables: 22 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.fire_n,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.y_last,fundamentalWaveVoltage.mean2.y_last,fundamentalWaveCurrent.mean1.y_last,fundamentalWaveCurrent.mean2.y_last) * Number of discrete states: 6 (signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,signalPWM.zeroOrderHold.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 44 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001811/0.5231, allocations: 146.6 kB / 0.5171 GB, free: 87.76 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002152/0.5252, allocations: 1.514 MB / 0.5186 GB, free: 86.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5252, allocations: 0 / 0.5186 GB, free: 86.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007311/0.526, allocations: 0.539 MB / 0.5191 GB, free: 86.71 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006772/0.5267, allocations: 115.5 kB / 0.5192 GB, free: 86.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0021/0.5288, allocations: 1.702 MB / 0.5209 GB, free: 85.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003465/0.5291, allocations: 0.9539 MB / 0.5218 GB, free: 84.96 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003846/0.5295, allocations: 95.31 kB / 0.5219 GB, free: 84.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001224/0.5296, allocations: 51.19 kB / 0.522 GB, free: 84.95 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.5297, allocations: 0 / 0.522 GB, free: 84.95 MB / 378.7 MB Notification: Performance of Templates: time 0.01451/0.5442, allocations: 10.56 MB / 0.5323 GB, free: 78.69 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.sim & ./Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/PowerConverters/Examples/DCAC/SinglePhaseTwoLevel/SinglePhaseTwoLevel_RL/SinglePhaseTwoLevel_RL.csv","../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches