Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) 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(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 105.4 kB / 16.92 MB, free: 6.145 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.001581/0.001581, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.366/1.366, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.171/0.171, allocations: 38.04 MB / 329.7 MB, free: 8.836 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 64.97 kB / 398.8 MB, free: 34.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1114, allocations: 58.06 MB / 456.9 MB, free: 8.055 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier): time 0.007679/0.1191, allocations: 6.253 MB / 463.1 MB, free: 1.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002398/0.1215, allocations: 1.418 MB / 464.5 MB, free: 356 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004134/0.122, allocations: 23.81 kB / 464.6 MB, free: 332 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005364/0.1225, allocations: 150.9 kB / 464.7 MB, free: 180 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009421/0.1235, allocations: 410.1 kB / 465.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005687/0.1241, allocations: 195.6 kB / 465.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001528/0.1257, allocations: 1.083 MB / 466.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000464/0.1261, allocations: 356.6 kB / 466.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007299/0.1269, allocations: 458.3 kB / 467.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008614/0.1277, allocations: 0.5257 MB / 467.7 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000155/0.1279, allocations: 67.94 kB / 467.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001951/0.1281, allocations: 68 kB / 467.8 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003074/0.1284, allocations: 307.2 kB / 468.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004517/0.1289, allocations: 362.4 kB / 468.5 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007885/0.1297, allocations: 0.8333 MB / 469.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.1297, allocations: 4 kB / 469.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1297, allocations: 0 / 469.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.538e-05/0.1297, allocations: 0 / 469.3 MB, free: 11.54 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.0021/0.1318, allocations: 0.9959 MB / 470.3 MB, free: 10.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.1319, allocations: 15.97 kB / 470.3 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001559/0.132, allocations: 76.08 kB / 470.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009507/0.133, allocations: 0.5419 MB / 471 MB, free: 9.824 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001639/0.1332, allocations: 120.8 kB / 471.1 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.169e-05/0.1333, allocations: 56 kB / 471.1 MB, free: 9.641 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001295/0.1346, allocations: 0.7811 MB / 471.9 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/0.1346, allocations: 0 / 471.9 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.731e-05/0.1347, allocations: 23.94 kB / 471.9 MB, free: 8.801 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001114/0.1348, allocations: 36.97 kB / 472 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001383/0.1362, allocations: 0.722 MB / 472.7 MB, free: 8.043 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003636/0.1398, allocations: 2.6 MB / 475.3 MB, free: 5.348 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001593/0.1414, allocations: 0.8049 MB / 476.1 MB, free: 4.504 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006741/0.1421, allocations: 407.4 kB / 476.5 MB, free: 4.094 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.602e-05/0.1422, allocations: 4.438 kB / 476.5 MB, free: 4.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.948e-05/0.1422, allocations: 39 kB / 476.5 MB, free: 4.043 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.943e-06/0.1422, allocations: 0 / 476.5 MB, free: 4.043 MB / 350.1 MB Notification: Performance of matching and sorting (n=51): time 0.004128/0.1464, allocations: 2.147 MB / 478.7 MB, free: 1.785 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.444e-05/0.1464, allocations: 81.55 kB / 478.8 MB, free: 1.684 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004929/0.1469, allocations: 394 kB / 479.1 MB, free: 1.289 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.002e-05/0.147, allocations: 33.7 kB / 479.2 MB, free: 1.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002687/0.1473, allocations: 288.5 kB / 479.5 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002061/0.1475, allocations: 177.4 kB / 479.6 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002276/0.1477, allocations: 98.25 kB / 479.7 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002096/0.1479, allocations: 362.8 kB / 480.1 MB, free: 328 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006049/0.1485, allocations: 272.9 kB / 480.4 MB, free: 56 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006669/0.1492, allocations: 381.2 kB / 480.7 MB, free: 15.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001199/0.1504, allocations: 0.6576 MB / 481.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.1505, allocations: 0 / 481.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001537/0.152, allocations: 0.8759 MB / 482.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.152, allocations: 8 kB / 482.3 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.152, allocations: 4 kB / 482.3 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002628/0.1523, allocations: 81.59 kB / 482.4 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001513/0.1538, allocations: 307.5 kB / 482.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005981/0.1598, allocations: 6.532 MB / 489.2 MB, free: 6.551 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004388/0.1603, allocations: 39.95 kB / 489.2 MB, free: 6.512 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.416e-05/0.1604, allocations: 23.98 kB / 489.2 MB, free: 6.488 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003274/0.1607, allocations: 246.9 kB / 489.5 MB, free: 6.238 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.034e-05/0.1608, allocations: 43.44 kB / 489.5 MB, free: 6.195 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001481/0.1623, allocations: 0.828 MB / 490.4 MB, free: 5.332 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.8e-06/0.1623, allocations: 4 kB / 490.4 MB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.1623, allocations: 4 kB / 490.4 MB, free: 5.324 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.1623, allocations: 3.984 kB / 490.4 MB, free: 5.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002876/0.1652, allocations: 1.673 MB / 492 MB, free: 3.547 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.666e-06/0.1652, allocations: 4 kB / 492 MB, free: 3.543 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001697/0.1669, allocations: 323.7 kB / 492.4 MB, free: 3.227 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002585/0.1672, allocations: 89.53 kB / 492.4 MB, free: 3.133 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.507e-05/0.1672, allocations: 16 kB / 492.5 MB, free: 3.117 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002306/0.1696, allocations: 3.165 MB / 495.6 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.1696, allocations: 0 / 495.6 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002099/0.1717, allocations: 1.316 MB / 496.9 MB, free: 14.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001238/0.1718, allocations: 124.6 kB / 497.1 MB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.192e-05/0.1719, allocations: 19.94 kB / 497.1 MB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003752/0.1723, allocations: 31.95 kB / 497.1 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001239/0.1724, allocations: 51.94 kB / 497.2 MB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.354e-05/0.1725, allocations: 12 kB / 497.2 MB, free: 14.04 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003083/0.1728, allocations: 283.1 kB / 497.5 MB, free: 13.77 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1728, allocations: 0 / 497.5 MB, free: 13.77 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006592/0.1735, allocations: 148 kB / 497.6 MB, free: 13.62 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001477/0.1736, allocations: 123 kB / 497.7 MB, free: 13.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002971/0.1766, allocations: 1.178 MB / 498.9 MB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.1766, allocations: 8 kB / 498.9 MB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002024/0.1786, allocations: 0.7942 MB / 499.7 MB, free: 11.46 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008307/0.1795, allocations: 153.2 kB / 499.9 MB, free: 11.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003364/0.1829, allocations: 1.607 MB / 0.4897 GB, free: 9.664 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000567/0.1835, allocations: 0.9408 MB / 0.4906 GB, free: 8.695 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004657/0.1839, allocations: 132.7 kB / 0.4908 GB, free: 8.566 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.1841, allocations: 43.44 kB / 0.4908 GB, free: 8.523 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1841, allocations: 0 / 0.4908 GB, free: 8.523 MB / 382.1 MB Notification: Performance of Templates: time 0.01431/0.1984, allocations: 7.793 MB / 0.4984 GB, free: 0.8008 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches