Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001855/0.001855, allocations: 110.8 kB / 21.19 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002222/0.002222, allocations: 211.1 kB / 24.49 MB, free: 3.965 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.439/1.439, allocations: 230.6 MB / 258.3 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|inverter.ac.v|inverter.ac.i|fundamentalWaveVoltage.mean1.y|fundamentalWaveVoltage.mean2.y|fundamentalWaveCurrent.mean1.y|fundamentalWaveCurrent.mean2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R") translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|inverter.ac.v|inverter.ac.i|fundamentalWaveVoltage.mean1.y|fundamentalWaveVoltage.mean2.y|fundamentalWaveCurrent.mean1.y|fundamentalWaveCurrent.mean2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001662/0.001662, allocations: 55.86 kB / 379 MB, free: 2.422 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2231/0.2247, allocations: 53.36 MB / 432.4 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R): time 0.007102/0.2318, allocations: 4.631 MB / 437 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002995/0.2348, allocations: 1.543 MB / 438.5 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003904/0.2352, allocations: 23.81 kB / 438.6 MB, free: 500 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003669/0.2356, allocations: 142.5 kB / 438.7 MB, free: 356 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005492/0.2361, allocations: 222.1 kB / 438.9 MB, free: 132 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008856/0.237, allocations: 423.2 kB / 439.3 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0012/0.2382, allocations: 1.079 MB / 440.4 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005257/0.2387, allocations: 291 kB / 440.7 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005524/0.2393, allocations: 414.4 kB / 441.1 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005462/0.2398, allocations: 453.9 kB / 441.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001482/0.24, allocations: 103.9 kB / 441.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002073/0.2402, allocations: 116 kB / 441.8 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002217/0.2404, allocations: 219.2 kB / 442 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000383/0.2408, allocations: 386.1 kB / 442.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00125/0.242, allocations: 1.162 MB / 443.5 MB, free: 11.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.2421, allocations: 0 / 443.5 MB, free: 11.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2421, allocations: 0 / 443.5 MB, free: 11.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.235e-05/0.2421, allocations: 0 / 443.5 MB, free: 11.5 MB / 350.1 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.002715/0.2448, allocations: 1.436 MB / 445 MB, free: 10.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.2448, allocations: 12.03 kB / 445 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006665/0.2455, allocations: 160.2 kB / 445.1 MB, free: 9.848 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001182/0.2467, allocations: 0.5532 MB / 445.7 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.457e-05/0.2467, allocations: 54.36 kB / 445.7 MB, free: 9.215 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001286/0.2469, allocations: 72.38 kB / 445.8 MB, free: 9.145 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001541/0.2484, allocations: 0.8159 MB / 446.6 MB, free: 8.289 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.479e-05/0.2484, allocations: 4 kB / 446.6 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.605e-05/0.2485, allocations: 28 kB / 446.6 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.61e-05/0.2485, allocations: 16 kB / 446.7 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001312/0.2498, allocations: 0.5555 MB / 447.2 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003955/0.2538, allocations: 2.268 MB / 449.5 MB, free: 5.328 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001251/0.255, allocations: 0.5349 MB / 450 MB, free: 4.781 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005842/0.2556, allocations: 262.2 kB / 450.3 MB, free: 4.523 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.173e-05/0.2557, allocations: 12.5 kB / 450.3 MB, free: 4.512 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009373/0.2566, allocations: 476.7 kB / 450.8 MB, free: 4.027 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.565e-06/0.2566, allocations: 0 / 450.8 MB, free: 4.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=67): time 0.0034/0.26, allocations: 1.134 MB / 451.9 MB, free: 2.883 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.711e-05/0.2601, allocations: 115.5 kB / 452 MB, free: 2.746 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006292/0.2607, allocations: 0.5067 MB / 452.5 MB, free: 2.227 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.141e-05/0.2608, allocations: 45.69 kB / 452.6 MB, free: 2.176 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003014/0.2611, allocations: 364.9 kB / 452.9 MB, free: 1.812 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001969/0.2613, allocations: 214.3 kB / 453.1 MB, free: 1.602 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002385/0.2615, allocations: 134.7 kB / 453.3 MB, free: 1.465 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002018/0.2617, allocations: 378.8 kB / 453.6 MB, free: 1.086 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005874/0.2623, allocations: 266.4 kB / 453.9 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007536/0.2631, allocations: 495.1 kB / 454.4 MB, free: 252 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001247/0.2643, allocations: 0.6456 MB / 455 MB, free: 15.53 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.663e-06/0.2643, allocations: 4 kB / 455 MB, free: 15.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.00169/0.266, allocations: 0.8603 MB / 455.9 MB, free: 14.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.366e-05/0.266, allocations: 33.7 kB / 455.9 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.2661, allocations: 4 kB / 455.9 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005026/0.2666, allocations: 145 kB / 456.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004965/0.2671, allocations: 119.8 kB / 456.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003199/0.2703, allocations: 2.394 MB / 458.6 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005014/0.2708, allocations: 83.62 kB / 458.6 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.071e-05/0.2708, allocations: 28 kB / 458.7 MB, free: 11.74 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000753/0.2716, allocations: 415.7 kB / 459.1 MB, free: 11.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007004/0.2723, allocations: 475.2 kB / 459.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001112/0.2734, allocations: 0.6301 MB / 460.2 MB, free: 10.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.936e-06/0.2734, allocations: 0 / 460.2 MB, free: 10.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=89) (initialization_lambda0): time 0.001595/0.275, allocations: 0.8329 MB / 461 MB, free: 9.215 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.918e-05/0.275, allocations: 41.58 kB / 461 MB, free: 9.168 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.275, allocations: 4 kB / 461.1 MB, free: 9.164 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004362/0.2755, allocations: 168.2 kB / 461.2 MB, free: 9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004799/0.2759, allocations: 111.8 kB / 461.3 MB, free: 8.891 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003023/0.279, allocations: 2.395 MB / 463.7 MB, free: 6.391 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004997/0.2795, allocations: 75.59 kB / 463.8 MB, free: 6.316 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.145e-05/0.2795, allocations: 28 kB / 463.8 MB, free: 6.289 MB / 366.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 (signalPWM.zeroOrderHold.firstTrigger,$PRE.signalPWM.zeroOrderHold.firstTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fundamentalWaveCurrent.mean2.y_last,$PRE.fundamentalWaveCurrent.mean2.y_last,fundamentalWaveCurrent.mean1.y_last,$PRE.fundamentalWaveCurrent.mean1.y_last,fundamentalWaveVoltage.mean2.y_last,$PRE.fundamentalWaveVoltage.mean2.y_last,fundamentalWaveVoltage.mean1.y_last,$PRE.fundamentalWaveVoltage.mean1.y_last,signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,signalPWM.sawtooth.count,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.T_start,signalPWM.zeroOrderHold.ySample,$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.0002383/0.2798, allocations: 244.2 kB / 464.1 MB, free: 6.043 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.2799, allocations: 75.52 kB / 464.1 MB, free: 5.969 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0017/0.2816, allocations: 0.7505 MB / 464.9 MB, free: 5.203 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/0.2816, allocations: 3.984 kB / 464.9 MB, free: 5.199 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.2816, allocations: 0 / 464.9 MB, free: 5.199 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00028/0.2819, allocations: 127.3 kB / 465 MB, free: 5.074 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/0.282, allocations: 23.98 kB / 465 MB, free: 5.051 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004158/0.2824, allocations: 35.97 kB / 465.1 MB, free: 5.016 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000135/0.2825, allocations: 60.55 kB / 465.1 MB, free: 4.957 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002171/0.2847, allocations: 0.8558 MB / 466 MB, free: 4.094 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002027/0.2867, allocations: 1.112 MB / 467.1 MB, free: 2.965 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005398/0.2873, allocations: 257.1 kB / 467.3 MB, free: 2.715 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004292/0.2877, allocations: 342.9 kB / 467.7 MB, free: 2.383 MB / 366.1 MB Notification: Performance of Backend: time 5.61e-07/0.2877, allocations: 0 / 467.7 MB, free: 2.383 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002697/0.2904, allocations: 1.374 MB / 469.1 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of SimCode: time 0.0025/0.2929, allocations: 1.825 MB / 470.9 MB, free: 15.07 MB / 382.1 MB Notification: Performance of Templates: time 0.02539/0.3183, allocations: 14.65 MB / 485.5 MB, free: 0.6367 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.sim & ./Modelica_4.1.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/PowerConverters/Examples/DCAC/SinglePhaseTwoLevel/SinglePhaseTwoLevel_R/SinglePhaseTwoLevel_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.796860893002304]