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.0009769/0.0009772, allocations: 182.6 kB / 18.04 MB, free: 3.785 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.265/1.265, allocations: 205.4 MB / 224.2 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.0007656/0.0007656, allocations: 88.98 kB / 272.5 MB, free: 8.281 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002875/0.0002876, allocations: 8 kB / 329.5 MB, free: 15.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1844/0.1847, allocations: 47.58 MB / 377 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08924/0.2739, allocations: 85.65 MB / 462.7 MB, free: 10.89 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002477/0.2742, allocations: 91.89 kB / 462.8 MB, free: 10.8 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03472/0.309, allocations: 12.38 MB / 475.2 MB, free: 14.36 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.297e-06/0.309, allocations: 4 kB / 475.2 MB, free: 14.35 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.416e-05/0.3091, allocations: 16 kB / 475.2 MB, free: 14.34 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.001873/0.3109, allocations: 1.058 MB / 476.2 MB, free: 13.21 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.311, allocations: 12.03 kB / 476.2 MB, free: 13.2 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001715/0.3112, allocations: 95.81 kB / 476.3 MB, free: 13.11 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008061/0.312, allocations: 0.5482 MB / 476.9 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.59e-05/0.312, allocations: 58.36 kB / 476.9 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.3122, allocations: 68.38 kB / 477 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001362/0.3135, allocations: 0.762 MB / 477.8 MB, free: 11.6 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.585e-05/0.3136, allocations: 4.188 kB / 477.8 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.716e-05/0.3136, allocations: 31.94 kB / 477.8 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.739e-05/0.3137, allocations: 19.98 kB / 477.8 MB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001267/0.3149, allocations: 0.6062 MB / 478.4 MB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003817/0.3188, allocations: 2.637 MB / 481.1 MB, free: 8.199 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001227/0.32, allocations: 0.6232 MB / 481.7 MB, free: 7.562 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005857/0.3206, allocations: 322 kB / 482 MB, free: 7.25 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.259e-05/0.3207, allocations: 8.562 kB / 482 MB, free: 7.242 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008146/0.3215, allocations: 461.7 kB / 482.5 MB, free: 6.773 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 2.785e-06/0.3215, allocations: 0 / 482.5 MB, free: 6.773 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.003175/0.3247, allocations: 1.277 MB / 483.7 MB, free: 5.469 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.353e-05/0.3248, allocations: 119.4 kB / 483.9 MB, free: 5.324 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006283/0.3254, allocations: 0.5225 MB / 484.4 MB, free: 4.797 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.015e-05/0.3255, allocations: 49.69 kB / 484.4 MB, free: 4.742 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002279/0.3257, allocations: 320.6 kB / 484.7 MB, free: 4.422 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001614/0.3259, allocations: 209.1 kB / 485 MB, free: 4.215 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.517e-05/0.3259, allocations: 20 kB / 485 MB, free: 4.195 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.3261, allocations: 374.8 kB / 485.3 MB, free: 3.82 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005401/0.3266, allocations: 249.9 kB / 485.6 MB, free: 3.574 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000655/0.3273, allocations: 426 kB / 486 MB, free: 3.09 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00117/0.3285, allocations: 0.672 MB / 486.7 MB, free: 2.344 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.3285, allocations: 7.938 kB / 486.7 MB, free: 2.336 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001606/0.3301, allocations: 0.8571 MB / 487.5 MB, free: 1.461 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000183/0.3303, allocations: 253.6 kB / 487.8 MB, free: 1.141 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.3303, allocations: 4 kB / 487.8 MB, free: 1.137 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000552/0.3309, allocations: 156.7 kB / 487.9 MB, free: 0.9805 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005602/0.3315, allocations: 119.8 kB / 488.1 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002803/0.3343, allocations: 2.325 MB / 490.4 MB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005057/0.3348, allocations: 95.38 kB / 490.5 MB, free: 14.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.256e-05/0.3349, allocations: 32 kB / 490.5 MB, free: 14.28 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.142e-06/0.3349, allocations: 4 kB / 490.5 MB, free: 14.28 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001415/0.3363, allocations: 0.7547 MB / 491.3 MB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.3363, allocations: 4 kB / 491.3 MB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003738/0.3367, allocations: 159.1 kB / 491.4 MB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004288/0.3371, allocations: 120 kB / 491.5 MB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002441/0.3396, allocations: 2.309 MB / 493.8 MB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004516/0.3401, allocations: 83.48 kB / 493.9 MB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.403e-05/0.3401, allocations: 24 kB / 494 MB, free: 10.69 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.0003702/0.3405, allocations: 317.1 kB / 494.3 MB, free: 10.37 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.785e-05/0.3406, allocations: 71.16 kB / 494.3 MB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001522/0.3421, allocations: 0.7682 MB / 495.1 MB, free: 9.512 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.3422, allocations: 8 kB / 495.1 MB, free: 9.504 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.3422, allocations: 3.938 kB / 495.1 MB, free: 9.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.3422, allocations: 3.984 kB / 495.1 MB, free: 9.496 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002399/0.3446, allocations: 1.569 MB / 496.7 MB, free: 7.871 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.3446, allocations: 7.922 kB / 496.7 MB, free: 7.863 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003912/0.345, allocations: 87.88 kB / 496.8 MB, free: 7.777 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003832/0.3454, allocations: 148.7 kB / 496.9 MB, free: 7.629 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.713e-05/0.3455, allocations: 19.92 kB / 496.9 MB, free: 7.609 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002575/0.348, allocations: 2.325 MB / 499.3 MB, free: 5.156 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3481, allocations: 0 / 499.3 MB, free: 5.156 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002069/0.3501, allocations: 1.183 MB / 0.4887 GB, free: 3.953 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002593/0.3504, allocations: 204.1 kB / 0.4889 GB, free: 3.734 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.834e-05/0.3505, allocations: 19.98 kB / 0.4889 GB, free: 3.715 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004236/0.3509, allocations: 59.89 kB / 0.489 GB, free: 3.656 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001493/0.3511, allocations: 64.47 kB / 0.4891 GB, free: 3.594 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-05/0.3511, allocations: 19.98 kB / 0.4891 GB, free: 3.574 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004319/0.3516, allocations: 374.8 kB / 0.4894 GB, free: 3.211 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3516, allocations: 0 / 0.4894 GB, free: 3.211 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001082/0.3527, allocations: 351.2 kB / 0.4898 GB, free: 2.867 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.0002374/0.3529, allocations: 145.1 kB / 0.4899 GB, free: 2.719 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002901/0.3558, allocations: 1.513 MB / 0.4914 GB, free: 1.156 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3559, allocations: 0 / 0.4914 GB, free: 1.156 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008586/0.3567, allocations: 0.5411 MB / 0.4919 GB, free: 0.6016 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006567/0.3574, allocations: 124.7 kB / 0.492 GB, free: 496 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.133/0.4904, allocations: 1.584 MB / 0.4936 GB, free: 105.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004762/0.4909, allocations: 0.9451 MB / 0.4945 GB, free: 104.8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005049/0.4914, allocations: 95.3 kB / 0.4946 GB, free: 104.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002282/0.4917, allocations: 49.27 kB / 0.4946 GB, free: 104.8 MB / 378.7 MB Notification: Performance of SimCode: time 7.01e-07/0.4917, allocations: 0 / 0.4946 GB, free: 104.8 MB / 378.7 MB Notification: Performance of Templates: time 0.0171/0.5088, allocations: 10.72 MB / 0.5051 GB, free: 104 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/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_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches