Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001705/0.001706, allocations: 180.7 kB / 17.02 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.727/1.727, allocations: 205.4 MB / 223.1 MB, free: 9.047 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008594/0.0008594, allocations: 104.1 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000389/0.0003892, allocations: 8 kB / 328.3 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3208, allocations: 47.56 MB / 375.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.148/0.4688, allocations: 85.56 MB / 461.4 MB, free: 11.11 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003672/0.4692, allocations: 87.95 kB / 461.5 MB, free: 11.03 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05812/0.5274, allocations: 12.38 MB / 473.8 MB, free: 14.59 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.5274, allocations: 0 / 473.8 MB, free: 14.59 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.824e-05/0.5275, allocations: 16 kB / 473.9 MB, free: 14.57 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: 167 * Number of variables: 167 Notification: Performance of Generate backend data structure: time 0.003075/0.5306, allocations: 1.07 MB / 474.9 MB, free: 13.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.5306, allocations: 8.031 kB / 474.9 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002487/0.5309, allocations: 98.83 kB / 475 MB, free: 13.33 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001295/0.5322, allocations: 0.524 MB / 475.6 MB, free: 12.77 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.713e-05/0.5323, allocations: 57.98 kB / 475.6 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001603/0.5325, allocations: 79.91 kB / 475.7 MB, free: 12.63 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002093/0.5346, allocations: 0.7537 MB / 476.4 MB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.085e-05/0.5346, allocations: 0 / 476.4 MB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001143/0.5348, allocations: 35.98 kB / 476.5 MB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.968e-05/0.5348, allocations: 16 kB / 476.5 MB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00209/0.5369, allocations: 0.6023 MB / 477.1 MB, free: 11.2 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005799/0.5427, allocations: 2.645 MB / 479.7 MB, free: 8.453 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001692/0.5445, allocations: 0.6039 MB / 480.4 MB, free: 7.836 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.587e-05/0.5445, allocations: 12.56 kB / 480.4 MB, free: 7.824 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001069/0.5456, allocations: 461.7 kB / 480.8 MB, free: 7.355 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 2.995e-06/0.5456, allocations: 0 / 480.8 MB, free: 7.355 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.00345/0.5491, allocations: 1.254 MB / 482.1 MB, free: 6.074 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.828e-05/0.5492, allocations: 115.4 kB / 482.2 MB, free: 5.938 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006662/0.5499, allocations: 478.2 kB / 482.6 MB, free: 5.461 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.13e-05/0.5499, allocations: 45.7 kB / 482.7 MB, free: 5.41 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002932/0.5502, allocations: 328.6 kB / 483 MB, free: 5.086 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002148/0.5505, allocations: 197.2 kB / 483.2 MB, free: 4.891 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.716e-05/0.5505, allocations: 16 kB / 483.2 MB, free: 4.875 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002105/0.5507, allocations: 378.7 kB / 483.6 MB, free: 4.496 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005656/0.5513, allocations: 249.9 kB / 483.8 MB, free: 4.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006561/0.552, allocations: 426 kB / 484.3 MB, free: 3.766 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006105/0.5526, allocations: 306.4 kB / 484.5 MB, free: 3.457 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.015e-06/0.5526, allocations: 4 kB / 484.6 MB, free: 3.453 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001604/0.5542, allocations: 0.8686 MB / 485.4 MB, free: 2.566 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007858/0.555, allocations: 1.86 MB / 487.3 MB, free: 0.5586 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.555, allocations: 4 kB / 487.3 MB, free: 0.5547 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004942/0.5555, allocations: 152.8 kB / 487.4 MB, free: 412 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004907/0.556, allocations: 127.7 kB / 487.6 MB, free: 284 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002964/0.559, allocations: 2.356 MB / 489.9 MB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006734/0.5597, allocations: 95.39 kB / 490 MB, free: 13.69 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.368e-05/0.5598, allocations: 31.92 kB / 490 MB, free: 13.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.5598, allocations: 4 kB / 490 MB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001508/0.5613, allocations: 0.7584 MB / 490.8 MB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.793e-05/0.5614, allocations: 4 kB / 490.8 MB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004154/0.5618, allocations: 162.1 kB / 491 MB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004573/0.5622, allocations: 112.1 kB / 491.1 MB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002734/0.565, allocations: 2.359 MB / 493.4 MB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006164/0.5656, allocations: 87.48 kB / 493.5 MB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.953e-05/0.5657, allocations: 27.98 kB / 493.5 MB, free: 10.02 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,fundamentalWaveCurrent.mean1.y,$PRE.fundamentalWaveCurrent.mean2.y,fundamentalWaveCurrent.mean2.y,$PRE.fundamentalWaveVoltage.mean1.y,fundamentalWaveVoltage.mean1.y,$PRE.fundamentalWaveVoltage.mean2.y,fundamentalWaveVoltage.mean2.y,$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.0006003/0.5663, allocations: 308.9 kB / 493.8 MB, free: 9.703 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001977/0.5665, allocations: 71.14 kB / 493.9 MB, free: 9.633 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001661/0.5682, allocations: 0.7682 MB / 494.7 MB, free: 8.848 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/0.5682, allocations: 4 kB / 494.7 MB, free: 8.844 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.5682, allocations: 0 / 494.7 MB, free: 8.844 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.5683, allocations: 3.984 kB / 494.7 MB, free: 8.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002782/0.571, allocations: 1.576 MB / 496.3 MB, free: 7.207 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.5711, allocations: 0 / 496.3 MB, free: 7.207 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004262/0.5715, allocations: 91.88 kB / 496.4 MB, free: 7.117 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004261/0.5719, allocations: 146.4 kB / 496.5 MB, free: 6.973 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.558e-05/0.572, allocations: 15.98 kB / 496.5 MB, free: 6.957 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002796/0.5748, allocations: 2.365 MB / 498.9 MB, free: 4.461 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.5748, allocations: 4.031 kB / 498.9 MB, free: 4.457 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00216/0.577, allocations: 1.187 MB / 0.4884 GB, free: 3.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003514/0.5774, allocations: 208.1 kB / 0.4886 GB, free: 3.027 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001161/0.5775, allocations: 15.98 kB / 0.4886 GB, free: 3.012 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004915/0.578, allocations: 55.95 kB / 0.4886 GB, free: 2.957 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001773/0.5782, allocations: 64.47 kB / 0.4887 GB, free: 2.895 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.087e-05/0.5782, allocations: 23.98 kB / 0.4887 GB, free: 2.871 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004867/0.5787, allocations: 366.8 kB / 0.4891 GB, free: 2.516 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5787, allocations: 0 / 0.4891 GB, free: 2.516 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001263/0.58, allocations: 355.2 kB / 0.4894 GB, free: 2.168 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,fundamentalWaveVoltage.mean2.y,fundamentalWaveCurrent.mean1.y,fundamentalWaveCurrent.mean2.y) * 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.0002489/0.5802, allocations: 151.9 kB / 0.4895 GB, free: 2.012 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002764/0.583, allocations: 1.514 MB / 0.491 GB, free: 456 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.583, allocations: 1.062 kB / 0.491 GB, free: 456 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1886/0.7716, allocations: 0.5375 MB / 0.4915 GB, free: 106.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001006/0.7727, allocations: 103.4 kB / 0.4916 GB, free: 106.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003282/0.776, allocations: 1.588 MB / 0.4932 GB, free: 105.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000556/0.7766, allocations: 0.959 MB / 0.4941 GB, free: 104.7 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004499/0.777, allocations: 96.2 kB / 0.4942 GB, free: 104.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001427/0.7772, allocations: 52.44 kB / 0.4943 GB, free: 104.7 MB / 378.7 MB Notification: Performance of SimCode: time 3.526e-06/0.7772, allocations: 0 / 0.4943 GB, free: 104.7 MB / 378.7 MB Notification: Performance of Templates: time 0.01786/0.7951, allocations: 10.63 MB / 0.5047 GB, free: 103.8 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.sim & ./Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/PowerConverters/Examples/DCAC/SinglePhaseTwoLevel/SinglePhaseTwoLevel_R/SinglePhaseTwoLevel_R.csv","../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches