Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001634/0.001633, allocations: 188.4 kB / 16.41 MB, free: 5.723 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.966/1.966, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001146/0.001146, allocations: 92.42 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003854/0.0003857, allocations: 11.98 kB / 327 MB, free: 184 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.332/0.3324, allocations: 47.56 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1364/0.4689, allocations: 85.56 MB / 460.1 MB, free: 11.19 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004098/0.4694, allocations: 91.94 kB / 460.2 MB, free: 11.1 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05449/0.5239, allocations: 12.37 MB / 472.6 MB, free: 14.66 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.524, allocations: 0 / 472.6 MB, free: 14.66 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.429e-05/0.524, allocations: 16 kB / 472.6 MB, free: 14.64 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.003218/0.5273, allocations: 1.069 MB / 473.7 MB, free: 13.5 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.5273, allocations: 8.031 kB / 473.7 MB, free: 13.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003013/0.5276, allocations: 106.8 kB / 473.8 MB, free: 13.39 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001244/0.5289, allocations: 0.524 MB / 474.3 MB, free: 12.83 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.982e-05/0.529, allocations: 57.94 kB / 474.3 MB, free: 12.77 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002068/0.5292, allocations: 71.91 kB / 474.4 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002245/0.5315, allocations: 0.7615 MB / 475.2 MB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.782e-05/0.5315, allocations: 0 / 475.2 MB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001202/0.5317, allocations: 32 kB / 475.2 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.281e-05/0.5317, allocations: 19.94 kB / 475.2 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002231/0.5339, allocations: 0.5985 MB / 475.8 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006431/0.5404, allocations: 2.641 MB / 478.5 MB, free: 8.523 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002169/0.5426, allocations: 0.6078 MB / 479.1 MB, free: 7.902 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.824e-05/0.5427, allocations: 12.55 kB / 479.1 MB, free: 7.891 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001392/0.5441, allocations: 461.7 kB / 479.5 MB, free: 7.422 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 3.576e-06/0.5442, allocations: 0 / 479.5 MB, free: 7.422 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.005769/0.5499, allocations: 1.254 MB / 480.8 MB, free: 6.141 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.432e-05/0.5501, allocations: 111.4 kB / 480.9 MB, free: 6.008 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009504/0.551, allocations: 478.2 kB / 481.4 MB, free: 5.531 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001285/0.5512, allocations: 45.69 kB / 481.4 MB, free: 5.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003176/0.5515, allocations: 359 kB / 481.8 MB, free: 5.129 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002555/0.5518, allocations: 201.2 kB / 482 MB, free: 4.93 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.15e-05/0.5519, allocations: 16 kB / 482 MB, free: 4.914 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.552, allocations: 338.8 kB / 482.3 MB, free: 4.574 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009743/0.553, allocations: 249.9 kB / 482.5 MB, free: 4.328 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001104/0.5541, allocations: 426 kB / 483 MB, free: 3.844 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001075/0.5552, allocations: 302.4 kB / 483.3 MB, free: 3.539 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.273e-06/0.5552, allocations: 0 / 483.3 MB, free: 3.539 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002835/0.5581, allocations: 0.8303 MB / 484.1 MB, free: 2.691 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007373/0.5589, allocations: 1.86 MB / 485.9 MB, free: 0.6836 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.716e-05/0.5589, allocations: 4 kB / 486 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008153/0.5597, allocations: 157.7 kB / 486.1 MB, free: 0.5234 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009913/0.5607, allocations: 127.8 kB / 486.2 MB, free: 408 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004752/0.5655, allocations: 2.357 MB / 488.6 MB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/0.5666, allocations: 91.34 kB / 488.7 MB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.311e-05/0.5667, allocations: 28 kB / 488.7 MB, free: 13.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.5667, allocations: 9.562 kB / 488.7 MB, free: 13.78 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002612/0.5694, allocations: 0.7625 MB / 489.5 MB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.666e-05/0.5694, allocations: 8 kB / 489.5 MB, free: 13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006587/0.5701, allocations: 140.8 kB / 489.6 MB, free: 12.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008857/0.571, allocations: 116 kB / 489.7 MB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004542/0.5756, allocations: 2.343 MB / 492.1 MB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007929/0.5764, allocations: 83.5 kB / 492.2 MB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.934e-05/0.5765, allocations: 24 kB / 492.2 MB, free: 10.17 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.0006937/0.5772, allocations: 313.9 kB / 492.5 MB, free: 9.852 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002284/0.5775, allocations: 71.16 kB / 492.6 MB, free: 9.781 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002784/0.5803, allocations: 0.7682 MB / 493.3 MB, free: 9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.738e-05/0.5803, allocations: 8 kB / 493.3 MB, free: 8.992 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.5803, allocations: 0 / 493.3 MB, free: 8.992 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.5803, allocations: 0 / 493.3 MB, free: 8.992 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004348/0.5847, allocations: 1.572 MB / 494.9 MB, free: 7.363 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.5848, allocations: 0 / 494.9 MB, free: 7.363 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008103/0.5856, allocations: 91.88 kB / 495 MB, free: 7.273 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007224/0.5863, allocations: 152.8 kB / 495.1 MB, free: 7.121 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.49e-05/0.5864, allocations: 15.98 kB / 495.2 MB, free: 7.105 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00434/0.5908, allocations: 2.366 MB / 497.5 MB, free: 4.613 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.5908, allocations: 4 kB / 497.5 MB, free: 4.609 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003901/0.5947, allocations: 1.183 MB / 498.7 MB, free: 3.406 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005213/0.5953, allocations: 212 kB / 498.9 MB, free: 3.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001567/0.5955, allocations: 12 kB / 498.9 MB, free: 3.168 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008136/0.5963, allocations: 55.95 kB / 499 MB, free: 3.113 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002599/0.5966, allocations: 68.45 kB / 499.1 MB, free: 3.047 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.883e-05/0.5967, allocations: 27.98 kB / 499.1 MB, free: 3.02 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007482/0.5974, allocations: 362.8 kB / 499.4 MB, free: 2.668 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.525e-06/0.5975, allocations: 0 / 499.4 MB, free: 2.668 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001685/0.5992, allocations: 359.1 kB / 499.8 MB, free: 2.316 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.0003119/0.5995, allocations: 144 kB / 499.9 MB, free: 2.164 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004511/0.604, allocations: 1.514 MB / 0.4897 GB, free: 0.5977 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.121e-05/0.6041, allocations: 4.312 kB / 0.4897 GB, free: 0.5938 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001626/0.6057, allocations: 0.5366 MB / 0.4902 GB, free: 44 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2578/0.8636, allocations: 104.7 kB / 0.4903 GB, free: 106 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005224/0.8688, allocations: 1.622 MB / 0.4919 GB, free: 105.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006688/0.8696, allocations: 0.9648 MB / 0.4928 GB, free: 104.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003755/0.87, allocations: 52.98 kB / 0.4929 GB, free: 104.6 MB / 378.7 MB Notification: Performance of SimCode: time 1.162e-06/0.87, allocations: 0 / 0.4929 GB, free: 104.6 MB / 378.7 MB Notification: Performance of Templates: time 0.02498/0.895, allocations: 11.79 MB / 0.5044 GB, free: 103 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches