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.001036/0.001036, allocations: 176.4 kB / 17.4 MB, free: 4.422 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.369/1.369, allocations: 223.3 MB / 241.4 MB, free: 11.62 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.0009211/0.0009211, allocations: 94.11 kB / 292.6 MB, free: 10.79 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002778/0.0002779, allocations: 8 kB / 352.4 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1934/0.1937, allocations: 50.41 MB / 402.8 MB, free: 32.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09687/0.2906, allocations: 86.64 MB / 489.4 MB, free: 9.723 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002898/0.291, allocations: 95.94 kB / 489.5 MB, free: 9.629 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0343/0.3253, allocations: 12.64 MB / 0.4904 GB, free: 12.91 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3253, allocations: 4 kB / 0.4904 GB, free: 12.9 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.424e-05/0.3254, allocations: 19.98 kB / 0.4904 GB, free: 12.88 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.002164/0.3276, allocations: 1.058 MB / 0.4914 GB, free: 11.76 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.3276, allocations: 8.031 kB / 0.4914 GB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002264/0.3278, allocations: 95.81 kB / 0.4915 GB, free: 11.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009008/0.3287, allocations: 0.5598 MB / 0.4921 GB, free: 11.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.529e-05/0.3288, allocations: 50.38 kB / 0.4921 GB, free: 11 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001184/0.3289, allocations: 72.38 kB / 0.4922 GB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001554/0.3305, allocations: 0.7816 MB / 0.493 GB, free: 10.12 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.876e-05/0.3305, allocations: 192 / 0.493 GB, free: 10.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.363e-05/0.3306, allocations: 31.94 kB / 0.493 GB, free: 10.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.064e-05/0.3307, allocations: 16 kB / 0.493 GB, free: 10.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001366/0.332, allocations: 0.6102 MB / 0.4936 GB, free: 9.465 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004113/0.3362, allocations: 2.664 MB / 0.4962 GB, free: 6.703 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001165/0.3373, allocations: 0.6133 MB / 0.4968 GB, free: 6.078 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005581/0.3379, allocations: 322.4 kB / 0.4971 GB, free: 5.762 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.856e-05/0.338, allocations: 12.55 kB / 0.4971 GB, free: 5.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008338/0.3388, allocations: 469.2 kB / 0.4976 GB, free: 5.281 MB / 378.7 MB Notification: Performance of pre-optimization done (n=67): time 2.455e-06/0.3388, allocations: 0 / 0.4976 GB, free: 5.281 MB / 378.7 MB Notification: Performance of matching and sorting (n=67): time 0.003/0.3418, allocations: 1.261 MB / 0.4988 GB, free: 3.992 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.318e-05/0.3419, allocations: 131.3 kB / 0.4989 GB, free: 3.836 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006394/0.3426, allocations: 0.5263 MB / 0.4994 GB, free: 3.301 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.735e-05/0.3426, allocations: 41.7 kB / 0.4995 GB, free: 3.254 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002443/0.3429, allocations: 332.5 kB / 0.4998 GB, free: 2.922 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001578/0.3431, allocations: 201.2 kB / 0.5 GB, free: 2.723 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.18e-05/0.3431, allocations: 15.94 kB / 0.5 GB, free: 2.707 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000187/0.3433, allocations: 386.7 kB / 0.5004 GB, free: 2.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00053/0.3438, allocations: 245.9 kB / 0.5006 GB, free: 2.078 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006267/0.3445, allocations: 425.9 kB / 0.501 GB, free: 1.594 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001087/0.3456, allocations: 0.668 MB / 0.5017 GB, free: 0.8516 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.3456, allocations: 0 / 0.5017 GB, free: 0.8516 MB / 378.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.1626/0.5081, allocations: 0.8573 MB / 0.5025 GB, free: 94.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001509/0.5083, allocations: 258.3 kB / 0.5027 GB, free: 94.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.5083, allocations: 5.422 kB / 0.5027 GB, free: 94.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005546/0.5089, allocations: 151.8 kB / 0.5029 GB, free: 94.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005895/0.5095, allocations: 121.2 kB / 0.503 GB, free: 94.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002497/0.512, allocations: 2.325 MB / 0.5053 GB, free: 93.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000573/0.5126, allocations: 94.62 kB / 0.5054 GB, free: 93.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.904e-05/0.5127, allocations: 29.94 kB / 0.5054 GB, free: 93.35 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.131e-06/0.5127, allocations: 2.75 kB / 0.5054 GB, free: 93.35 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001333/0.514, allocations: 0.7577 MB / 0.5061 GB, free: 93.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.514, allocations: 7.766 kB / 0.5061 GB, free: 93.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003567/0.5144, allocations: 162.9 kB / 0.5063 GB, free: 93.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004225/0.5148, allocations: 116.8 kB / 0.5064 GB, free: 93.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002355/0.5172, allocations: 2.318 MB / 0.5087 GB, free: 91.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005161/0.5177, allocations: 79.16 kB / 0.5088 GB, free: 91.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.171e-05/0.5178, allocations: 30.64 kB / 0.5088 GB, free: 91.98 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.0004238/0.5182, allocations: 308.5 kB / 0.5091 GB, free: 91.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001227/0.5184, allocations: 70.69 kB / 0.5091 GB, free: 91.78 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001363/0.5197, allocations: 0.7778 MB / 0.5099 GB, free: 91.72 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.5198, allocations: 7.781 kB / 0.5099 GB, free: 91.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-06/0.5198, allocations: 3.172 kB / 0.5099 GB, free: 91.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.5198, allocations: 6.703 kB / 0.5099 GB, free: 91.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001993/0.5218, allocations: 1.574 MB / 0.5115 GB, free: 91.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.5218, allocations: 3.344 kB / 0.5115 GB, free: 91.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003636/0.5222, allocations: 88.8 kB / 0.5115 GB, free: 91.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003404/0.5225, allocations: 143 kB / 0.5117 GB, free: 91.24 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.151e-05/0.5226, allocations: 18.56 kB / 0.5117 GB, free: 91.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001948/0.5245, allocations: 2.324 MB / 0.514 GB, free: 89.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.5245, allocations: 2.875 kB / 0.514 GB, free: 89.4 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001749/0.5263, allocations: 1.182 MB / 0.5151 GB, free: 88.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002297/0.5265, allocations: 204.2 kB / 0.5153 GB, free: 88.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.143e-05/0.5266, allocations: 22.91 kB / 0.5153 GB, free: 88.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00039/0.527, allocations: 55.14 kB / 0.5154 GB, free: 88.69 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001425/0.5272, allocations: 66.8 kB / 0.5155 GB, free: 88.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.821e-05/0.5272, allocations: 18.59 kB / 0.5155 GB, free: 88.67 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003697/0.5276, allocations: 368.8 kB / 0.5158 GB, free: 88.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.5276, allocations: 0 / 0.5158 GB, free: 88.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001047/0.5286, allocations: 360.1 kB / 0.5162 GB, free: 88.44 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.0001728/0.5288, allocations: 150.9 kB / 0.5163 GB, free: 88.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002265/0.5311, allocations: 1.518 MB / 0.5178 GB, free: 87.59 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.5311, allocations: 1.062 kB / 0.5178 GB, free: 87.59 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007079/0.5318, allocations: 0.5348 MB / 0.5183 GB, free: 87.32 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006014/0.5324, allocations: 111.8 kB / 0.5184 GB, free: 87.28 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001921/0.5344, allocations: 1.618 MB / 0.52 GB, free: 86.35 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003132/0.5347, allocations: 0.9461 MB / 0.5209 GB, free: 85.63 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003589/0.5351, allocations: 96.94 kB / 0.521 GB, free: 85.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.5352, allocations: 49.28 kB / 0.5211 GB, free: 85.6 MB / 378.7 MB Notification: Performance of SimCode: time 1.272e-06/0.5352, allocations: 0 / 0.5211 GB, free: 85.6 MB / 378.7 MB Notification: Performance of Templates: time 0.01414/0.5493, allocations: 10.71 MB / 0.5315 GB, free: 79.56 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/jenkins1/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