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.0009757/0.0009761, allocations: 176.4 kB / 8.347 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 221.5 MB / 230.3 MB, free: 7.586 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008734/0.0008734, allocations: 92.3 kB / 281.2 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.162e-05/1.164e-05, allocations: 0 / 337.1 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09762/0.09765, allocations: 50.42 MB / 387.5 MB, free: 7.559 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3292/0.4268, allocations: 85.82 MB / 473.3 MB, free: 9.012 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002553/0.4271, allocations: 87.94 kB / 473.4 MB, free: 8.926 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03293/0.4601, allocations: 12.51 MB / 485.9 MB, free: 12.36 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.4601, allocations: 0 / 485.9 MB, free: 12.36 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.423e-05/0.4602, allocations: 23.94 kB / 485.9 MB, free: 12.33 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.001836/0.462, allocations: 0.984 MB / 486.9 MB, free: 11.29 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.4621, allocations: 8.031 kB / 486.9 MB, free: 11.28 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001685/0.4622, allocations: 98.81 kB / 487 MB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008312/0.4631, allocations: 0.5202 MB / 487.5 MB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.46e-05/0.4631, allocations: 23.95 kB / 487.5 MB, free: 10.59 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.388e-05/0.4632, allocations: 51.91 kB / 487.6 MB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008357/0.4641, allocations: 455.9 kB / 488 MB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001051/0.4651, allocations: 0.6132 MB / 488.7 MB, free: 9.457 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.372e-05/0.4652, allocations: 4 kB / 488.7 MB, free: 9.453 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.407e-05/0.4652, allocations: 4 kB / 488.7 MB, free: 9.449 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.725e-05/0.4653, allocations: 23.98 kB / 488.7 MB, free: 9.426 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003713/0.469, allocations: 2.526 MB / 491.2 MB, free: 6.812 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008162/0.4698, allocations: 0.5031 MB / 491.7 MB, free: 6.297 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003528/0.4702, allocations: 246.5 kB / 492 MB, free: 6.055 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.875e-05/0.4703, allocations: 12.52 kB / 492 MB, free: 6.043 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006011/0.4709, allocations: 388.7 kB / 492.3 MB, free: 5.648 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 3.135e-06/0.4709, allocations: 0 / 492.3 MB, free: 5.648 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.001006/0.4719, allocations: 0.5539 MB / 492.9 MB, free: 5.082 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.553e-05/0.472, allocations: 119.4 kB / 493 MB, free: 4.941 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004343/0.4724, allocations: 381.2 kB / 493.4 MB, free: 4.562 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.309e-05/0.4725, allocations: 37.69 kB / 493.4 MB, free: 4.52 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002385/0.4727, allocations: 336.3 kB / 493.8 MB, free: 4.184 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001562/0.4729, allocations: 193.2 kB / 493.9 MB, free: 3.992 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.046e-05/0.4729, allocations: 4 kB / 493.9 MB, free: 3.988 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.4731, allocations: 370.8 kB / 494.3 MB, free: 3.617 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002902/0.4734, allocations: 177.5 kB / 494.5 MB, free: 3.445 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004058/0.4738, allocations: 342.3 kB / 494.8 MB, free: 3.035 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003287/0.4741, allocations: 208.7 kB / 495 MB, free: 2.836 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.024e-06/0.4741, allocations: 3.984 kB / 495 MB, free: 2.832 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001033/0.4752, allocations: 0.6485 MB / 495.7 MB, free: 2.172 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007056/0.4759, allocations: 1.852 MB / 497.5 MB, free: 176 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.4759, allocations: 8 kB / 497.5 MB, free: 168 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004731/0.4764, allocations: 145.9 kB / 497.7 MB, free: 20 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005503/0.4769, allocations: 127.7 kB / 497.8 MB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002524/0.4795, allocations: 2.247 MB / 0.4883 GB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005587/0.4801, allocations: 67.5 kB / 0.4884 GB, free: 13.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.074e-05/0.4801, allocations: 24 kB / 0.4884 GB, free: 13.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.187e-06/0.4801, allocations: 8 kB / 0.4884 GB, free: 13.44 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009601/0.4811, allocations: 0.5541 MB / 0.489 GB, free: 12.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.4811, allocations: 4 kB / 0.489 GB, free: 12.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003562/0.4815, allocations: 148.7 kB / 0.4891 GB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004354/0.4819, allocations: 115.8 kB / 0.4892 GB, free: 12.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002271/0.4842, allocations: 2.238 MB / 0.4914 GB, free: 10.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000502/0.4847, allocations: 67.55 kB / 0.4915 GB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.597e-05/0.4848, allocations: 27.98 kB / 0.4915 GB, free: 10.16 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.0002137/0.485, allocations: 138.3 kB / 0.4916 GB, free: 10.03 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.4851, allocations: 59.25 kB / 0.4917 GB, free: 9.969 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001016/0.4861, allocations: 0.6039 MB / 0.4923 GB, free: 9.348 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.4862, allocations: 11.94 kB / 0.4923 GB, free: 9.336 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-06/0.4862, allocations: 3.938 kB / 0.4923 GB, free: 9.332 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/0.4862, allocations: 3.984 kB / 0.4923 GB, free: 9.328 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001747/0.4879, allocations: 1.312 MB / 0.4936 GB, free: 7.969 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.4879, allocations: 0 / 0.4936 GB, free: 7.969 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003902/0.4883, allocations: 87.88 kB / 0.4937 GB, free: 7.883 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003635/0.4887, allocations: 146.4 kB / 0.4938 GB, free: 7.738 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.899e-05/0.4888, allocations: 4 kB / 0.4938 GB, free: 7.734 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002198/0.491, allocations: 2.228 MB / 0.496 GB, free: 5.398 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.491, allocations: 0 / 0.496 GB, free: 5.398 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001308/0.4923, allocations: 0.9686 MB / 0.4969 GB, free: 4.406 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002413/0.4926, allocations: 200.2 kB / 0.4971 GB, free: 4.191 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.26e-05/0.4926, allocations: 4 kB / 0.4971 GB, free: 4.188 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004177/0.4931, allocations: 44.14 kB / 0.4972 GB, free: 4.145 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001552/0.4932, allocations: 72.45 kB / 0.4972 GB, free: 4.074 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.435e-05/0.4933, allocations: 23.97 kB / 0.4973 GB, free: 4.051 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000306/0.4936, allocations: 291 kB / 0.4975 GB, free: 3.766 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4936, allocations: 4 kB / 0.4975 GB, free: 3.762 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001091/0.4947, allocations: 319 kB / 0.4978 GB, free: 3.449 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.000196/0.4949, allocations: 136.9 kB / 0.498 GB, free: 3.305 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001854/0.4968, allocations: 1.281 MB / 0.4992 GB, free: 1.977 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4968, allocations: 0 / 0.4992 GB, free: 1.977 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006054/0.4974, allocations: 460.3 kB / 0.4997 GB, free: 1.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000506/0.4979, allocations: 91.81 kB / 0.4997 GB, free: 1.434 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00182/0.4998, allocations: 0.945 MB / 0.5007 GB, free: 472 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004797/0.5003, allocations: 0.9673 MB / 0.5016 GB, free: 15.46 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004645/0.5007, allocations: 108.8 kB / 0.5017 GB, free: 15.36 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.5008, allocations: 43.36 kB / 0.5018 GB, free: 15.31 MB / 394.7 MB Notification: Performance of SimCode: time 4.41e-07/0.5008, allocations: 0 / 0.5018 GB, free: 15.31 MB / 394.7 MB Notification: Performance of Templates: time 0.01646/0.5173, allocations: 10.16 MB / 0.5117 GB, free: 5.273 MB / 394.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