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.001502/0.001502, allocations: 178 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.118/2.118, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001076/0.001075, allocations: 86.14 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.996e-05/2.008e-05, allocations: 0 / 314.8 MB, free: 9.141 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3359/0.3359, allocations: 47.57 MB / 362.4 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1367/0.4727, allocations: 84.8 MB / 447.2 MB, free: 1.484 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003467/0.4731, allocations: 83.94 kB / 447.2 MB, free: 1.402 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05627/0.5294, allocations: 12.25 MB / 459.5 MB, free: 5.18 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.5295, allocations: 0 / 459.5 MB, free: 5.18 MB / 347.1 MB Notification: Performance of Transformations before backend: time 7.263e-05/0.5296, allocations: 16 kB / 459.5 MB, free: 5.164 MB / 347.1 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.003172/0.5327, allocations: 0.9796 MB / 460.5 MB, free: 4.125 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/0.5328, allocations: 12.03 kB / 460.5 MB, free: 4.113 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003903/0.5332, allocations: 102.8 kB / 460.6 MB, free: 4.012 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001426/0.5347, allocations: 0.524 MB / 461.1 MB, free: 3.441 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.468e-05/0.5347, allocations: 20 kB / 461.1 MB, free: 3.422 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001618/0.5349, allocations: 44 kB / 461.2 MB, free: 3.379 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00145/0.5364, allocations: 451.9 kB / 461.6 MB, free: 2.938 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001704/0.5381, allocations: 0.6055 MB / 462.2 MB, free: 2.305 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.601e-05/0.5382, allocations: 3.938 kB / 462.2 MB, free: 2.301 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.448e-05/0.5383, allocations: 4 kB / 462.2 MB, free: 2.297 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.527e-05/0.5383, allocations: 19.95 kB / 462.3 MB, free: 2.277 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006746/0.5451, allocations: 2.502 MB / 464.8 MB, free: 15.68 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001457/0.5466, allocations: 0.495 MB / 465.3 MB, free: 15.18 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006372/0.5472, allocations: 251.1 kB / 465.5 MB, free: 14.93 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.034e-05/0.5473, allocations: 14.16 kB / 465.5 MB, free: 14.92 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009996/0.5483, allocations: 380.7 kB / 465.9 MB, free: 14.53 MB / 363.1 MB Notification: Performance of pre-optimization done (n=67): time 3.427e-06/0.5484, allocations: 0 / 465.9 MB, free: 14.53 MB / 363.1 MB Notification: Performance of matching and sorting (n=67): time 0.001737/0.5501, allocations: 0.5655 MB / 466.4 MB, free: 13.95 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/0.5502, allocations: 119.4 kB / 466.6 MB, free: 13.81 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007382/0.551, allocations: 381.3 kB / 466.9 MB, free: 13.43 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001063/0.5511, allocations: 29.7 kB / 467 MB, free: 13.4 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003624/0.5515, allocations: 374.7 kB / 467.3 MB, free: 13.03 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002699/0.5518, allocations: 189.3 kB / 467.5 MB, free: 12.84 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.034e-05/0.5518, allocations: 0 / 467.5 MB, free: 12.84 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.552, allocations: 334.8 kB / 467.8 MB, free: 12.5 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005587/0.5526, allocations: 185.5 kB / 468 MB, free: 12.32 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000692/0.5533, allocations: 338.4 kB / 468.4 MB, free: 11.92 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006067/0.5539, allocations: 208.6 kB / 468.6 MB, free: 11.71 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.358e-06/0.554, allocations: 3.953 kB / 468.6 MB, free: 11.71 MB / 363.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001784/0.5557, allocations: 0.6057 MB / 469.2 MB, free: 11.09 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009411/0.5567, allocations: 1.864 MB / 471 MB, free: 9.082 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.398e-05/0.5568, allocations: 10.77 kB / 471 MB, free: 9.074 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008274/0.5576, allocations: 147.4 kB / 471.2 MB, free: 8.93 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.5586, allocations: 119.8 kB / 471.3 MB, free: 8.812 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004267/0.5629, allocations: 2.231 MB / 473.5 MB, free: 6.465 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009879/0.564, allocations: 75.55 kB / 473.6 MB, free: 6.391 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.804e-05/0.5641, allocations: 27.98 kB / 473.6 MB, free: 6.363 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.5641, allocations: 4 kB / 473.6 MB, free: 6.359 MB / 363.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001723/0.5658, allocations: 0.5653 MB / 474.2 MB, free: 5.793 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/0.5659, allocations: 4 kB / 474.2 MB, free: 5.789 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006365/0.5665, allocations: 146.6 kB / 474.4 MB, free: 5.645 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008996/0.5674, allocations: 124.1 kB / 474.5 MB, free: 5.523 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004061/0.5715, allocations: 2.195 MB / 476.7 MB, free: 3.219 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007943/0.5724, allocations: 59.61 kB / 476.7 MB, free: 3.16 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.738e-05/0.5725, allocations: 31.98 kB / 476.8 MB, free: 3.129 MB / 363.1 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 () * 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.0003135/0.5728, allocations: 142 kB / 476.9 MB, free: 2.988 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002115/0.573, allocations: 67.2 kB / 477 MB, free: 2.922 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001847/0.5749, allocations: 0.5922 MB / 477.6 MB, free: 2.312 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.524e-05/0.5749, allocations: 8 kB / 477.6 MB, free: 2.305 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.575, allocations: 0 / 477.6 MB, free: 2.305 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.718e-06/0.575, allocations: 0 / 477.6 MB, free: 2.305 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003297/0.5783, allocations: 1.335 MB / 478.9 MB, free: 0.9219 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.5783, allocations: 0 / 478.9 MB, free: 0.9219 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008174/0.5792, allocations: 83.88 kB / 479 MB, free: 0.8398 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006667/0.5799, allocations: 144.9 kB / 479.1 MB, free: 0.6953 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.016e-05/0.5799, allocations: 7.984 kB / 479.1 MB, free: 0.6875 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00405/0.584, allocations: 2.218 MB / 481.3 MB, free: 14.36 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.5841, allocations: 4 kB / 481.4 MB, free: 14.35 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002542/0.5866, allocations: 0.9515 MB / 482.3 MB, free: 13.38 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004661/0.5871, allocations: 200.2 kB / 482.5 MB, free: 13.17 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000141/0.5873, allocations: 8 kB / 482.5 MB, free: 13.16 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008163/0.5881, allocations: 45.17 kB / 482.5 MB, free: 13.12 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002738/0.5884, allocations: 64.47 kB / 482.6 MB, free: 13.05 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.478e-05/0.5885, allocations: 19.98 kB / 482.6 MB, free: 13.04 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.0005335/0.589, allocations: 298.9 kB / 482.9 MB, free: 12.74 MB / 379.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.589, allocations: 0 / 482.9 MB, free: 12.74 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.001722/0.5908, allocations: 326.8 kB / 483.2 MB, free: 12.42 MB / 379.1 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) * 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.0002922/0.5911, allocations: 133.5 kB / 483.4 MB, free: 12.29 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.003219/0.5943, allocations: 1.259 MB / 484.6 MB, free: 10.98 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 1.093e-05/0.5944, allocations: 4 kB / 484.6 MB, free: 10.98 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001151/0.5955, allocations: 464.3 kB / 485.1 MB, free: 10.51 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009277/0.5965, allocations: 80.3 kB / 485.2 MB, free: 10.44 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003249/0.5998, allocations: 0.9701 MB / 486.1 MB, free: 9.43 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007764/0.6006, allocations: 0.9547 MB / 487.1 MB, free: 8.449 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003397/0.6009, allocations: 55.41 kB / 487.1 MB, free: 8.395 MB / 379.1 MB Notification: Performance of SimCode: time 1.032e-06/0.601, allocations: 4 kB / 487.2 MB, free: 8.391 MB / 379.1 MB Notification: Performance of Templates: time 0.02653/0.6275, allocations: 11.36 MB / 498.5 MB, free: 13.05 MB / 395.1 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