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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001558/0.001558, allocations: 106.6 kB / 18.4 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001737/0.001737, allocations: 190.1 kB / 19.34 MB, free: 3.773 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.31/1.31, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001078/0.001078, allocations: 51.92 kB / 329.3 MB, free: 3.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0735/0.07458, allocations: 46.62 MB / 375.9 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R): time 0.159/0.2336, allocations: 4.728 MB / 380.6 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00226/0.2359, allocations: 1.402 MB / 382 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002809/0.2362, allocations: 17.97 kB / 382 MB, free: 9.672 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002628/0.2365, allocations: 127.4 kB / 382.1 MB, free: 9.594 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003954/0.2369, allocations: 212.2 kB / 382.3 MB, free: 9.484 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005626/0.2375, allocations: 357.4 kB / 382.7 MB, free: 9.469 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000901/0.2384, allocations: 1.032 MB / 383.7 MB, free: 9.273 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006345/0.2391, allocations: 414.9 kB / 384.1 MB, free: 9.094 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003737/0.2394, allocations: 384.5 kB / 384.5 MB, free: 8.902 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000455/0.2399, allocations: 428.6 kB / 384.9 MB, free: 8.68 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001319/0.24, allocations: 98.09 kB / 385 MB, free: 8.68 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001401/0.2402, allocations: 98.75 kB / 385.1 MB, free: 8.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001637/0.2404, allocations: 211.1 kB / 385.3 MB, free: 8.539 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003221/0.2407, allocations: 458.9 kB / 385.8 MB, free: 8.238 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009568/0.2417, allocations: 1.095 MB / 386.9 MB, free: 7.801 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2417, allocations: 1.094 kB / 386.9 MB, free: 7.801 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2417, allocations: 0 / 386.9 MB, free: 7.801 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.275e-05/0.2417, allocations: 0 / 386.9 MB, free: 7.801 MB / 318.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.002036/0.2437, allocations: 1.185 MB / 388.1 MB, free: 6.984 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.2438, allocations: 13.03 kB / 388.1 MB, free: 6.98 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001543/0.2439, allocations: 97.11 kB / 388.2 MB, free: 6.934 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009142/0.2449, allocations: 0.5902 MB / 388.8 MB, free: 6.535 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.534e-05/0.2449, allocations: 53.06 kB / 388.8 MB, free: 6.512 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/0.245, allocations: 73.25 kB / 388.9 MB, free: 6.488 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001224/0.2463, allocations: 0.7451 MB / 389.6 MB, free: 6.145 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.242e-05/0.2463, allocations: 5.344 kB / 389.6 MB, free: 6.141 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.501e-05/0.2464, allocations: 27.73 kB / 389.7 MB, free: 6.121 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.2464, allocations: 17.91 kB / 389.7 MB, free: 6.121 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001125/0.2475, allocations: 0.5496 MB / 390.2 MB, free: 5.938 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003258/0.2508, allocations: 2.567 MB / 392.8 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001105/0.2519, allocations: 0.5784 MB / 393.4 MB, free: 4.094 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005162/0.2524, allocations: 302 kB / 393.7 MB, free: 3.98 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.969e-05/0.2525, allocations: 8.141 kB / 393.7 MB, free: 3.98 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007554/0.2532, allocations: 447.6 kB / 394.1 MB, free: 3.797 MB / 318.1 MB Notification: Performance of pre-optimization done (n=67): time 2.255e-06/0.2533, allocations: 0 / 394.1 MB, free: 3.797 MB / 318.1 MB Notification: Performance of matching and sorting (n=67): time 0.00305/0.2563, allocations: 1.212 MB / 395.3 MB, free: 3.328 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.699e-05/0.2564, allocations: 114.8 kB / 395.4 MB, free: 3.199 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005668/0.2569, allocations: 0.5341 MB / 396 MB, free: 2.945 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.188e-05/0.257, allocations: 44.92 kB / 396 MB, free: 2.902 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001862/0.2572, allocations: 335.5 kB / 396.3 MB, free: 2.641 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001218/0.2573, allocations: 199.7 kB / 396.5 MB, free: 2.492 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001919/0.2575, allocations: 138 kB / 396.7 MB, free: 2.422 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.193e-05/0.2576, allocations: 387.9 kB / 397 MB, free: 2.07 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004811/0.2581, allocations: 229.5 kB / 397.3 MB, free: 1.988 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005445/0.2586, allocations: 421.3 kB / 397.7 MB, free: 1.684 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009485/0.2596, allocations: 0.6354 MB / 398.3 MB, free: 1.266 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.2596, allocations: 1.25 kB / 398.3 MB, free: 1.266 MB / 318.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001368/0.261, allocations: 0.8191 MB / 399.1 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.027e-05/0.261, allocations: 43.55 kB / 399.2 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.2611, allocations: 5.719 kB / 399.2 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004578/0.2615, allocations: 158 kB / 399.3 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004497/0.262, allocations: 117.5 kB / 399.5 MB, free: 0.793 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002767/0.2648, allocations: 2.556 MB / 402 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005141/0.2653, allocations: 84.03 kB / 402.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.371e-05/0.2653, allocations: 30.66 kB / 402.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006178/0.266, allocations: 374.4 kB / 402.5 MB, free: 14.53 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005661/0.2665, allocations: 403.3 kB / 402.9 MB, free: 14.24 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000967/0.2675, allocations: 0.6163 MB / 403.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.857e-06/0.2675, allocations: 2.188 kB / 403.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=89) (initialization_lambda0): time 0.001436/0.269, allocations: 0.8054 MB / 404.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.056e-05/0.269, allocations: 44.16 kB / 404.3 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.269, allocations: 9.016 kB / 404.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003988/0.2694, allocations: 155 kB / 404.5 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004343/0.2699, allocations: 112.9 kB / 404.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002858/0.2728, allocations: 2.551 MB / 407.2 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005145/0.2733, allocations: 73.34 kB / 407.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.683e-05/0.2733, allocations: 25.22 kB / 407.3 MB, free: 11.2 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 30 (signalPWM.zeroOrderHold.firstTrigger,$PRE.signalPWM.zeroOrderHold.firstTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fundamentalWaveCurrent.mean2.y,$PRE.fundamentalWaveCurrent.mean2.y,fundamentalWaveCurrent.mean1.y,$PRE.fundamentalWaveCurrent.mean1.y,fundamentalWaveVoltage.mean2.y,$PRE.fundamentalWaveVoltage.mean2.y,fundamentalWaveVoltage.mean1.y,$PRE.fundamentalWaveVoltage.mean1.y,signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.count,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.T_start,$PRE.signalPWM.zeroOrderHold.ySample,signalPWM.notFire,inverter.diode_n.off,inverter.transistor_n.off,inverter.diode_p.off,inverter.transistor_p.off,inverter.andCondition_n.y,inverter.andCondition_p.y,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0002387/0.2736, allocations: 254.8 kB / 407.5 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.2737, allocations: 77.41 kB / 407.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001601/0.2753, allocations: 0.746 MB / 408.3 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.2753, allocations: 3.984 kB / 408.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.2753, allocations: 1.25 kB / 408.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002466/0.2756, allocations: 203.6 kB / 408.5 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.2757, allocations: 17.59 kB / 408.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004091/0.2761, allocations: 40.14 kB / 408.6 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001341/0.2763, allocations: 58.3 kB / 408.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00193/0.2782, allocations: 0.8481 MB / 409.5 MB, free: 9.797 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001779/0.28, allocations: 1.102 MB / 410.6 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000495/0.2805, allocations: 267.5 kB / 410.9 MB, free: 9.004 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003963/0.2809, allocations: 371.2 kB / 411.2 MB, free: 8.789 MB / 334.1 MB Notification: Performance of Backend: time 3.81e-07/0.2809, allocations: 3.938 kB / 411.2 MB, free: 8.785 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002388/0.2833, allocations: 1.331 MB / 412.6 MB, free: 7.883 MB / 334.1 MB Notification: Performance of SimCode: time 0.002228/0.2856, allocations: 1.782 MB / 414.3 MB, free: 6.578 MB / 334.1 MB Notification: Performance of Templates: time 0.02298/0.3085, allocations: 13.81 MB / 428.2 MB, free: 9.605 MB / 350.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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