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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.00146/0.00146, allocations: 114.3 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001745/0.001745, allocations: 210.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 59.91 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2245/0.2257, allocations: 50.54 MB / 410 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R): time 0.006562/0.2322, allocations: 5.082 MB / 415.1 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003042/0.2353, allocations: 1.589 MB / 416.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006631/0.236, allocations: 19.88 kB / 416.7 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004419/0.2365, allocations: 134.6 kB / 416.8 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006819/0.2372, allocations: 214 kB / 417 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009329/0.2381, allocations: 415.3 kB / 417.4 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001248/0.2394, allocations: 1.087 MB / 418.5 MB, free: 9.027 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006543/0.24, allocations: 430.2 kB / 418.9 MB, free: 8.586 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005802/0.2406, allocations: 402.4 kB / 419.3 MB, free: 8.191 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005604/0.2412, allocations: 445.9 kB / 419.8 MB, free: 7.754 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000184/0.2414, allocations: 104 kB / 419.9 MB, free: 7.652 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002506/0.2416, allocations: 116 kB / 420 MB, free: 7.539 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002195/0.2419, allocations: 219.3 kB / 420.2 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004818/0.2424, allocations: 469.5 kB / 420.6 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001083/0.2434, allocations: 1.154 MB / 421.8 MB, free: 5.707 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2435, allocations: 0 / 421.8 MB, free: 5.707 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2435, allocations: 4 kB / 421.8 MB, free: 5.703 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.517e-05/0.2435, allocations: 0 / 421.8 MB, free: 5.703 MB / 334.1 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.002466/0.246, allocations: 1.232 MB / 423 MB, free: 4.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.246, allocations: 11.97 kB / 423 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006521/0.2467, allocations: 151.7 kB / 423.2 MB, free: 4.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001119/0.2478, allocations: 0.6222 MB / 423.8 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.611e-05/0.2479, allocations: 54.38 kB / 423.9 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001383/0.248, allocations: 76.36 kB / 423.9 MB, free: 3.457 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001521/0.2496, allocations: 0.7618 MB / 424.7 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.792e-05/0.2496, allocations: 3.984 kB / 424.7 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.045e-05/0.2497, allocations: 28 kB / 424.7 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.59e-05/0.2497, allocations: 16 kB / 424.7 MB, free: 2.621 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001223/0.2509, allocations: 0.5594 MB / 425.3 MB, free: 2.062 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003928/0.2549, allocations: 2.629 MB / 427.9 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001196/0.2561, allocations: 0.5917 MB / 428.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005618/0.2567, allocations: 298.4 kB / 428.8 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.871e-05/0.2567, allocations: 16.56 kB / 428.8 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007953/0.2575, allocations: 441.8 kB / 429.3 MB, free: 13.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.524e-06/0.2575, allocations: 0 / 429.3 MB, free: 13.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=67): time 0.003247/0.2608, allocations: 1.222 MB / 430.5 MB, free: 12.72 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.089e-05/0.2609, allocations: 123.3 kB / 430.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007119/0.2616, allocations: 0.5743 MB / 431.2 MB, free: 11.99 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.327e-05/0.2617, allocations: 41.7 kB / 431.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002754/0.262, allocations: 348.5 kB / 431.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001818/0.2622, allocations: 205.1 kB / 431.8 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002148/0.2624, allocations: 134.7 kB / 431.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.2626, allocations: 378.8 kB / 432.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005372/0.2631, allocations: 240.7 kB / 432.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006249/0.2638, allocations: 414.1 kB / 432.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001114/0.2649, allocations: 0.6349 MB / 433.5 MB, free: 9.457 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.2649, allocations: 4 kB / 433.5 MB, free: 9.453 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001606/0.2665, allocations: 0.8443 MB / 434.4 MB, free: 8.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.253e-05/0.2666, allocations: 41.69 kB / 434.4 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.2666, allocations: 8 kB / 434.4 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004888/0.2671, allocations: 148.7 kB / 434.6 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004816/0.2676, allocations: 119.8 kB / 434.7 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002976/0.2706, allocations: 2.552 MB / 437.3 MB, free: 5.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005178/0.2711, allocations: 83.34 kB / 437.3 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.554e-05/0.2712, allocations: 31.98 kB / 437.4 MB, free: 5.473 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006746/0.2718, allocations: 378 kB / 437.7 MB, free: 5.102 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00058/0.2724, allocations: 410.1 kB / 438.1 MB, free: 4.633 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001009/0.2734, allocations: 0.6153 MB / 438.8 MB, free: 3.949 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.239e-06/0.2735, allocations: 8 kB / 438.8 MB, free: 3.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization_lambda0): time 0.001452/0.2749, allocations: 0.813 MB / 439.6 MB, free: 3.109 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.15e-05/0.275, allocations: 45.62 kB / 439.6 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.275, allocations: 4 kB / 439.6 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004082/0.2754, allocations: 152.7 kB / 439.8 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004414/0.2758, allocations: 115.8 kB / 439.9 MB, free: 2.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002868/0.2787, allocations: 2.544 MB / 442.4 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005236/0.2793, allocations: 79.66 kB / 442.5 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.812e-05/0.2793, allocations: 32 kB / 442.5 MB, free: 0 / 350.1 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 (signalPWM.zeroOrderHold.firstTrigger,$PRE.signalPWM.zeroOrderHold.firstTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fundamentalWaveCurrent.mean2.y_last,$PRE.fundamentalWaveCurrent.mean2.y_last,fundamentalWaveCurrent.mean1.y_last,$PRE.fundamentalWaveCurrent.mean1.y_last,fundamentalWaveVoltage.mean2.y_last,$PRE.fundamentalWaveVoltage.mean2.y_last,fundamentalWaveVoltage.mean1.y_last,$PRE.fundamentalWaveVoltage.mean1.y_last,signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,signalPWM.sawtooth.count,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.T_start,signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.zeroOrderHold.ySample,signalPWM.notFire,inverter.diode_n.off,inverter.transistor_n.off,inverter.diode_p.off,inverter.transistor_p.off,inverter.andCondition_n.y,inverter.andCondition_p.y,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0003133/0.2796, allocations: 244 kB / 442.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.2798, allocations: 75.06 kB / 442.8 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001643/0.2814, allocations: 0.7645 MB / 443.6 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.728e-06/0.2814, allocations: 7.984 kB / 443.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.2815, allocations: 0 / 443.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002893/0.2817, allocations: 208 kB / 443.8 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.9e-05/0.2819, allocations: 16 kB / 443.8 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004255/0.2823, allocations: 47.89 kB / 443.9 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001361/0.2824, allocations: 52.48 kB / 443.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002087/0.2845, allocations: 0.8468 MB / 444.8 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001921/0.2865, allocations: 1.116 MB / 445.9 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000525/0.287, allocations: 268.3 kB / 446.2 MB, free: 12.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004926/0.2875, allocations: 407.1 kB / 446.6 MB, free: 11.91 MB / 366.1 MB Notification: Performance of Backend: time 6.71e-07/0.2875, allocations: 0 / 446.6 MB, free: 11.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002592/0.2901, allocations: 1.363 MB / 447.9 MB, free: 10.49 MB / 366.1 MB Notification: Performance of SimCode: time 0.002261/0.2924, allocations: 1.829 MB / 449.8 MB, free: 8.621 MB / 366.1 MB Notification: Performance of Templates: time 0.02298/0.3154, allocations: 13.75 MB / 463.5 MB, free: 11 MB / 382.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/PowerConverters/Examples/DCAC/SinglePhaseTwoLevel/SinglePhaseTwoLevel_R/SinglePhaseTwoLevel_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches