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_R.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_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|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_R") translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|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_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 179.9 kB / 16.38 MB, free: 5.766 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.323/1.323, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.0007463/0.0007463, allocations: 90.42 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002752/0.0002751, allocations: 15.92 kB / 351.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1878/0.188, allocations: 50.41 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09521/0.2833, allocations: 86.56 MB / 488.1 MB, free: 9.91 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002846/0.2836, allocations: 87.94 kB / 488.2 MB, free: 9.824 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03439/0.318, allocations: 12.65 MB / 0.4891 GB, free: 13.1 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.3181, allocations: 0 / 0.4891 GB, free: 13.1 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.514e-05/0.3182, allocations: 16 kB / 0.4891 GB, free: 13.08 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: 171 * Number of variables: 171 Notification: Performance of Generate backend data structure: time 0.001898/0.3201, allocations: 1.07 MB / 0.4901 GB, free: 11.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.3201, allocations: 8.031 kB / 0.4901 GB, free: 11.94 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001525/0.3203, allocations: 94.88 kB / 0.4902 GB, free: 11.84 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007657/0.321, allocations: 0.5356 MB / 0.4908 GB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.317e-05/0.3211, allocations: 53.95 kB / 0.4908 GB, free: 11.21 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.3212, allocations: 75.98 kB / 0.4909 GB, free: 11.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001315/0.3225, allocations: 0.7693 MB / 0.4916 GB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.237e-05/0.3226, allocations: 4 kB / 0.4916 GB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.001e-05/0.3226, allocations: 27.98 kB / 0.4917 GB, free: 10.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.525e-05/0.3227, allocations: 16 kB / 0.4917 GB, free: 10.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001228/0.3239, allocations: 0.6024 MB / 0.4923 GB, free: 9.695 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004025/0.3279, allocations: 2.672 MB / 0.4949 GB, free: 6.922 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001215/0.3292, allocations: 0.6171 MB / 0.4955 GB, free: 6.293 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.864e-05/0.3292, allocations: 16.48 kB / 0.4955 GB, free: 6.277 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008702/0.3301, allocations: 461.3 kB / 0.4959 GB, free: 5.816 MB / 378.7 MB Notification: Performance of pre-optimization done (n=67): time 2.605e-06/0.3301, allocations: 0 / 0.4959 GB, free: 5.816 MB / 378.7 MB Notification: Performance of matching and sorting (n=67): time 0.003122/0.3333, allocations: 1.254 MB / 0.4972 GB, free: 4.535 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.522e-05/0.3334, allocations: 119.4 kB / 0.4973 GB, free: 4.395 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005796/0.3339, allocations: 470.2 kB / 0.4977 GB, free: 3.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.929e-05/0.334, allocations: 45.7 kB / 0.4978 GB, free: 3.879 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002606/0.3343, allocations: 340.4 kB / 0.4981 GB, free: 3.543 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001502/0.3344, allocations: 201.2 kB / 0.4983 GB, free: 3.344 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.147e-05/0.3345, allocations: 16 kB / 0.4983 GB, free: 3.328 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.3346, allocations: 374.7 kB / 0.4987 GB, free: 2.953 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005419/0.3352, allocations: 253.9 kB / 0.4989 GB, free: 2.703 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006279/0.3358, allocations: 429.8 kB / 0.4993 GB, free: 2.215 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005861/0.3364, allocations: 298.4 kB / 0.4996 GB, free: 1.914 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.3364, allocations: 4 kB / 0.4996 GB, free: 1.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001603/0.3381, allocations: 0.8648 MB / 0.5004 GB, free: 1.031 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.1617/0.4997, allocations: 1.852 MB / 0.5022 GB, free: 94.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.986e-05/0.4998, allocations: 4.938 kB / 0.5023 GB, free: 94.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007355/0.5005, allocations: 153.4 kB / 0.5024 GB, free: 94.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007014/0.5013, allocations: 124.5 kB / 0.5025 GB, free: 94.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003106/0.5044, allocations: 2.359 MB / 0.5048 GB, free: 93.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006654/0.5051, allocations: 94.94 kB / 0.5049 GB, free: 93.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.114e-05/0.5051, allocations: 29.67 kB / 0.5049 GB, free: 93.13 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.848e-06/0.5051, allocations: 4.625 kB / 0.5049 GB, free: 93.13 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001493/0.5066, allocations: 0.7576 MB / 0.5057 GB, free: 93.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.697e-06/0.5067, allocations: 4.781 kB / 0.5057 GB, free: 93.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003926/0.5071, allocations: 152.4 kB / 0.5058 GB, free: 93.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005032/0.5076, allocations: 121 kB / 0.5059 GB, free: 93.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002511/0.5101, allocations: 2.354 MB / 0.5082 GB, free: 91.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005873/0.5107, allocations: 87.12 kB / 0.5083 GB, free: 91.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.836e-05/0.5108, allocations: 29.58 kB / 0.5084 GB, free: 91.76 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 (70): * Single equations (assignments): 68 * 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 14} Notification: Performance of prepare postOptimizeDAE: time 0.0004376/0.5112, allocations: 310.3 kB / 0.5087 GB, free: 91.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.598e-05/0.5113, allocations: 71.8 kB / 0.5087 GB, free: 91.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001332/0.5127, allocations: 0.7727 MB / 0.5095 GB, free: 91.47 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.563e-06/0.5127, allocations: 10.89 kB / 0.5095 GB, free: 91.47 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/0.5127, allocations: 0 / 0.5095 GB, free: 91.47 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.5127, allocations: 5.844 kB / 0.5095 GB, free: 91.47 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002085/0.5148, allocations: 1.575 MB / 0.511 GB, free: 90.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.5148, allocations: 3.516 kB / 0.511 GB, free: 90.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003931/0.5152, allocations: 86.38 kB / 0.5111 GB, free: 90.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003616/0.5156, allocations: 150.8 kB / 0.5113 GB, free: 90.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.231e-05/0.5156, allocations: 14.91 kB / 0.5113 GB, free: 90.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002025/0.5177, allocations: 2.357 MB / 0.5136 GB, free: 89.06 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.5177, allocations: 3.938 kB / 0.5136 GB, free: 89.06 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001719/0.5194, allocations: 1.188 MB / 0.5147 GB, free: 88.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002233/0.5196, allocations: 206.1 kB / 0.5149 GB, free: 88.36 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.226e-05/0.5197, allocations: 10.56 kB / 0.5149 GB, free: 88.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004304/0.5202, allocations: 53.42 kB / 0.515 GB, free: 88.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000141/0.5203, allocations: 72.98 kB / 0.5151 GB, free: 88.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-05/0.5204, allocations: 25.22 kB / 0.5151 GB, free: 88.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003525/0.5207, allocations: 360.5 kB / 0.5154 GB, free: 88.15 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5207, allocations: 0 / 0.5154 GB, free: 88.15 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001261/0.522, allocations: 360.2 kB / 0.5158 GB, free: 88.09 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x) * 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 (50): * Single equations (assignments): 41 * 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 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002641/0.5223, allocations: 150.9 kB / 0.5159 GB, free: 87.99 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002527/0.5248, allocations: 1.525 MB / 0.5174 GB, free: 87.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.5248, allocations: 0 / 0.5174 GB, free: 87.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007139/0.5256, allocations: 0.5307 MB / 0.5179 GB, free: 86.97 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005108/0.5261, allocations: 109.8 kB / 0.518 GB, free: 86.93 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00221/0.5283, allocations: 1.604 MB / 0.5196 GB, free: 86 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003544/0.5287, allocations: 0.9638 MB / 0.5205 GB, free: 85.29 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003691/0.5291, allocations: 90.06 kB / 0.5206 GB, free: 85.28 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/0.5292, allocations: 49.38 kB / 0.5207 GB, free: 85.27 MB / 378.7 MB Notification: Performance of SimCode: time 1.362e-06/0.5292, allocations: 0 / 0.5207 GB, free: 85.27 MB / 378.7 MB Notification: Performance of Templates: time 0.01545/0.5447, allocations: 10.63 MB / 0.5311 GB, free: 78.99 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.sim & ./Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/PowerConverters/Examples/DCAC/SinglePhaseTwoLevel/SinglePhaseTwoLevel_R/SinglePhaseTwoLevel_R.csv","../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches