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.0009172/0.0009172, allocations: 180 kB / 16.39 MB, free: 5.762 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.283/1.283, allocations: 223.2 MB / 240.3 MB, free: 11.87 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.0008664/0.0008664, allocations: 98.31 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004045/0.0004046, allocations: 8 kB / 351.1 MB, free: 15.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2209/0.2213, allocations: 50.39 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09965/0.321, allocations: 86.88 MB / 488.4 MB, free: 9.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/0.3213, allocations: 91.89 kB / 488.5 MB, free: 9.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03512/0.3564, allocations: 12.99 MB / 0.4897 GB, free: 12.44 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.3565, allocations: 0 / 0.4897 GB, free: 12.44 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.64e-05/0.3565, allocations: 19.94 kB / 0.4897 GB, free: 12.42 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.002349/0.3589, allocations: 1.09 MB / 0.4908 GB, free: 11.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.3589, allocations: 12.03 kB / 0.4908 GB, free: 11.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002408/0.3592, allocations: 102.9 kB / 0.4909 GB, free: 11.15 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009012/0.3601, allocations: 0.5356 MB / 0.4914 GB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.655e-05/0.3602, allocations: 58 kB / 0.4915 GB, free: 10.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.3603, allocations: 75.91 kB / 0.4916 GB, free: 10.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001441/0.3617, allocations: 0.7901 MB / 0.4923 GB, free: 9.625 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.002e-05/0.3618, allocations: 4 kB / 0.4923 GB, free: 9.621 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.919e-05/0.3619, allocations: 27.94 kB / 0.4924 GB, free: 9.594 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.109e-05/0.3619, allocations: 20 kB / 0.4924 GB, free: 9.574 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001347/0.3632, allocations: 0.6168 MB / 0.493 GB, free: 8.957 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00423/0.3675, allocations: 2.756 MB / 0.4957 GB, free: 6.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001187/0.3687, allocations: 0.5796 MB / 0.4962 GB, free: 5.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.641e-05/0.3688, allocations: 16.55 kB / 0.4963 GB, free: 5.484 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008427/0.3696, allocations: 469.6 kB / 0.4967 GB, free: 5.012 MB / 378.7 MB Notification: Performance of pre-optimization done (n=69): time 2.875e-06/0.3696, allocations: 0 / 0.4967 GB, free: 5.012 MB / 378.7 MB Notification: Performance of matching and sorting (n=69): time 0.00313/0.3728, allocations: 1.242 MB / 0.4979 GB, free: 3.742 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.232e-05/0.3728, allocations: 123.4 kB / 0.498 GB, free: 3.598 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005768/0.3734, allocations: 474.2 kB / 0.4985 GB, free: 3.129 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.846e-05/0.3735, allocations: 41.7 kB / 0.4985 GB, free: 3.082 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002468/0.3738, allocations: 344.4 kB / 0.4989 GB, free: 2.738 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002264/0.374, allocations: 213 kB / 0.4991 GB, free: 2.527 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.264e-05/0.3741, allocations: 12 kB / 0.4991 GB, free: 2.516 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.3742, allocations: 386.7 kB / 0.4994 GB, free: 2.129 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005364/0.3748, allocations: 249.9 kB / 0.4997 GB, free: 1.883 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000638/0.3754, allocations: 434 kB / 0.5001 GB, free: 1.391 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006045/0.376, allocations: 323.7 kB / 0.5004 GB, free: 1.066 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.3761, allocations: 0 / 0.5004 GB, free: 1.066 MB / 378.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002128/0.3782, allocations: 0.8718 MB / 0.5012 GB, free: 180 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.2234/0.6016, allocations: 1.864 MB / 0.5031 GB, free: 93.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.997e-05/0.6017, allocations: 5.031 kB / 0.5031 GB, free: 93.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008891/0.6026, allocations: 142.8 kB / 0.5032 GB, free: 93.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009855/0.6036, allocations: 132.4 kB / 0.5033 GB, free: 93.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004374/0.608, allocations: 2.317 MB / 0.5056 GB, free: 92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001033/0.6091, allocations: 94.34 kB / 0.5057 GB, free: 92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001316/0.6092, allocations: 28.05 kB / 0.5057 GB, free: 92 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/0.6092, allocations: 2.875 kB / 0.5057 GB, free: 92 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002468/0.6117, allocations: 0.7769 MB / 0.5065 GB, free: 91.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.399e-05/0.6118, allocations: 5.188 kB / 0.5065 GB, free: 91.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005825/0.6124, allocations: 148.7 kB / 0.5066 GB, free: 91.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008592/0.6132, allocations: 124.2 kB / 0.5067 GB, free: 91.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003862/0.6171, allocations: 2.327 MB / 0.509 GB, free: 90.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009073/0.618, allocations: 86.92 kB / 0.5091 GB, free: 90.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001179/0.6182, allocations: 32.12 kB / 0.5091 GB, free: 90.63 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.0006229/0.6188, allocations: 309.2 kB / 0.5094 GB, free: 90.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002108/0.619, allocations: 72.98 kB / 0.5095 GB, free: 90.41 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002173/0.6212, allocations: 0.7769 MB / 0.5103 GB, free: 90.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.728e-06/0.6212, allocations: 13.55 kB / 0.5103 GB, free: 90.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.6213, allocations: 3.812 kB / 0.5103 GB, free: 90.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.6213, allocations: 5.812 kB / 0.5103 GB, free: 90.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003292/0.6246, allocations: 1.602 MB / 0.5118 GB, free: 89.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.6246, allocations: 2.844 kB / 0.5118 GB, free: 89.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006438/0.6253, allocations: 88 kB / 0.5119 GB, free: 89.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005032/0.6258, allocations: 149.4 kB / 0.5121 GB, free: 89.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.86e-05/0.6259, allocations: 17.3 kB / 0.5121 GB, free: 89.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003167/0.629, allocations: 2.306 MB / 0.5143 GB, free: 87.96 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.6291, allocations: 0 / 0.5143 GB, free: 87.96 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002884/0.6319, allocations: 1.203 MB / 0.5155 GB, free: 87.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003548/0.6323, allocations: 210.5 kB / 0.5157 GB, free: 87.26 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001487/0.6325, allocations: 19.73 kB / 0.5157 GB, free: 87.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007089/0.6332, allocations: 56.06 kB / 0.5158 GB, free: 87.24 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001994/0.6334, allocations: 66.59 kB / 0.5158 GB, free: 87.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.675e-05/0.6335, allocations: 22.2 kB / 0.5159 GB, free: 87.22 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005756/0.6341, allocations: 369 kB / 0.5162 GB, free: 87.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.6341, allocations: 3.375 kB / 0.5162 GB, free: 87.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001769/0.6359, allocations: 372.3 kB / 0.5166 GB, free: 86.99 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.0002235/0.6361, allocations: 143.9 kB / 0.5167 GB, free: 86.88 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003661/0.6398, allocations: 1.509 MB / 0.5182 GB, free: 86.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.6398, allocations: 0 / 0.5182 GB, free: 86.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001162/0.641, allocations: 0.5387 MB / 0.5187 GB, free: 85.85 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008018/0.6418, allocations: 109.5 kB / 0.5188 GB, free: 85.81 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003458/0.6453, allocations: 1.696 MB / 0.5205 GB, free: 84.81 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005233/0.6458, allocations: 0.9655 MB / 0.5214 GB, free: 84.1 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006795/0.6465, allocations: 97.88 kB / 0.5215 GB, free: 84.09 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001998/0.6467, allocations: 48.2 kB / 0.5216 GB, free: 84.08 MB / 378.7 MB Notification: Performance of SimCode: time 5.51e-07/0.6467, allocations: 0 / 0.5216 GB, free: 84.08 MB / 378.7 MB Notification: Performance of Templates: time 0.02424/0.671, allocations: 10.48 MB / 0.5318 GB, free: 78.21 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/jenkins/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