Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001065/0.001065, allocations: 114.3 kB / 17.75 MB, free: 5.332 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.001128/0.001128, allocations: 185.3 kB / 18.68 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.308/1.308, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009647/0.0009648, allocations: 51.92 kB / 352 MB, free: 3.199 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2097/0.2106, allocations: 49.43 MB / 401.5 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R): time 0.005983/0.2167, allocations: 4.799 MB / 406.3 MB, free: 4.023 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002396/0.2191, allocations: 1.363 MB / 407.6 MB, free: 2.656 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004747/0.2196, allocations: 15.94 kB / 407.6 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003523/0.2199, allocations: 134.6 kB / 407.8 MB, free: 2.508 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005933/0.2205, allocations: 206.1 kB / 408 MB, free: 2.305 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007541/0.2213, allocations: 366.3 kB / 408.3 MB, free: 1.949 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001015/0.2223, allocations: 1.04 MB / 409.4 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005703/0.2229, allocations: 406.3 kB / 409.8 MB, free: 496 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004629/0.2234, allocations: 394.5 kB / 410.1 MB, free: 100 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005036/0.2239, allocations: 434.1 kB / 410.6 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001681/0.2241, allocations: 100 kB / 410.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001662/0.2243, allocations: 100 kB / 410.8 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001971/0.2245, allocations: 223.2 kB / 411 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004132/0.2249, allocations: 457.7 kB / 411.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009782/0.2259, allocations: 1.103 MB / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.277e-06/0.2259, allocations: 0 / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.2259, allocations: 4 kB / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.841e-05/0.2259, allocations: 0 / 412.5 MB, free: 13.7 MB / 334.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.002372/0.2283, allocations: 1.193 MB / 413.7 MB, free: 12.44 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.2283, allocations: 12.03 kB / 413.7 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001763/0.2285, allocations: 99.8 kB / 413.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001023/0.2295, allocations: 0.5834 MB / 414.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.952e-05/0.2296, allocations: 58.38 kB / 414.5 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000117/0.2297, allocations: 72.38 kB / 414.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001375/0.2311, allocations: 0.7579 MB / 415.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.615e-05/0.2312, allocations: 15.77 kB / 415.3 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.179e-05/0.2312, allocations: 32 kB / 415.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/0.2313, allocations: 16 kB / 415.4 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001254/0.2325, allocations: 0.5555 MB / 415.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003784/0.2363, allocations: 2.598 MB / 418.5 MB, free: 7.477 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00123/0.2376, allocations: 0.5775 MB / 419.1 MB, free: 6.891 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005683/0.2381, allocations: 294.4 kB / 419.4 MB, free: 6.602 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.059e-05/0.2382, allocations: 12.56 kB / 419.4 MB, free: 6.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007932/0.239, allocations: 449.6 kB / 419.8 MB, free: 6.137 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 2.215e-06/0.239, allocations: 0 / 419.8 MB, free: 6.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=67): time 0.003152/0.2422, allocations: 1.203 MB / 421 MB, free: 4.906 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.186e-05/0.2422, allocations: 115.4 kB / 421.2 MB, free: 4.766 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005889/0.2428, allocations: 0.5303 MB / 421.7 MB, free: 4.227 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.761e-05/0.2429, allocations: 41.7 kB / 421.7 MB, free: 4.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002305/0.2431, allocations: 344.4 kB / 422.1 MB, free: 3.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001545/0.2433, allocations: 201.2 kB / 422.3 MB, free: 3.641 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002001/0.2435, allocations: 130.6 kB / 422.4 MB, free: 3.508 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.2436, allocations: 386.7 kB / 422.8 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000521/0.2442, allocations: 232.8 kB / 423 MB, free: 2.891 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006162/0.2448, allocations: 410.9 kB / 423.4 MB, free: 2.418 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/0.2459, allocations: 0.6337 MB / 424 MB, free: 1.711 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.2459, allocations: 4 kB / 424 MB, free: 1.707 MB / 334.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001498/0.2474, allocations: 0.8298 MB / 424.9 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.991e-05/0.2474, allocations: 33.7 kB / 424.9 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.2475, allocations: 8 kB / 424.9 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000463/0.2479, allocations: 160.6 kB / 425.1 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004702/0.2484, allocations: 115.9 kB / 425.2 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002841/0.2513, allocations: 2.547 MB / 427.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005053/0.2518, allocations: 91.3 kB / 427.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.047e-05/0.2518, allocations: 27.98 kB / 427.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006457/0.2525, allocations: 374 kB / 428.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005711/0.2531, allocations: 402.9 kB / 428.6 MB, free: 12.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009709/0.2541, allocations: 0.6142 MB / 429.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.226e-06/0.2541, allocations: 4 kB / 429.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization_lambda0): time 0.001404/0.2555, allocations: 0.8063 MB / 430 MB, free: 11.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.855e-05/0.2555, allocations: 33.7 kB / 430.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.2555, allocations: 8 kB / 430.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003924/0.2559, allocations: 152.7 kB / 430.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004306/0.2564, allocations: 116 kB / 430.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002777/0.2592, allocations: 2.558 MB / 432.9 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004824/0.2597, allocations: 71.56 kB / 432.9 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.541e-05/0.2597, allocations: 32 kB / 433 MB, free: 8.281 MB / 350.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_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.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.0001991/0.2599, allocations: 239.9 kB / 433.2 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.26, allocations: 71.16 kB / 433.3 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001572/0.2616, allocations: 0.7485 MB / 434 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/0.2616, allocations: 0 / 434 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.2616, allocations: 7.938 kB / 434 MB, free: 7.195 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002626/0.2619, allocations: 208 kB / 434.2 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.767e-05/0.262, allocations: 16 kB / 434.3 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004091/0.2624, allocations: 43.89 kB / 434.3 MB, free: 6.914 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/0.2626, allocations: 52.48 kB / 434.4 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00198/0.2646, allocations: 0.8534 MB / 435.2 MB, free: 6.004 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001776/0.2663, allocations: 1.1 MB / 436.3 MB, free: 4.887 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005029/0.2669, allocations: 268.3 kB / 436.6 MB, free: 4.629 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004023/0.2673, allocations: 370.8 kB / 436.9 MB, free: 4.27 MB / 350.1 MB Notification: Performance of Backend: time 3.91e-07/0.2673, allocations: 0 / 436.9 MB, free: 4.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002453/0.2697, allocations: 1.344 MB / 438.3 MB, free: 2.867 MB / 350.1 MB Notification: Performance of SimCode: time 0.00218/0.2719, allocations: 1.781 MB / 440.1 MB, free: 1.039 MB / 350.1 MB Notification: Performance of Templates: time 0.02093/0.2929, allocations: 13.34 MB / 453.4 MB, free: 3.84 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.sim & ./Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches