Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001206/0.001206, allocations: 202.6 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.2/1.2, allocations: 227.2 MB / 245 MB, free: 7.598 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007987/0.0007986, allocations: 97.2 kB / 297.3 MB, free: 6.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002032/0.0002033, allocations: 7.984 kB / 357.9 MB, free: 9.523 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1812/0.1814, allocations: 51.49 MB / 409.4 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09439/0.2759, allocations: 88.55 MB / 498 MB, free: 2.051 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002129/0.2761, allocations: 91.94 kB / 498.1 MB, free: 1.961 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03341/0.3096, allocations: 13.05 MB / 0.4991 GB, free: 4.852 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3096, allocations: 0 / 0.4991 GB, free: 4.852 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.731e-05/0.3096, allocations: 27.98 kB / 0.4992 GB, free: 4.824 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.001904/0.3116, allocations: 1.095 MB / 0.5002 GB, free: 3.664 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.3116, allocations: 8.031 kB / 0.5002 GB, free: 3.656 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005817/0.3122, allocations: 175 kB / 0.5004 GB, free: 3.484 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007619/0.313, allocations: 0.5395 MB / 0.5009 GB, free: 2.902 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.638e-05/0.313, allocations: 58 kB / 0.501 GB, free: 2.844 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.925e-05/0.3131, allocations: 71.98 kB / 0.5011 GB, free: 2.773 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001262/0.3144, allocations: 0.7693 MB / 0.5018 GB, free: 1.977 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/0.3144, allocations: 8 kB / 0.5018 GB, free: 1.969 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.509e-05/0.3145, allocations: 28 kB / 0.5018 GB, free: 1.941 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.3145, allocations: 16 kB / 0.5019 GB, free: 1.926 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001192/0.3157, allocations: 0.5985 MB / 0.5024 GB, free: 1.328 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1582/0.4739, allocations: 2.685 MB / 0.5051 GB, free: 88.78 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001367/0.4753, allocations: 0.6135 MB / 0.5057 GB, free: 88.74 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.161e-05/0.4754, allocations: 14.55 kB / 0.5057 GB, free: 88.74 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009092/0.4763, allocations: 468.8 kB / 0.5061 GB, free: 88.67 MB / 378.7 MB Notification: Performance of pre-optimization done (n=67): time 2.876e-06/0.4763, allocations: 1.078 kB / 0.5061 GB, free: 88.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=67): time 0.00301/0.4793, allocations: 1.257 MB / 0.5074 GB, free: 88.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.039e-05/0.4794, allocations: 121.2 kB / 0.5075 GB, free: 88.39 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000641/0.4801, allocations: 0.4949 MB / 0.508 GB, free: 88.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.876e-05/0.4801, allocations: 43.78 kB / 0.508 GB, free: 88.24 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002261/0.4804, allocations: 341.7 kB / 0.5083 GB, free: 88.12 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001524/0.4805, allocations: 202 kB / 0.5085 GB, free: 88.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.491e-05/0.4806, allocations: 15.72 kB / 0.5085 GB, free: 88.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.4807, allocations: 379.9 kB / 0.5089 GB, free: 87.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005288/0.4812, allocations: 250.8 kB / 0.5091 GB, free: 87.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006331/0.4819, allocations: 425.2 kB / 0.5095 GB, free: 87.51 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006105/0.4825, allocations: 310.5 kB / 0.5098 GB, free: 87.48 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.065e-06/0.4825, allocations: 1.594 kB / 0.5098 GB, free: 87.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001616/0.4841, allocations: 0.8653 MB / 0.5107 GB, free: 87.36 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003012/0.4844, allocations: 1.866 MB / 0.5125 GB, free: 85.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.4845, allocations: 5.781 kB / 0.5125 GB, free: 85.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004455/0.4849, allocations: 155.4 kB / 0.5127 GB, free: 85.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004468/0.4854, allocations: 122.6 kB / 0.5128 GB, free: 85.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00213/0.4875, allocations: 2.362 MB / 0.5151 GB, free: 83.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005283/0.488, allocations: 97 kB / 0.5152 GB, free: 83.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.687e-05/0.4881, allocations: 31.22 kB / 0.5152 GB, free: 83.76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.885e-06/0.4881, allocations: 3.906 kB / 0.5152 GB, free: 83.76 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001174/0.4893, allocations: 0.7597 MB / 0.5159 GB, free: 83.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.4893, allocations: 3.781 kB / 0.516 GB, free: 83.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003389/0.4897, allocations: 170.2 kB / 0.5161 GB, free: 83.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004098/0.4901, allocations: 114.1 kB / 0.5162 GB, free: 83.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00202/0.4921, allocations: 2.357 MB / 0.5185 GB, free: 81.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004838/0.4926, allocations: 86.11 kB / 0.5186 GB, free: 81.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.284e-05/0.4927, allocations: 27.53 kB / 0.5186 GB, free: 81.51 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.0003192/0.493, allocations: 315.1 kB / 0.5189 GB, free: 81.25 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.607e-05/0.4931, allocations: 70.06 kB / 0.519 GB, free: 81.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001249/0.4943, allocations: 0.7796 MB / 0.5198 GB, free: 80.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.4944, allocations: 6.938 kB / 0.5198 GB, free: 80.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-06/0.4944, allocations: 0 / 0.5198 GB, free: 80.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.4944, allocations: 4.922 kB / 0.5198 GB, free: 80.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001966/0.4963, allocations: 1.585 MB / 0.5213 GB, free: 80.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.4964, allocations: 2.094 kB / 0.5213 GB, free: 80.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003778/0.4967, allocations: 93.72 kB / 0.5214 GB, free: 80.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003287/0.4971, allocations: 145.2 kB / 0.5215 GB, free: 80.04 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.032e-05/0.4971, allocations: 15.53 kB / 0.5216 GB, free: 80.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001919/0.4991, allocations: 2.354 MB / 0.5239 GB, free: 78.17 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.4991, allocations: 3.938 kB / 0.5239 GB, free: 78.17 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001638/0.5007, allocations: 1.186 MB / 0.525 GB, free: 77.62 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002027/0.5009, allocations: 212 kB / 0.5252 GB, free: 77.45 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.176e-05/0.501, allocations: 22.09 kB / 0.5252 GB, free: 77.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004144/0.5014, allocations: 56.03 kB / 0.5253 GB, free: 77.43 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/0.5016, allocations: 65.03 kB / 0.5254 GB, free: 77.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.01e-05/0.5016, allocations: 22.09 kB / 0.5254 GB, free: 77.41 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000331/0.502, allocations: 390.8 kB / 0.5258 GB, free: 77.23 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.502, allocations: 0 / 0.5258 GB, free: 77.23 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009248/0.5029, allocations: 370.3 kB / 0.5261 GB, free: 77.15 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.0001798/0.5031, allocations: 158.2 kB / 0.5263 GB, free: 77.04 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002065/0.5052, allocations: 1.511 MB / 0.5277 GB, free: 76.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.5052, allocations: 3.531 kB / 0.5277 GB, free: 76.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006871/0.5059, allocations: 0.5423 MB / 0.5283 GB, free: 75.99 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004847/0.5064, allocations: 113.5 kB / 0.5284 GB, free: 75.95 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001956/0.5083, allocations: 1.626 MB / 0.53 GB, free: 74.99 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003158/0.5087, allocations: 0.9724 MB / 0.5309 GB, free: 74.12 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003459/0.509, allocations: 97.08 kB / 0.531 GB, free: 74.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.5091, allocations: 53.91 kB / 0.5311 GB, free: 74.01 MB / 378.7 MB Notification: Performance of SimCode: time 1.403e-06/0.5091, allocations: 0 / 0.5311 GB, free: 74.01 MB / 378.7 MB Notification: Performance of Templates: time 0.0139/0.5231, allocations: 10.76 MB / 0.5416 GB, free: 65.86 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.makefile (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.sim & ./Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches