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.001037/0.001038, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 225.6 MB / 234.8 MB, free: 3.25 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000894/0.0008941, allocations: 98.64 kB / 286.7 MB, free: 5.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.393e-05/1.395e-05, allocations: 0 / 343.7 MB, free: 8.258 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1079, allocations: 51.49 MB / 395.2 MB, free: 4.727 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3266/0.4346, allocations: 87.82 MB / 483 MB, free: 5.387 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002015/0.4348, allocations: 91.31 kB / 483.1 MB, free: 5.336 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03215/0.467, allocations: 12.9 MB / 496 MB, free: 10.68 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.467, allocations: 0 / 496 MB, free: 10.68 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.101e-05/0.4671, allocations: 25.81 kB / 496 MB, free: 10.66 MB / 362.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.00196/0.469, allocations: 1.01 MB / 497 MB, free: 9.648 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/0.4691, allocations: 8.031 kB / 497 MB, free: 9.641 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006508/0.4698, allocations: 162.3 kB / 497.2 MB, free: 9.484 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000885/0.4707, allocations: 0.5389 MB / 497.7 MB, free: 8.996 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.374e-05/0.4707, allocations: 24 kB / 497.8 MB, free: 8.973 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.324e-05/0.4708, allocations: 44 kB / 497.8 MB, free: 8.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008352/0.4717, allocations: 454.4 kB / 498.2 MB, free: 8.668 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001014/0.4727, allocations: 0.618 MB / 498.9 MB, free: 8.195 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.143e-05/0.4727, allocations: 0 / 498.9 MB, free: 8.195 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.099e-05/0.4728, allocations: 7.984 kB / 498.9 MB, free: 8.188 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.464e-05/0.4728, allocations: 16.34 kB / 498.9 MB, free: 8.172 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003734/0.4765, allocations: 2.543 MB / 0.4897 GB, free: 6.105 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007902/0.4774, allocations: 0.4974 MB / 0.4902 GB, free: 5.793 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003259/0.4777, allocations: 249.6 kB / 0.4904 GB, free: 5.645 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.984e-05/0.4778, allocations: 12.55 kB / 0.4904 GB, free: 5.633 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005927/0.4784, allocations: 380.6 kB / 0.4908 GB, free: 5.348 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 2.385e-06/0.4784, allocations: 0 / 0.4908 GB, free: 5.348 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.001045/0.4794, allocations: 0.5658 MB / 0.4913 GB, free: 4.93 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.837e-05/0.4795, allocations: 123.3 kB / 0.4914 GB, free: 4.785 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004514/0.48, allocations: 406 kB / 0.4918 GB, free: 4.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.561e-05/0.4801, allocations: 36.88 kB / 0.4919 GB, free: 4.441 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002206/0.4803, allocations: 343 kB / 0.4922 GB, free: 4.199 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001412/0.4804, allocations: 192.6 kB / 0.4924 GB, free: 4.035 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.234e-05/0.4805, allocations: 4 kB / 0.4924 GB, free: 4.031 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.4806, allocations: 374.6 kB / 0.4927 GB, free: 3.684 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002777/0.4809, allocations: 182.7 kB / 0.4929 GB, free: 3.582 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003859/0.4813, allocations: 346.5 kB / 0.4932 GB, free: 3.266 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003016/0.4816, allocations: 201.3 kB / 0.4934 GB, free: 3.145 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.4816, allocations: 4 kB / 0.4934 GB, free: 3.141 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.0009675/0.4826, allocations: 0.6525 MB / 0.4941 GB, free: 2.652 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008045/0.4834, allocations: 1.867 MB / 0.4959 GB, free: 0.668 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.4834, allocations: 4 kB / 0.4959 GB, free: 0.6641 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004505/0.4839, allocations: 146.3 kB / 0.496 GB, free: 0.5586 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004857/0.4844, allocations: 118.6 kB / 0.4962 GB, free: 456 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002435/0.4868, allocations: 2.236 MB / 0.4983 GB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004937/0.4873, allocations: 79.44 kB / 0.4984 GB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.045e-05/0.4874, allocations: 23.31 kB / 0.4984 GB, free: 14.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.144e-06/0.4874, allocations: 4 kB / 0.4984 GB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009042/0.4883, allocations: 0.5646 MB / 0.499 GB, free: 13.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.4884, allocations: 11.95 kB / 0.499 GB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003499/0.4887, allocations: 144.7 kB / 0.4991 GB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004412/0.4892, allocations: 116.4 kB / 0.4993 GB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00239/0.4916, allocations: 2.24 MB / 0.5014 GB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004423/0.492, allocations: 59.61 kB / 0.5015 GB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.939e-05/0.4921, allocations: 35.42 kB / 0.5015 GB, free: 11.28 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 () * 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.0001922/0.4923, allocations: 146 kB / 0.5017 GB, free: 11.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.4924, allocations: 63.25 kB / 0.5017 GB, free: 11.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001052/0.4935, allocations: 0.5962 MB / 0.5023 GB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.4935, allocations: 8 kB / 0.5023 GB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.4935, allocations: 0 / 0.5023 GB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.277e-06/0.4935, allocations: 3.984 kB / 0.5023 GB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001887/0.4954, allocations: 1.331 MB / 0.5036 GB, free: 9.074 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.4954, allocations: 0 / 0.5036 GB, free: 9.074 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000418/0.4958, allocations: 91.81 kB / 0.5037 GB, free: 8.984 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003508/0.4962, allocations: 140.9 kB / 0.5038 GB, free: 8.844 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.191e-05/0.4962, allocations: 8 kB / 0.5039 GB, free: 8.836 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002361/0.4986, allocations: 2.219 MB / 0.506 GB, free: 6.496 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.071e-06/0.4986, allocations: 3.953 kB / 0.506 GB, free: 6.492 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001379/0.5, allocations: 0.9609 MB / 0.507 GB, free: 5.512 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002348/0.5003, allocations: 200.2 kB / 0.5072 GB, free: 5.297 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.335e-05/0.5004, allocations: 4 kB / 0.5072 GB, free: 5.293 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004232/0.5008, allocations: 51.95 kB / 0.5072 GB, free: 5.242 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001435/0.5009, allocations: 68.41 kB / 0.5073 GB, free: 5.172 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.561e-05/0.501, allocations: 23.98 kB / 0.5073 GB, free: 5.148 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003221/0.5013, allocations: 299 kB / 0.5076 GB, free: 4.855 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5013, allocations: 0 / 0.5076 GB, free: 4.855 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001058/0.5024, allocations: 342.8 kB / 0.5079 GB, free: 4.52 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) * 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.0002253/0.5026, allocations: 143.7 kB / 0.508 GB, free: 4.371 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001886/0.5045, allocations: 1.285 MB / 0.5093 GB, free: 3.055 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.5045, allocations: 0.8125 kB / 0.5093 GB, free: 3.055 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006129/0.5052, allocations: 463.4 kB / 0.5097 GB, free: 2.594 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005311/0.5057, allocations: 87.8 kB / 0.5098 GB, free: 2.512 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001931/0.5076, allocations: 0.9684 MB / 0.5108 GB, free: 1.516 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005768/0.5082, allocations: 0.9752 MB / 0.5117 GB, free: 0.5117 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004694/0.5087, allocations: 108.9 kB / 0.5118 GB, free: 416 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.5088, allocations: 39.42 kB / 0.5119 GB, free: 376 kB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.5088, allocations: 4 kB / 0.5119 GB, free: 372 kB / 378.7 MB Notification: Performance of Templates: time 0.01664/0.5255, allocations: 10.33 MB / 0.522 GB, free: 6.238 MB / 394.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