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.002706/0.002706, allocations: 181.2 kB / 17.41 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.333/3.333, allocations: 205.4 MB / 223.6 MB, free: 8.941 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.001218/0.001217, allocations: 100.1 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007235/0.0007236, allocations: 8 kB / 328.2 MB, free: 15.92 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5319/0.5327, allocations: 47.57 MB / 375.7 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2049/0.7377, allocations: 85.65 MB / 461.4 MB, free: 10.97 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005155/0.7383, allocations: 91.89 kB / 461.5 MB, free: 10.88 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07122/0.8096, allocations: 12.38 MB / 473.9 MB, free: 14.43 MB / 362.7 MB Notification: Performance of FrontEnd: time 6.763e-06/0.8097, allocations: 0 / 473.9 MB, free: 14.43 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001686/0.8099, allocations: 16 kB / 473.9 MB, free: 14.41 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.005865/0.8158, allocations: 1.058 MB / 474.9 MB, free: 13.29 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.43e-05/0.8159, allocations: 16.03 kB / 474.9 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007073/0.8166, allocations: 95.81 kB / 475 MB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002426/0.8191, allocations: 0.5443 MB / 475.6 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001323/0.8192, allocations: 58.36 kB / 475.6 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003806/0.8196, allocations: 68.38 kB / 475.7 MB, free: 12.47 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003649/0.8233, allocations: 0.7659 MB / 476.5 MB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.194e-05/0.8234, allocations: 192 / 476.5 MB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000188/0.8236, allocations: 43.92 kB / 476.5 MB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.329e-05/0.8237, allocations: 16 kB / 476.5 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003113/0.8268, allocations: 0.5945 MB / 477.1 MB, free: 11.02 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01038/0.8373, allocations: 2.641 MB / 479.8 MB, free: 8.277 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002893/0.8403, allocations: 0.6154 MB / 480.4 MB, free: 7.648 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001325/0.8417, allocations: 321.2 kB / 480.7 MB, free: 7.336 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.682e-05/0.8418, allocations: 8.562 kB / 480.7 MB, free: 7.328 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001905/0.8437, allocations: 465.6 kB / 481.2 MB, free: 6.855 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 6.602e-06/0.8438, allocations: 0 / 481.2 MB, free: 6.855 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.007352/0.8511, allocations: 1.273 MB / 482.4 MB, free: 5.555 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001577/0.8514, allocations: 119.4 kB / 482.5 MB, free: 5.41 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001861/0.8533, allocations: 0.5303 MB / 483.1 MB, free: 4.875 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002077/0.8535, allocations: 41.7 kB / 483.1 MB, free: 4.828 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000682/0.8542, allocations: 328.6 kB / 483.4 MB, free: 4.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004498/0.8547, allocations: 205.1 kB / 483.6 MB, free: 4.297 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.8548, allocations: 16 kB / 483.7 MB, free: 4.281 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004224/0.8553, allocations: 374.8 kB / 484 MB, free: 3.906 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00139/0.8567, allocations: 249.9 kB / 484.3 MB, free: 3.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001647/0.8584, allocations: 426 kB / 484.7 MB, free: 3.172 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002816/0.8612, allocations: 0.6759 MB / 485.4 MB, free: 2.426 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.268e-05/0.8613, allocations: 3.938 kB / 485.4 MB, free: 2.422 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.003943/0.8652, allocations: 0.8571 MB / 486.2 MB, free: 1.547 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005219/0.8658, allocations: 257.6 kB / 486.5 MB, free: 1.223 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.764e-05/0.8659, allocations: 8 kB / 486.5 MB, free: 1.215 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00115/0.867, allocations: 152.7 kB / 486.6 MB, free: 1.062 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001041/0.8681, allocations: 119.8 kB / 486.7 MB, free: 0.9453 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006057/0.8742, allocations: 2.327 MB / 489.1 MB, free: 14.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001431/0.8757, allocations: 99.38 kB / 489.2 MB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002022/0.876, allocations: 28 kB / 489.2 MB, free: 14.36 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.876, allocations: 4 kB / 489.2 MB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003012/0.879, allocations: 0.7588 MB / 490 MB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.925e-05/0.8791, allocations: 4 kB / 490 MB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007884/0.8799, allocations: 152.7 kB / 490.1 MB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000807/0.8807, allocations: 127.8 kB / 490.2 MB, free: 13.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00559/0.8863, allocations: 2.305 MB / 492.5 MB, free: 10.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001492/0.8879, allocations: 83.48 kB / 492.6 MB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000211/0.8882, allocations: 24 kB / 492.6 MB, free: 10.77 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.001298/0.8895, allocations: 312.9 kB / 493 MB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004297/0.89, allocations: 75.14 kB / 493 MB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003506/0.8935, allocations: 0.7643 MB / 493.8 MB, free: 9.594 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.801e-05/0.8935, allocations: 8 kB / 493.8 MB, free: 9.586 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.8936, allocations: 3.938 kB / 493.8 MB, free: 9.582 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.694e-05/0.8936, allocations: 3.984 kB / 493.8 MB, free: 9.578 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005637/0.8992, allocations: 1.576 MB / 495.4 MB, free: 7.945 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.285e-05/0.8993, allocations: 4 kB / 495.4 MB, free: 7.941 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008156/0.9001, allocations: 79.88 kB / 495.5 MB, free: 7.863 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008943/0.9011, allocations: 158.5 kB / 495.6 MB, free: 7.707 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.258e-05/0.9012, allocations: 15.94 kB / 495.6 MB, free: 7.691 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005745/0.907, allocations: 2.329 MB / 498 MB, free: 5.238 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/0.907, allocations: 0 / 498 MB, free: 5.238 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004811/0.9118, allocations: 1.179 MB / 499.1 MB, free: 4.039 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008365/0.9127, allocations: 212.1 kB / 499.3 MB, free: 3.812 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003458/0.9131, allocations: 16 kB / 499.4 MB, free: 3.797 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001051/0.9142, allocations: 55.89 kB / 499.4 MB, free: 3.742 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003836/0.9146, allocations: 64.47 kB / 499.5 MB, free: 3.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001135/0.9147, allocations: 23.98 kB / 499.5 MB, free: 3.656 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001181/0.9159, allocations: 370.8 kB / 499.9 MB, free: 3.297 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.916, allocations: 0 / 499.9 MB, free: 3.297 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002987/0.919, allocations: 359.2 kB / 0.4885 GB, free: 2.945 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.0005056/0.9195, allocations: 139.9 kB / 0.4886 GB, free: 2.801 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005574/0.9251, allocations: 1.517 MB / 0.4901 GB, free: 1.234 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.417e-05/0.9252, allocations: 0 / 0.4901 GB, free: 1.234 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001877/0.9271, allocations: 0.5413 MB / 0.4906 GB, free: 0.6797 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001917/0.929, allocations: 122.1 kB / 0.4908 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4017/1.331, allocations: 1.621 MB / 0.4923 GB, free: 105.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001169/1.332, allocations: 0.9444 MB / 0.4933 GB, free: 104.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004971/1.333, allocations: 54.55 kB / 0.4933 GB, free: 104.4 MB / 378.7 MB Notification: Performance of SimCode: time 1.573e-06/1.333, allocations: 0.6875 kB / 0.4933 GB, free: 104.4 MB / 378.7 MB Notification: Performance of Templates: time 0.041/1.374, allocations: 12.22 MB / 0.5052 GB, free: 102.6 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