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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001475/0.001475, allocations: 200.8 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 226.5 MB / 245.4 MB, free: 8.168 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007632/0.0007632, allocations: 115.2 kB / 297.5 MB, free: 6.867 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001999/0.0001999, allocations: 7.984 kB / 358.1 MB, free: 10.26 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1988/0.199, allocations: 51.29 MB / 409.4 MB, free: 27.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09882/0.2979, allocations: 88.36 MB / 497.8 MB, free: 3.148 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002297/0.2981, allocations: 83.95 kB / 497.8 MB, free: 3.066 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03421/0.3324, allocations: 13.02 MB / 0.4989 GB, free: 5.973 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3324, allocations: 0 / 0.4989 GB, free: 5.973 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.694e-05/0.3325, allocations: 24 kB / 0.4989 GB, free: 5.949 MB / 378.7 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.002103/0.3346, allocations: 1.089 MB / 0.5 GB, free: 4.793 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.3346, allocations: 8.031 kB / 0.5 GB, free: 4.785 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006257/0.3352, allocations: 171.7 kB / 0.5001 GB, free: 4.617 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008877/0.3361, allocations: 0.5636 MB / 0.5007 GB, free: 4.012 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.179e-05/0.3362, allocations: 50.38 kB / 0.5007 GB, free: 3.965 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001262/0.3363, allocations: 72.38 kB / 0.5008 GB, free: 3.895 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001383/0.3377, allocations: 0.7776 MB / 0.5016 GB, free: 3.086 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.626e-05/0.3378, allocations: 4.125 kB / 0.5016 GB, free: 3.082 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.793e-05/0.3379, allocations: 35.92 kB / 0.5016 GB, free: 3.047 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.461e-05/0.3379, allocations: 20 kB / 0.5016 GB, free: 3.027 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001243/0.3391, allocations: 0.5985 MB / 0.5022 GB, free: 2.426 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1768/0.516, allocations: 2.678 MB / 0.5048 GB, free: 90.45 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001757/0.5178, allocations: 0.6209 MB / 0.5054 GB, free: 90.42 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006994/0.5185, allocations: 323.7 kB / 0.5057 GB, free: 90.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.667e-05/0.5186, allocations: 11.23 kB / 0.5057 GB, free: 90.41 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009717/0.5196, allocations: 465.2 kB / 0.5062 GB, free: 90.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=67): time 3.006e-06/0.5196, allocations: 1.375 kB / 0.5062 GB, free: 90.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=67): time 0.003522/0.5231, allocations: 1.273 MB / 0.5074 GB, free: 90.19 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.25e-05/0.5232, allocations: 120.4 kB / 0.5076 GB, free: 90.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008589/0.5241, allocations: 0.5524 MB / 0.5081 GB, free: 89.95 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.869e-05/0.5242, allocations: 44.58 kB / 0.5081 GB, free: 89.92 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002789/0.5244, allocations: 338.8 kB / 0.5085 GB, free: 89.83 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/0.5246, allocations: 200.2 kB / 0.5086 GB, free: 89.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.026e-05/0.5246, allocations: 13.44 kB / 0.5087 GB, free: 89.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.5248, allocations: 380.4 kB / 0.509 GB, free: 89.42 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000564/0.5253, allocations: 251.7 kB / 0.5093 GB, free: 89.42 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007554/0.5261, allocations: 431.6 kB / 0.5097 GB, free: 89.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001349/0.5275, allocations: 0.67 MB / 0.5103 GB, free: 89.03 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.5275, allocations: 1.406 kB / 0.5103 GB, free: 89.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001538/0.529, allocations: 0.8683 MB / 0.5112 GB, free: 88.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001268/0.5292, allocations: 265.8 kB / 0.5114 GB, free: 88.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.5292, allocations: 3.938 kB / 0.5114 GB, free: 88.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004648/0.5297, allocations: 150.7 kB / 0.5116 GB, free: 88.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004505/0.5301, allocations: 117.8 kB / 0.5117 GB, free: 88.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002282/0.5324, allocations: 2.329 MB / 0.514 GB, free: 87.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005503/0.533, allocations: 93.83 kB / 0.5141 GB, free: 87.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.895e-05/0.533, allocations: 30.92 kB / 0.5141 GB, free: 87 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.083e-06/0.533, allocations: 1.625 kB / 0.5141 GB, free: 87 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001247/0.5343, allocations: 0.7598 MB / 0.5148 GB, free: 86.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.5343, allocations: 3.719 kB / 0.5148 GB, free: 86.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003362/0.5347, allocations: 157.8 kB / 0.515 GB, free: 86.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000386/0.5351, allocations: 113.8 kB / 0.5151 GB, free: 86.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001986/0.5371, allocations: 2.322 MB / 0.5174 GB, free: 84.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004996/0.5376, allocations: 78.39 kB / 0.5174 GB, free: 84.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.966e-05/0.5376, allocations: 27.56 kB / 0.5175 GB, free: 84.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_last,fundamentalWaveCurrent.mean1.y_last,$PRE.fundamentalWaveCurrent.mean2.y_last,fundamentalWaveCurrent.mean2.y_last,$PRE.fundamentalWaveVoltage.mean1.y_last,fundamentalWaveVoltage.mean1.y_last,$PRE.fundamentalWaveVoltage.mean2.y_last,fundamentalWaveVoltage.mean2.y_last,$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.0004379/0.5381, allocations: 325.5 kB / 0.5178 GB, free: 84.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.941e-05/0.5382, allocations: 77.66 kB / 0.5178 GB, free: 84.46 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001293/0.5395, allocations: 0.7654 MB / 0.5186 GB, free: 84.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.5395, allocations: 7.906 kB / 0.5186 GB, free: 84.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-06/0.5395, allocations: 0 / 0.5186 GB, free: 84.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.5395, allocations: 7.688 kB / 0.5186 GB, free: 84.14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002011/0.5415, allocations: 1.589 MB / 0.5202 GB, free: 83.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.5415, allocations: 0 / 0.5202 GB, free: 83.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003544/0.5419, allocations: 80.61 kB / 0.5202 GB, free: 83.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003475/0.5422, allocations: 156.4 kB / 0.5204 GB, free: 83.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.863e-05/0.5423, allocations: 12.06 kB / 0.5204 GB, free: 83.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001975/0.5443, allocations: 2.316 MB / 0.5227 GB, free: 81.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.5443, allocations: 0 / 0.5227 GB, free: 81.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001741/0.546, allocations: 1.192 MB / 0.5238 GB, free: 80.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002413/0.5463, allocations: 203.7 kB / 0.524 GB, free: 80.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.129e-05/0.5464, allocations: 18.66 kB / 0.524 GB, free: 80.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004017/0.5468, allocations: 55.38 kB / 0.5241 GB, free: 80.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001463/0.5469, allocations: 67.23 kB / 0.5242 GB, free: 80.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.911e-05/0.547, allocations: 21.47 kB / 0.5242 GB, free: 80.67 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003806/0.5474, allocations: 385 kB / 0.5245 GB, free: 80.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5474, allocations: 0 / 0.5245 GB, free: 80.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001041/0.5484, allocations: 370.4 kB / 0.5249 GB, free: 80.41 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_last,fundamentalWaveVoltage.mean2.y_last,fundamentalWaveCurrent.mean1.y_last,fundamentalWaveCurrent.mean2.y_last) * 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.0001817/0.5486, allocations: 158.3 kB / 0.525 GB, free: 80.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002199/0.5508, allocations: 1.515 MB / 0.5265 GB, free: 79.53 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.5508, allocations: 3.188 kB / 0.5265 GB, free: 79.53 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000713/0.5516, allocations: 0.5437 MB / 0.5271 GB, free: 79.25 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000669/0.5522, allocations: 118.9 kB / 0.5272 GB, free: 79.21 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002139/0.5544, allocations: 1.623 MB / 0.5288 GB, free: 78.02 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003243/0.5547, allocations: 0.9605 MB / 0.5297 GB, free: 77.14 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003852/0.5551, allocations: 101.4 kB / 0.5298 GB, free: 77.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/0.5553, allocations: 47 kB / 0.5298 GB, free: 77.03 MB / 378.7 MB Notification: Performance of SimCode: time 4.01e-07/0.5553, allocations: 0 / 0.5298 GB, free: 77.03 MB / 378.7 MB Notification: Performance of Templates: time 0.01533/0.5706, allocations: 10.86 MB / 0.5404 GB, free: 68.76 MB / 378.7 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","../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches