Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.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.Elementary.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.Elementary.Rectifier") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.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.Elementary.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001311/0.00131, allocations: 107.1 kB / 16.92 MB, free: 5.777 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.001504/0.001505, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.343/1.343, 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.172/0.172, allocations: 38.04 MB / 329.7 MB, free: 8.828 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 60.97 kB / 398.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1023, allocations: 58.06 MB / 456.9 MB, free: 8.059 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.007762/0.1101, allocations: 6.343 MB / 463.2 MB, free: 1.684 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002747/0.1128, allocations: 1.437 MB / 464.6 MB, free: 248 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003284/0.1132, allocations: 27.81 kB / 464.7 MB, free: 220 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005237/0.1137, allocations: 150.9 kB / 464.8 MB, free: 68 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009346/0.1148, allocations: 433.9 kB / 465.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004843/0.1153, allocations: 207.6 kB / 465.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001024/0.1163, allocations: 1.118 MB / 466.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000443/0.1167, allocations: 348.6 kB / 466.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005594/0.1173, allocations: 470.2 kB / 467.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007147/0.118, allocations: 0.5412 MB / 467.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.542e-05/0.1181, allocations: 64 kB / 468 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001335/0.1183, allocations: 68 kB / 468 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000292/0.1186, allocations: 315.2 kB / 468.3 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003434/0.1189, allocations: 370.2 kB / 468.7 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007485/0.1197, allocations: 0.8645 MB / 469.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.1197, allocations: 4 kB / 469.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1197, allocations: 0 / 469.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.277e-06/0.1197, allocations: 4 kB / 469.6 MB, free: 11.3 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.001846/0.1216, allocations: 1.015 MB / 470.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.1216, allocations: 11.97 kB / 470.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001269/0.1218, allocations: 76.09 kB / 470.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008639/0.1226, allocations: 0.5573 MB / 471.2 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001587/0.1228, allocations: 116.8 kB / 471.4 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001033/0.1229, allocations: 52 kB / 471.4 MB, free: 9.367 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001246/0.1242, allocations: 0.7889 MB / 472.2 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.1242, allocations: 7.938 kB / 472.2 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.711e-05/0.1243, allocations: 23.94 kB / 472.2 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001145/0.1244, allocations: 36.97 kB / 472.3 MB, free: 8.477 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00132/0.1257, allocations: 0.6947 MB / 473 MB, free: 7.781 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004787/0.1305, allocations: 2.7 MB / 475.7 MB, free: 4.977 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002707/0.1332, allocations: 0.8827 MB / 476.5 MB, free: 4.039 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008626/0.1341, allocations: 333.3 kB / 476.9 MB, free: 3.707 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.987e-05/0.1342, allocations: 8 kB / 476.9 MB, free: 3.699 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.275e-05/0.1342, allocations: 38.56 kB / 476.9 MB, free: 3.652 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 2.926e-06/0.1343, allocations: 0 / 476.9 MB, free: 3.652 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.005659/0.1399, allocations: 1.933 MB / 478.8 MB, free: 1.602 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.538e-05/0.14, allocations: 93.08 kB / 478.9 MB, free: 1.492 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007044/0.1407, allocations: 425.8 kB / 479.3 MB, free: 1.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.978e-05/0.1408, allocations: 33.7 kB / 479.4 MB, free: 1.031 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003232/0.1411, allocations: 316.2 kB / 479.7 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001617/0.1413, allocations: 134.1 kB / 479.8 MB, free: 0.582 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002003/0.1415, allocations: 90.16 kB / 479.9 MB, free: 500 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001904/0.1417, allocations: 358.8 kB / 480.3 MB, free: 132 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007398/0.1425, allocations: 237 kB / 480.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008237/0.1433, allocations: 354.3 kB / 480.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001521/0.1449, allocations: 0.5705 MB / 481.4 MB, free: 14.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.1449, allocations: 4 kB / 481.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002123/0.147, allocations: 0.792 MB / 482.2 MB, free: 14.06 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.574e-05/0.1471, allocations: 4 kB / 482.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.96e-05/0.1471, allocations: 7.984 kB / 482.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004354/0.1475, allocations: 73.67 kB / 482.3 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002088/0.1496, allocations: 291.7 kB / 482.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008854/0.1585, allocations: 6.508 MB / 489.1 MB, free: 6.621 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006302/0.1592, allocations: 39.95 kB / 489.1 MB, free: 6.582 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.557e-05/0.1592, allocations: 16 kB / 489.1 MB, free: 6.566 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (54): * Single equations (assignments): 50 * 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.0005478/0.1598, allocations: 248.5 kB / 489.4 MB, free: 6.316 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001652/0.16, allocations: 43.44 kB / 489.4 MB, free: 6.273 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002022/0.162, allocations: 0.7335 MB / 490.2 MB, free: 5.512 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.162, allocations: 4 kB / 490.2 MB, free: 5.508 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.162, allocations: 4 kB / 490.2 MB, free: 5.504 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/0.1621, allocations: 3.984 kB / 490.2 MB, free: 5.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003826/0.1659, allocations: 1.502 MB / 491.7 MB, free: 3.906 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/0.1659, allocations: 4 kB / 491.7 MB, free: 3.902 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002462/0.1684, allocations: 291.6 kB / 492 MB, free: 3.617 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000405/0.1688, allocations: 93.61 kB / 492 MB, free: 3.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.237e-05/0.1689, allocations: 19.98 kB / 492.1 MB, free: 3.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003089/0.172, allocations: 3.161 MB / 495.2 MB, free: 56 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.172, allocations: 3.938 kB / 495.2 MB, free: 52 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002778/0.1748, allocations: 1.113 MB / 496.3 MB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001791/0.175, allocations: 124.5 kB / 496.5 MB, free: 14.74 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001178/0.1751, allocations: 12 kB / 496.5 MB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005425/0.1757, allocations: 39.89 kB / 496.5 MB, free: 14.69 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001629/0.1759, allocations: 35.89 kB / 496.6 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.429e-05/0.1759, allocations: 12 kB / 496.6 MB, free: 14.64 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004984/0.1764, allocations: 295.1 kB / 496.9 MB, free: 14.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.1765, allocations: 0 / 496.9 MB, free: 14.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001124/0.1776, allocations: 136 kB / 497 MB, free: 14.23 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (39): * Single equations (assignments): 36 * 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.0002101/0.1778, allocations: 115.2 kB / 497.1 MB, free: 14.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003968/0.1818, allocations: 1.043 MB / 498.1 MB, free: 13.04 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.1818, allocations: 448 / 498.1 MB, free: 13.04 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002805/0.1846, allocations: 0.7241 MB / 498.9 MB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001264/0.1859, allocations: 157.8 kB / 499 MB, free: 12.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003634/0.1896, allocations: 1.427 MB / 0.4887 GB, free: 10.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008013/0.1904, allocations: 0.9409 MB / 0.4896 GB, free: 9.715 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000521/0.1909, allocations: 100.5 kB / 0.4897 GB, free: 9.613 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001822/0.1911, allocations: 47.42 kB / 0.4898 GB, free: 9.566 MB / 382.1 MB Notification: Performance of SimCode: time 9.62e-07/0.1911, allocations: 0 / 0.4898 GB, free: 9.566 MB / 382.1 MB Notification: Performance of Templates: time 0.01647/0.2076, allocations: 7.67 MB / 0.4973 GB, free: 1.969 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches