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.001457/0.001457, allocations: 105.7 kB / 18.4 MB, free: 4.68 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.001647/0.001647, allocations: 187 kB / 19.34 MB, free: 3.754 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.296/1.296, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.001291/0.001291, allocations: 47.94 kB / 329.2 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07509/0.07639, allocations: 46.62 MB / 375.9 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R): time 0.1605/0.2369, allocations: 4.739 MB / 380.6 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002485/0.2394, allocations: 1.406 MB / 382 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003474/0.2398, allocations: 23.31 kB / 382 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002944/0.2401, allocations: 127.5 kB / 382.2 MB, free: 9.617 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004215/0.2405, allocations: 213.4 kB / 382.4 MB, free: 9.512 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006619/0.2412, allocations: 360.9 kB / 382.7 MB, free: 9.488 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008898/0.2421, allocations: 1.035 MB / 383.8 MB, free: 9.273 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006168/0.2427, allocations: 412.6 kB / 384.2 MB, free: 9.098 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004176/0.2432, allocations: 390.5 kB / 384.5 MB, free: 8.902 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004328/0.2436, allocations: 428.1 kB / 385 MB, free: 8.68 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001386/0.2437, allocations: 98.94 kB / 385 MB, free: 8.68 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001463/0.2439, allocations: 98.38 kB / 385.1 MB, free: 8.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001751/0.2441, allocations: 216.1 kB / 385.4 MB, free: 8.535 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003342/0.2444, allocations: 450.9 kB / 385.8 MB, free: 8.242 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009929/0.2454, allocations: 1.096 MB / 386.9 MB, free: 7.801 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2454, allocations: 0 / 386.9 MB, free: 7.801 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2454, allocations: 0 / 386.9 MB, free: 7.801 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.379e-05/0.2455, allocations: 1.938 kB / 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.002063/0.2475, allocations: 1.184 MB / 388.1 MB, free: 6.984 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.2476, allocations: 12.59 kB / 388.1 MB, free: 6.98 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001551/0.2477, allocations: 96.67 kB / 388.2 MB, free: 6.934 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009339/0.2487, allocations: 0.5848 MB / 388.8 MB, free: 6.543 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.498e-05/0.2487, allocations: 56.62 kB / 388.8 MB, free: 6.516 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.759e-05/0.2488, allocations: 67.8 kB / 388.9 MB, free: 6.496 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001294/0.2501, allocations: 0.7475 MB / 389.6 MB, free: 6.148 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.213e-05/0.2502, allocations: 1.797 kB / 389.6 MB, free: 6.148 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.753e-05/0.2502, allocations: 30.28 kB / 389.7 MB, free: 6.129 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/0.2503, allocations: 16.31 kB / 389.7 MB, free: 6.129 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001169/0.2514, allocations: 0.5563 MB / 390.2 MB, free: 5.938 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003359/0.2548, allocations: 2.566 MB / 392.8 MB, free: 4.34 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001138/0.256, allocations: 0.5794 MB / 393.4 MB, free: 4.094 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005439/0.2565, allocations: 300.1 kB / 393.7 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.878e-05/0.2566, allocations: 10.09 kB / 393.7 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007903/0.2574, allocations: 441 kB / 394.1 MB, free: 3.805 MB / 318.1 MB Notification: Performance of pre-optimization done (n=67): time 2.144e-06/0.2574, allocations: 0 / 394.1 MB, free: 3.805 MB / 318.1 MB Notification: Performance of matching and sorting (n=67): time 0.003142/0.2605, allocations: 1.211 MB / 395.3 MB, free: 3.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.321e-05/0.2606, allocations: 114.9 kB / 395.4 MB, free: 3.211 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005755/0.2612, allocations: 0.5377 MB / 396 MB, free: 2.953 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.097e-05/0.2612, allocations: 43.52 kB / 396 MB, free: 2.91 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001824/0.2614, allocations: 335.6 kB / 396.4 MB, free: 2.648 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.2616, allocations: 201.8 kB / 396.5 MB, free: 2.496 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001956/0.2618, allocations: 136.8 kB / 396.7 MB, free: 2.426 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.369e-05/0.2619, allocations: 379.4 kB / 397.1 MB, free: 2.082 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005093/0.2624, allocations: 230.5 kB / 397.3 MB, free: 2 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005596/0.2629, allocations: 416.8 kB / 397.7 MB, free: 1.699 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/0.264, allocations: 0.6397 MB / 398.3 MB, free: 1.277 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.264, allocations: 1.781 kB / 398.3 MB, free: 1.277 MB / 318.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001434/0.2654, allocations: 0.827 MB / 399.2 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.019e-05/0.2655, allocations: 42.55 kB / 399.2 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.2655, allocations: 5.688 kB / 399.2 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004622/0.2659, allocations: 153.9 kB / 399.4 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004671/0.2664, allocations: 117 kB / 399.5 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002751/0.2692, allocations: 2.558 MB / 402 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005189/0.2697, allocations: 83.58 kB / 402.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.185e-05/0.2698, allocations: 31.78 kB / 402.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006624/0.2704, allocations: 373.8 kB / 402.5 MB, free: 14.53 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005867/0.271, allocations: 400.1 kB / 402.9 MB, free: 14.24 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001011/0.2721, allocations: 0.6169 MB / 403.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.797e-06/0.2721, allocations: 0.9375 kB / 403.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=89) (initialization_lambda0): time 0.001454/0.2735, allocations: 0.8076 MB / 404.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.948e-05/0.2736, allocations: 40.73 kB / 404.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.2736, allocations: 9.688 kB / 404.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000402/0.274, allocations: 152.4 kB / 404.5 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004452/0.2745, allocations: 113.7 kB / 404.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002786/0.2773, allocations: 2.554 MB / 407.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005042/0.2778, allocations: 72.3 kB / 407.3 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.814e-05/0.2778, allocations: 28.86 kB / 407.3 MB, free: 11.19 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.0002096/0.2781, allocations: 251.3 kB / 407.5 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/0.2782, allocations: 73.38 kB / 407.6 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001593/0.2798, allocations: 0.7574 MB / 408.4 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.2798, allocations: 5.047 kB / 408.4 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.2798, allocations: 0 / 408.4 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002548/0.2801, allocations: 200.4 kB / 408.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/0.2802, allocations: 16.41 kB / 408.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004272/0.2806, allocations: 44.33 kB / 408.6 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001351/0.2807, allocations: 59.05 kB / 408.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002114/0.2829, allocations: 0.8414 MB / 409.5 MB, free: 9.781 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00194/0.2848, allocations: 1.102 MB / 410.6 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006059/0.2854, allocations: 267.5 kB / 410.9 MB, free: 8.988 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005171/0.286, allocations: 373.5 kB / 411.2 MB, free: 8.77 MB / 334.1 MB Notification: Performance of Backend: time 2.01e-07/0.286, allocations: 0.9688 kB / 411.2 MB, free: 8.77 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002375/0.2884, allocations: 1.34 MB / 412.6 MB, free: 7.863 MB / 334.1 MB Notification: Performance of SimCode: time 0.002041/0.2904, allocations: 1.775 MB / 414.4 MB, free: 6.562 MB / 334.1 MB Notification: Performance of Templates: time 0.02183/0.3122, allocations: 13.34 MB / 427.7 MB, free: 10.07 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